Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: fix definition of IOMUXC_SW_PAD_CTL_GRP_DDRPK for i.MX6DL
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: define bitmask for DDR_PKE
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: remove bogus definition of MMDC1_MPWRDLST
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: Unify code for TX6 module revisions
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)]
karo: tx6: factor out PMIC initialization
There are now three different PMICs used on different variants of the
TX6 module. Factor out the PMIC code to better support the module
variants.
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.
Lothar Waßmann [Fri, 9 Jan 2015 10:49:51 +0000 (11:49 +0100)]
arm: mx6: don't print nonexistant PLL528 PFD3 value
Lothar Waßmann [Tue, 2 Dec 2014 12:08:29 +0000 (13:08 +0100)]
karo: tx6: fix definition of CONFIG_IPUV3_CLK
Lothar Waßmann [Fri, 7 Nov 2014 08:22:27 +0000 (09:22 +0100)]
send <CRLF> rather than <LFCR> to the serial console
Lothar Waßmann [Thu, 30 Oct 2014 09:12:27 +0000 (10:12 +0100)]
karo: tx6: set default video_mode depending on LVDS/LCD module variant
Lothar Waßmann [Tue, 28 Oct 2014 10:06:42 +0000 (11:06 +0100)]
karo: tx53: adjust SDRAM row address bits for 4Gib chips
Lothar Waßmann [Fri, 24 Oct 2014 10:30:25 +0000 (12:30 +0200)]
configs: tx53: set default video_mode depending on LVDS/LCD module variant
Lothar Waßmann [Fri, 24 Oct 2014 10:27:20 +0000 (12:27 +0200)]
karo: tx53: add support for TX53-1232 (2GiB SDRAM)
Lothar Waßmann [Fri, 24 Oct 2014 10:27:02 +0000 (12:27 +0200)]
karo: tx53: configure SDRAM size via boards.cfg
Lothar Waßmann [Fri, 24 Oct 2014 10:21:05 +0000 (12:21 +0200)]
karo: tx53: make adjust_core-voltage() less verbose
Lothar Waßmann [Wed, 29 Oct 2014 13:07:20 +0000 (14:07 +0100)]
net: phy: fix autonegotiation
Lothar Waßmann [Wed, 29 Oct 2014 13:05:32 +0000 (14:05 +0100)]
Merge branch 'tx53-bugfix' into uboot-merge
Lothar Waßmann [Wed, 29 Oct 2014 13:05:03 +0000 (14:05 +0100)]
karo: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 10:57:09 +0000 (11:57 +0100)]
karo: tx6: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 10:56:01 +0000 (11:56 +0100)]
net: fec: fix 10MBit configuration
Lothar Waßmann [Wed, 29 Oct 2014 07:53:59 +0000 (08:53 +0100)]
karo: tx53: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 07:52:59 +0000 (08:52 +0100)]
karo: tx48: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 07:48:37 +0000 (08:48 +0100)]
karo: tx51: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 07:41:31 +0000 (08:41 +0100)]
net: phy: don't try autonegotiation if it is not enabled in the PHY
Lothar Waßmann [Wed, 29 Oct 2014 07:39:57 +0000 (08:39 +0100)]
net: phy: properly handle return value of phy_read()
Lothar Waßmann [Wed, 29 Oct 2014 07:38:29 +0000 (08:38 +0100)]
phy: SMSC: fix autonegotiation
Lothar Waßmann [Tue, 16 Sep 2014 08:37:18 +0000 (10:37 +0200)]
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.
Lothar Waßmann [Wed, 10 Sep 2014 09:03:52 +0000 (11:03 +0200)]
karo: tx28: fix CONFIG_BOOTARGS and CONFIG_BOOTCOMMAND settings
Lothar Waßmann [Wed, 3 Sep 2014 12:00:10 +0000 (14:00 +0200)]
mmc: mxs: configure DMA timeout depending on xfer rate and data size
Lothar Waßmann [Wed, 3 Sep 2014 11:57:07 +0000 (13:57 +0200)]
MX28: DMA: make the DMA timeout configurable
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.
Lothar Waßmann [Wed, 3 Sep 2014 08:33:54 +0000 (10:33 +0200)]
MX28: DMA: make mxs_dma_flush_desc() static
Lothar Waßmann [Wed, 3 Sep 2014 08:29:04 +0000 (10:29 +0200)]
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.
Lothar Waßmann [Wed, 3 Sep 2014 08:23:34 +0000 (10:23 +0200)]
karo: tx28: fix build error with 'CONFIG_ENV_IS_IN_MMC'
Lothar Waßmann [Wed, 3 Sep 2014 08:10:47 +0000 (10:10 +0200)]
karo: tx28: add configurations for U-Boot ignoring the existing env in NAND
Lothar Waßmann [Wed, 3 Sep 2014 07:38:27 +0000 (09:38 +0200)]
karo: tx28: add support for TX28-4033 (with 256MiB flash)
Lothar Waßmann [Wed, 3 Sep 2014 07:37:45 +0000 (09:37 +0200)]
karo: tx28: add support for 'boot_mode' variable
Lothar Waßmann [Wed, 3 Sep 2014 07:34:34 +0000 (09:34 +0200)]
karo: tx28: change default loadaddr for TX28S
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 [Wed, 3 Sep 2014 07:48:18 +0000 (09:48 +0200)]
karo: tx28: change FDT addr to be in low memory
put the FDT in lower memory, to keep more space for download on TX28S
Lothar Waßmann [Wed, 3 Sep 2014 07:26:06 +0000 (09:26 +0200)]
karo: tx28: cleanup config file
- indentation cleanup
- remove bogus 'fdtaddr' setting in default env for
CONFIG_ENV_IS_NOWHERE (copied from TX6)
- remove unused options CONFIG_SYS_MAX_FLASH_SECT and CONFIG_SYS_MAX_FLASH_BANKS
Sergey Alyoshin [Thu, 22 May 2014 07:56:03 +0000 (11:56 +0400)]
am33xx: report silicon revision instead of code
As revision code 1 is for silicon revision 2.0, it is easily confused with
silicon revision 1.0.
Device type report also reworked in same style.
Signed-off-by: Sergey Alyoshin <alyoshin.s@gmail.com>
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 [Mon, 25 Aug 2014 12:30:23 +0000 (14:30 +0200)]
karo: tx48: make sure I2C pads are high upon boot
The LTC3589 PMIC may leave the SDA line pulled low when the module is
reset during an I2C transfer with the chip, blocking the I2C bus.
Reconfigure the I2C pads as GPIO upon boot and drive them HIGH, when
they are initially LOW.
Lothar Waßmann [Mon, 25 Aug 2014 12:30:07 +0000 (14:30 +0200)]
karo: tx48: only print message about cpu_clk, if it was actually changed
Lothar Waßmann [Mon, 25 Aug 2014 12:29:15 +0000 (14:29 +0200)]
karo: tx48: fix label for CD GPIO
Lothar Waßmann [Mon, 25 Aug 2014 12:26:54 +0000 (14:26 +0200)]
karo: tx48: remove 'with FDT support' from "Board: ..." message
FDT support is always present; no need to specifically anounce it in
checkboard().
Lothar Waßmann [Mon, 25 Aug 2014 12:25:18 +0000 (14:25 +0200)]
gpio: am33xx: add missing gpio_get_value() function
Lothar Waßmann [Mon, 25 Aug 2014 12:25:01 +0000 (14:25 +0200)]
gpio: am33xx: print error messages for invalid GPIO requests
Lothar Waßmann [Mon, 25 Aug 2014 12:24:04 +0000 (14:24 +0200)]
am33xx: don't print clock settings on boot
Lothar Waßmann [Mon, 25 Aug 2014 12:20:00 +0000 (14:20 +0200)]
karo: fdt: fix karo_fdt_del_prop() function
Don't delete the nodes referenced by the phandle found in the
designated property.
Lothar Waßmann [Thu, 14 Aug 2014 08:27:01 +0000 (10:27 +0200)]
karo: tx53: change drive strength of DDR control lines
With the current setting of the DSE values for the DDR control lines
we were exoeriencing memory errors at high operating temperatures.
Extensive memory tests have shown, that increasing the value for the
DSE setting fixes this problem.
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 12:53:50 +0000 (14:53 +0200)]
karo: tx51: increase ipg_per clock to 24MHz
Lothar Waßmann [Fri, 8 Aug 2014 12:52:50 +0000 (14:52 +0200)]
karo: tx51: remove duplicate CONFIG_SYS_SDRAM_CLK definition
Lothar Waßmann [Fri, 8 Aug 2014 12:51:23 +0000 (14:51 +0200)]
karo: tx51: fix ipu clock setting
The IPU clock is derived from AXI_B clock, which is running at 133MHz
not 200MHz.
Lothar Waßmann [Fri, 8 Aug 2014 12:45:21 +0000 (14:45 +0200)]
arm: mx5: print some more clocks in the 'clock' command
Lothar Waßmann [Fri, 8 Aug 2014 12:40:50 +0000 (14:40 +0200)]
karo: tx51: use .error asm instruction to print error message if DCD is too large
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 [Fri, 18 Jul 2014 12:48:59 +0000 (14:48 +0200)]
Merge branch 'tx48-rel'
Lothar Waßmann [Fri, 18 Jul 2014 12:11:14 +0000 (14:11 +0200)]
fdt: karo: improve handling of usbotg phy
Lothar Waßmann [Fri, 18 Jul 2014 12:05:22 +0000 (14:05 +0200)]
fdt: karo: make 'otg_mode' setting case insensitive
Lothar Waßmann [Thu, 17 Jul 2014 08:23:49 +0000 (10:23 +0200)]
karo: tx53: remove a bogus wait for CON_ACK to clear
Lothar Waßmann [Thu, 10 Jul 2014 09:09:20 +0000 (11:09 +0200)]
mxs: change setup of exception vt
Lothar Waßmann [Wed, 2 Jul 2014 12:41:49 +0000 (14:41 +0200)]
arm: use a different stack setup macro for swi (copied from armv7)
Lothar Waßmann [Wed, 2 Jul 2014 12:25:23 +0000 (14:25 +0200)]
karo: set CONFIG_ARCH_MISC_INIT, so the exception VT will be properly updated after relocation
Lothar Waßmann [Wed, 2 Jul 2014 12:23:56 +0000 (14:23 +0200)]
arm: adjust PC displayed in exception handlers to point to the failing instruction
Lothar Waßmann [Mon, 30 Jun 2014 13:45:23 +0000 (15:45 +0200)]
board: karo: add 'ftd resize' to 'fdtsave' command
Lothar Waßmann [Mon, 30 Jun 2014 13:41:30 +0000 (15:41 +0200)]
board: karo: enable CONFIG_FAT_WRITE for all modules
Lothar Waßmann [Mon, 30 Jun 2014 13:22:41 +0000 (15:22 +0200)]
board: karo: make vbus-supply property name depend on board type
Lothar Waßmann [Mon, 30 Jun 2014 13:18:34 +0000 (15:18 +0200)]
Merge remote-tracking branch 'remotes/origin/tx48-mmc-bugfix'
Lothar Waßmann [Mon, 30 Jun 2014 13:17:22 +0000 (15:17 +0200)]
Merge remote-tracking branch 'remotes/origin/tx28-bugfix'
Lothar Waßmann [Mon, 30 Jun 2014 13:17:13 +0000 (15:17 +0200)]
Merge remote-tracking branch 'remotes/origin/tx6-bugfix'
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:09:34 +0000 (12:09 +0200)]
arm: am33xx: define cpu_mmc_init() as weak symbol
define the 'am33xx' cpu_mmc_init() implementation as weak symbol, so
it can be overridden by platform specific code!
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
Lothar Waßmann [Thu, 26 Jun 2014 09:00:39 +0000 (11:00 +0200)]
arm: am33xx: fix definition of MMC register addresses broken by merge
Lothar Waßmann [Thu, 26 Jun 2014 08:59:46 +0000 (10:59 +0200)]
arm: am335x: fix bogus #ifndef CONFIG_OMAP_MMC_DEV_0
Lothar Waßmann [Mon, 16 Jun 2014 16:09:05 +0000 (18:09 +0200)]
Merge branch 'tx6-bugfix'
Lothar Waßmann [Mon, 16 Jun 2014 16:08:45 +0000 (18:08 +0200)]
karo: tx6: actually use 'skip' parameter in tx6_prog_uboot() to determine start of image in flash
Lothar Waßmann [Mon, 16 Jun 2014 16:08:03 +0000 (18:08 +0200)]
karo: tx28: actually use 'skip' parameter in tx28_prog_uboot() to determine start of image in flash
Lothar Waßmann [Wed, 4 Jun 2014 14:49:55 +0000 (16:49 +0200)]
karo: unify mtd partitioning across all TX modules and increase linux partition size to 6MiB and rootfs to 32MiB
Lothar Waßmann [Wed, 4 Jun 2014 08:16:23 +0000 (10:16 +0200)]
karo: tx6: eliminate multiple evaluation of artithmetic expressions
Lothar Waßmann [Wed, 4 Jun 2014 08:11:46 +0000 (10:11 +0200)]
post: remove redundant include of autoconf.mk which is already included from $(TOPDIR)/config.mk
Lothar Waßmann [Tue, 3 Jun 2014 08:07:19 +0000 (10:07 +0200)]
Merge branch 'tx51-bugfix'
Lothar Waßmann [Mon, 2 Jun 2014 14:06:23 +0000 (16:06 +0200)]
karo: tx51: enable arm_bus clock
Lothar Waßmann [Fri, 30 May 2014 13:01:06 +0000 (15:01 +0200)]
karo: tx53: enable tmax2 clock to make ESDHC2 interface functional
Lothar Waßmann [Fri, 16 May 2014 10:02:12 +0000 (12:02 +0200)]
add support for TX6U-8012
Lothar Waßmann [Wed, 14 May 2014 09:08:07 +0000 (11:08 +0200)]
doc: karo: added description of boot_mode variable
Lothar Waßmann [Wed, 14 May 2014 08:39:28 +0000 (10:39 +0200)]
doc: karo: added description of boot_mode variable
Lothar Waßmann [Wed, 14 May 2014 08:38:59 +0000 (10:38 +0200)]
doc: karo: added description for TX6Q-1020
Lothar Waßmann [Wed, 14 May 2014 07:29:24 +0000 (09:29 +0200)]
Merge branch 'tx6q-1020-devel'
Lothar Waßmann [Wed, 14 May 2014 07:25:17 +0000 (09:25 +0200)]
Merge branch 'tx28-bugfix'
Lothar Waßmann [Tue, 13 May 2014 12:48:26 +0000 (14:48 +0200)]
arm: karo: tx6: reference mmc root device by UUID
Lothar Waßmann [Mon, 28 Apr 2014 12:14:53 +0000 (14:14 +0200)]
karo: tx6: increase dtb partition size to allow for bad blocks inside the partition
Lothar Waßmann [Mon, 28 Apr 2014 11:56:04 +0000 (13:56 +0200)]
karo: tx6: remove bootcmd_nand and set boot_mode to 'mmc' for TX6Q-1020
Lothar Waßmann [Fri, 25 Apr 2014 12:04:20 +0000 (14:04 +0200)]
karo: tx6: remove obsolete write levelling code