Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
arm: mx6: update temperature calculation code
There are i.MX6 processors where the calibration values for the hot
points are not programmed. Use the temperature calculation code from
Linux kernel to accomodate this.
Lothar Waßmann [Fri, 9 Jan 2015 10:49:51 +0000 (11:49 +0100)]
karo: tx6: change CONFIG_SYS_TEXT_BASE to accomodate boards with less than 256MiB memory
The default address taken from the original Freescale BSP is beyond
256MiB. Thus modules with less than that amount of memory cannot work.
Change the address to be inside the first memory bank for all sensible
memory sizes.
Lothar Waßmann [Fri, 9 Jan 2015 10:49:51 +0000 (11:49 +0100)]
arm: mx6: fix definition of PLL2 PFD frequencies
i.MX6Q and i.MX6DL have different values for the PLL2 PFD0 and PFD1
frequencies. Furthermore the actual value for the PFD2 frequency is
396MHz rather than 400MHz.
karo: tx53: improve workaround for i.MX53 ROM code bug
Due to the alignment of the rel_dyn section to 4KiB has the ill side
effect of interpreting uninitialized data from RAM during relocation
when U-Boot is loaded via network. This may crash U-Boot after
displaying the message 'DRAM: ...'.
Create a dummy section placed after the rel_dyn section to provide the
image size alignment without affecting the size of the rel_dyn
partition.
Use the default value from commit 1375f044d96f "MX28: DMA: Prolong the DMA timeout",
but let users change it depending on the amount of data to be
transferred and the expected data rate.
karo: bootce: add option '-i' to bootce command to init global data struct
Loading a .nb0 image requires the global data struct for WinCe to be
initialized without the parsing of the image file. Calling 'bootce -i'
prior to starting the .nb0 image will do this.
TX28S has only 64MiB SDRAM. With the default loadaddr of 0x43000000
there is only ~8MiB space between ${loadaddr} and the start of U-Boot
in memory. Reduce the loadaddr to leave more space for downloads
without overwriting U-Boot code.
Lothar Waßmann [Mon, 25 Aug 2014 12:35:06 +0000 (14:35 +0200)]
karo: tx48: remove the 'interrupts' property from LTC3589 node for AM335x silicon rev. 0
This silicon rev. has the polarity of the EXTINTn pin inverted
wrt. the spec. with no useable workaround. Remove the 'interrupts'
property from the ltc3589 DT node, so that the LTC driver will operate
in polling mode.
Lothar Waßmann [Thu, 14 Aug 2014 08:11:50 +0000 (10:11 +0200)]
karo: tx53: fix DDR_SEL value
The current value is inappropriate for DDR3.
When adding support for the HW rev. 3 of the TX53 module that has DDR3
instead of DDR2 memory, the values for both memory type were
erroneously swapped, so that after removing DDR2 support lateron, the
wrong value was kept.
Lothar Waßmann [Thu, 14 Aug 2014 12:17:09 +0000 (14:17 +0200)]
karo: tx53: clear persistent bits in lpgr upon boot
Print the contents of the SRTC_LPGR and clear it upon boot.
Also print a warning, if PERSIST_SECONDARY_BOOT is set, meaning that
the processor was booted using the secondary boot image.
Lothar Waßmann [Thu, 14 Aug 2014 11:33:41 +0000 (13:33 +0200)]
karo: tx53: add 'romupdate' command to update the U-Boot image in flash
Implement the romupdate command, that is already in use on TX28 and
TX6.
The command searches for a sufficiently large area without bad blocks
inside the u-boot (or any given other) partition and dynmaically
creates the FCB that is required to boot from flash.
It is also possible to write a redundant image, that will be used if
the first block of the normal image cannot be read due to ECC errors.
Lothar Waßmann [Thu, 14 Aug 2014 12:21:48 +0000 (14:21 +0200)]
karo: tx53: prevent boot failure do to bad blocks inside the U-Boot partition
Currently booting from NAND will fail, if the u-boot partition
contains any bad block, since the image_len in the IVT is set to the
u-boot partition size. Apparently the ROM code has a bug and does not
load the last block of a flash image when the block does not end on a
4KiB boundary. This leads to boot failures or random U-Boot crashes,
because the relocation table is most affected by this bug.
Workaround this by padding the image_len stored in the IVT to the next
4KiB boundary.
Lothar Waßmann [Fri, 8 Aug 2014 08:59:21 +0000 (10:59 +0200)]
karo: tx51: init pad settings for SDRAM and NAND
Make sure the padctrl settings for SDRAM and NAND are explicitly
configured from the DCD after soft reset.
Also reduce the DSE values for NAND and SDRAM control lines to
improve error margins in NAND detection and SDRAM stress test.
Lothar Waßmann [Thu, 26 Jun 2014 10:13:20 +0000 (12:13 +0200)]
board: tx48: add MMC init code
Up to now we relied on cpu_mmc_init() to initialize the MMC unit for
us. This had some major drawbacks:
- the default implementation doesn't use CD gpios, so that the driver
always assumes a card is present.
- the default implementation always initializes two MMC interfaces,
though the TX48 supports only one.
Properly initialize the CD GPIO and implement our own version of
cpu_mmc_init().
Lothar Waßmann [Thu, 26 Jun 2014 10:01:00 +0000 (12:01 +0200)]
mmc: omap_hsmmc: improve timeout checks in wait loops
restructure the timeout loops, so that after timing out the loop
condition is checked again. U-Boot is not a multitasking OS where this
would be essential, but this is a good habit anyway.
Lothar Waßmann [Thu, 26 Jun 2014 09:02:58 +0000 (11:02 +0200)]
mmc: omap_hsmmc: cleanup code
- remove useless return value from mmc_board_init()
- make mmc_board_init() static
- check dev_index in omap_mmc_init() before using it as array index