]> git.karo-electronics.de Git - karo-tx-uboot.git/log
karo-tx-uboot.git
9 years agomtd: nand: omap_gpmc: support reading metadata from OOB KARO-TX-2015-02-27
Lothar Waßmann [Wed, 11 Feb 2015 15:24:20 +0000 (16:24 +0100)]
mtd: nand: omap_gpmc: support reading metadata from OOB

9 years agokaro: tx6: enable FDT support for MFG U-Boot build KARO-TX6-2015-02-05
Lothar Waßmann [Wed, 4 Feb 2015 06:44:01 +0000 (07:44 +0100)]
karo: tx6: enable FDT support for MFG U-Boot build

9 years agokaro: tx6: add missing '/' to MMC_ROOT_STR
Lothar Waßmann [Wed, 4 Feb 2015 06:43:35 +0000 (07:43 +0100)]
karo: tx6: add missing '/' to MMC_ROOT_STR

9 years agokaro: tx6: configure gpr3 when initializing LCD interface
Lothar Waßmann [Wed, 4 Feb 2015 06:42:35 +0000 (07:42 +0100)]
karo: tx6: configure gpr3 when initializing LCD interface

9 years agokaro: tx6: reduce VDDSOC and VDDCORE to 1.35V
Lothar Waßmann [Fri, 16 Jan 2015 08:58:02 +0000 (09:58 +0100)]
karo: tx6: reduce VDDSOC and VDDCORE to 1.35V

9 years agokaro: tx6: Cleanup PMIC code
Lothar Waßmann [Thu, 15 Jan 2015 17:19:04 +0000 (18:19 +0100)]
karo: tx6: Cleanup PMIC code

9 years agokaro: tx6: autodetect HW rev 1 and 3
Lothar Waßmann [Thu, 15 Jan 2015 15:01:03 +0000 (16:01 +0100)]
karo: tx6: autodetect HW rev 1 and 3

9 years agokaro: introduce variables 'safeboot' and 'wdreset'
Lothar Waßmann [Fri, 9 Jan 2015 11:33:40 +0000 (12:33 +0100)]
karo: introduce variables 'safeboot' and 'wdreset'

The environment variable 'safeboot' will be set when <CTRL-C> is
detected early in the boot process.
'wdreset' is set when the last boot cause was a watchdog reset.
This makes it possible to handle these events from the boot scripts.

9 years agokaro: remove dynamically created variables from the environment upon boot
Lothar Waßmann [Fri, 9 Jan 2015 11:30:07 +0000 (12:30 +0100)]
karo: remove dynamically created variables from the environment upon boot

This prevents using stale values for variables that are dynamically
created (e.g. filesize) and may have been saved to flash.

9 years agonet: phy: smsc: make MDI/MDIX setting configurable
Lothar Waßmann [Fri, 9 Jan 2015 11:26:27 +0000 (12:26 +0100)]
net: phy: smsc: make MDI/MDIX setting configurable

9 years agonet: phy: make autonegotiation configurable
Lothar Waßmann [Fri, 9 Jan 2015 11:22:56 +0000 (12:22 +0100)]
net: phy: make autonegotiation configurable

Introduce environment variables to configure the use of
ethernet autonegotiation.
The variable names are derived from the ethernet device name
('FEC' for TX51,TX53,TX6;  'FEC0','FEC1' for TX28; 'cpsw' for TX48)
with the suffix '_aneg' appended.
If the '*_aneg' variable is unset or set to a string starting in
'y','t' or '1' autonegotiation will be enabled and the '*_speed' and
'*_duplex' variables have no meaning.
Otherwise autonegotiation is disabled and the link speed and duplex
settings can be configured with the variables: '*_speed' and
'*_duplex' (with '*' replaced with the prefix described above).

9 years agokaro: config: prevent conversion of numerical value '1' in header files to 'y' by...
Lothar Waßmann [Fri, 9 Jan 2015 11:19:25 +0000 (12:19 +0100)]
karo: config: prevent conversion of numerical value '1' in header files to 'y' by define2mk.sed

The script 'tools/scripts/define2mk.sed' converts all defines with the
value '1' to 'y' to facilitate conditional compilation in Makefiles.
Prepend a '0x' prefix to values of '1' which should be kept as
numbers.

9 years agokaro: reset fdtaddr to the original value due to prevent overlap with linux kernel
Lothar Waßmann [Fri, 9 Jan 2015 11:15:47 +0000 (12:15 +0100)]
karo: reset fdtaddr to the original value due to prevent overlap with linux kernel

Moving the FDT to low RAM leaves only 28KiB between the FDT start
address and the standard address to which the linux image is unpacked
during boot. Thus the linux kernel will overwrite portions of the FDT
if this is larger than 28KiB (which is already the case for TX6).

Put the FDT at the original address 16MiB from RAM start to prevent
this.

9 years agoARM: interrupts: print pre-reloc address only if U-Boot has been relocated
Lothar Waßmann [Fri, 9 Jan 2015 11:11:13 +0000 (12:11 +0100)]
ARM: interrupts: print pre-reloc address only if U-Boot has been relocated

9 years agoARM: provide a valid exception stack address for startup code
Lothar Waßmann [Fri, 9 Jan 2015 11:07:40 +0000 (12:07 +0100)]
ARM: provide a valid exception stack address for startup code

create exception stack in IRAM if available to facilitate debugging of
pre-relocation code.

9 years agokaro: tx28: improve random init code
Lothar Waßmann [Fri, 9 Jan 2015 10:49:49 +0000 (11:49 +0100)]
karo: tx28: improve random init code

9 years agokaro: tx28: use symbolic name for can transceiver enable GPIO
Lothar Waßmann [Fri, 9 Jan 2015 10:49:49 +0000 (11:49 +0100)]
karo: tx28: use symbolic name for can transceiver enable GPIO

9 years agoarm: mxs: define IRAM_BASE_ADDR to enable exception stack for early debugging
Lothar Waßmann [Fri, 9 Jan 2015 10:49:49 +0000 (11:49 +0100)]
arm: mxs: define IRAM_BASE_ADDR to enable exception stack for early debugging

9 years agokaro: tx48: don't call karo_fdt_get_backlight_polarity() if the display is disabled
Lothar Waßmann [Fri, 9 Jan 2015 10:49:50 +0000 (11:49 +0100)]
karo: tx48: don't call karo_fdt_get_backlight_polarity() if the display is disabled

9 years agokaro: tx48: explicitly call tx48_phy_init()
Lothar Waßmann [Fri, 9 Jan 2015 10:49:50 +0000 (11:49 +0100)]
karo: tx48: explicitly call tx48_phy_init()

The .phy_init callback in the cpsw_platform_data which hooks the
tx48_phy_init() function is not being used by the cpsw driver.
Call the function explicitly to make sure the ethernet phy is properly
initialized.
Also make sure the RESET_OUT pin of the TX48 module is activated
as early as possible.

9 years agovideo: ipu: ipu-bugfixes
Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
video: ipu: ipu-bugfixes

9 years agokaro: tx6: use LDB clock as parent for DI clock for LVDS display
Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
karo: tx6: use LDB clock as parent for DI clock for LVDS display

9 years agokaro: tx6: change IPU related clock frequencies to match Linux setup
Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
karo: tx6: change IPU related clock frequencies to match Linux setup

9 years agoarm: mx6: update temperature calculation code
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.

9 years agoarm: mx6: make shutdown temperature configurable
Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
arm: mx6: make shutdown temperature configurable

9 years agokaro: tx6: use HW_WATCHDOG instead of IMX_WATCHDOG
Lothar Waßmann [Fri, 9 Jan 2015 10:49:53 +0000 (11:49 +0100)]
karo: tx6: use HW_WATCHDOG instead of IMX_WATCHDOG

This is consistent with all other TX modules.

9 years agokaro: tx6: add support for TX6 HW Rev. 3
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: add support for TX6 HW Rev. 3

9 years agokaro: tx6: add support for 16bit SDRAM bus width
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: add support for 16bit SDRAM bus width

9 years agokaro: 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: fix definition of IOMUXC_SW_PAD_CTL_GRP_DDRPK for i.MX6DL

9 years agokaro: tx6: define bitmask for DDR_PKE
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: define bitmask for DDR_PKE

9 years agokaro: tx6: remove bogus definition of MMDC1_MPWRDLST
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: remove bogus definition of MMDC1_MPWRDLST

9 years agokaro: tx6: Unify code for TX6 module revisions
Lothar Waßmann [Fri, 9 Jan 2015 10:49:52 +0000 (11:49 +0100)]
karo: tx6: Unify code for TX6 module revisions

9 years agokaro: tx6: change CONFIG_SYS_TEXT_BASE to accomodate boards with less than 256MiB...
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.

9 years agokaro: tx6: factor out PMIC initialization
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.

9 years agoarm: mx6: fix definition of PLL2 PFD frequencies
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.

9 years agoarm: mx6: don't print nonexistant PLL528 PFD3 value
Lothar Waßmann [Fri, 9 Jan 2015 10:49:51 +0000 (11:49 +0100)]
arm: mx6: don't print nonexistant PLL528 PFD3 value

9 years agokaro: tx6: fix definition of CONFIG_IPUV3_CLK
Lothar Waßmann [Tue, 2 Dec 2014 12:08:29 +0000 (13:08 +0100)]
karo: tx6: fix definition of CONFIG_IPUV3_CLK

10 years agosend <CRLF> rather than <LFCR> to the serial console KARO-TX-2014-11-10 KARO-TX-2014-11-14
Lothar Waßmann [Fri, 7 Nov 2014 08:22:27 +0000 (09:22 +0100)]
send <CRLF> rather than <LFCR> to the serial console

10 years agokaro: tx6: set default video_mode depending on LVDS/LCD module variant
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

10 years agokaro: tx53: adjust SDRAM row address bits for 4Gib chips
Lothar Waßmann [Tue, 28 Oct 2014 10:06:42 +0000 (11:06 +0100)]
karo: tx53: adjust SDRAM row address bits for 4Gib chips

10 years agoconfigs: tx53: set default video_mode depending on LVDS/LCD module variant
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

10 years agokaro: tx53: add support for TX53-1232 (2GiB SDRAM)
Lothar Waßmann [Fri, 24 Oct 2014 10:27:20 +0000 (12:27 +0200)]
karo: tx53: add support for TX53-1232 (2GiB SDRAM)

10 years agokaro: tx53: configure SDRAM size via boards.cfg
Lothar Waßmann [Fri, 24 Oct 2014 10:27:02 +0000 (12:27 +0200)]
karo: tx53: configure SDRAM size via boards.cfg

10 years agokaro: tx53: make adjust_core-voltage() less verbose
Lothar Waßmann [Fri, 24 Oct 2014 10:21:05 +0000 (12:21 +0200)]
karo: tx53: make adjust_core-voltage() less verbose

10 years agonet: phy: fix autonegotiation
Lothar Waßmann [Wed, 29 Oct 2014 13:07:20 +0000 (14:07 +0100)]
net: phy: fix autonegotiation

10 years agoMerge branch 'tx53-bugfix' into uboot-merge
Lothar Waßmann [Wed, 29 Oct 2014 13:05:32 +0000 (14:05 +0100)]
Merge branch 'tx53-bugfix' into uboot-merge

10 years agokaro: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 13:05:03 +0000 (14:05 +0100)]
karo: move FDT to low RAM

10 years agokaro: tx6: 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

10 years agonet: fec: fix 10MBit configuration
Lothar Waßmann [Wed, 29 Oct 2014 10:56:01 +0000 (11:56 +0100)]
net: fec: fix 10MBit configuration

10 years agokaro: tx53: move FDT to low RAM
Lothar Waßmann [Wed, 29 Oct 2014 07:53:59 +0000 (08:53 +0100)]
karo: tx53: move FDT to low RAM

10 years agokaro: tx48: 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

10 years agokaro: tx51: 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

10 years agonet: phy: don't try autonegotiation if it is not enabled in the PHY
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

10 years agonet: phy: properly handle return value of phy_read()
Lothar Waßmann [Wed, 29 Oct 2014 07:39:57 +0000 (08:39 +0100)]
net: phy: properly handle return value of phy_read()

10 years agophy: SMSC: fix autonegotiation
Lothar Waßmann [Wed, 29 Oct 2014 07:38:29 +0000 (08:38 +0100)]
phy: SMSC: fix autonegotiation

10 years agokaro: tx53: improve workaround for i.MX53 ROM code bug tx53-bugfix
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.

10 years agokaro: tx28: fix CONFIG_BOOTARGS and CONFIG_BOOTCOMMAND settings KARO-TX28-2014-09-10
Lothar Waßmann [Wed, 10 Sep 2014 09:03:52 +0000 (11:03 +0200)]
karo: tx28: fix CONFIG_BOOTARGS and CONFIG_BOOTCOMMAND settings

10 years agommc: mxs: configure DMA timeout depending on xfer rate and data size
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

10 years agoMX28: DMA: make the DMA timeout configurable
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.

10 years agoMX28: DMA: make mxs_dma_flush_desc() static
Lothar Waßmann [Wed, 3 Sep 2014 08:33:54 +0000 (10:33 +0200)]
MX28: DMA: make mxs_dma_flush_desc() static

10 years agokaro: bootce: add option '-i' to bootce command to init global data struct
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.

10 years agokaro: tx28: fix build error with 'CONFIG_ENV_IS_IN_MMC'
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'

10 years agokaro: tx28: add configurations for U-Boot ignoring the existing env in NAND
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

10 years agokaro: tx28: add support for TX28-4033 (with 256MiB flash)
Lothar Waßmann [Wed, 3 Sep 2014 07:38:27 +0000 (09:38 +0200)]
karo: tx28: add support for TX28-4033 (with 256MiB flash)

10 years agokaro: tx28: add support for 'boot_mode' variable
Lothar Waßmann [Wed, 3 Sep 2014 07:37:45 +0000 (09:37 +0200)]
karo: tx28: add support for 'boot_mode' variable

10 years agokaro: tx28: change default loadaddr for TX28S
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.

10 years agokaro: tx28: change FDT addr to be in low memory
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

10 years agokaro: tx28: cleanup config file
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

10 years agoam33xx: report silicon revision instead of code KARO-TX-2014-08-27
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>
10 years agokaro: tx48: remove the 'interrupts' property from LTC3589 node for AM335x silicon...
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.

10 years agokaro: tx48: make sure I2C pads are high upon boot
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.

10 years agokaro: tx48: only print message about cpu_clk, if it was actually changed
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

10 years agokaro: tx48: fix label for CD GPIO
Lothar Waßmann [Mon, 25 Aug 2014 12:29:15 +0000 (14:29 +0200)]
karo: tx48: fix label for CD GPIO

10 years agokaro: tx48: remove 'with FDT support' from "Board: ..." message
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().

10 years agogpio: am33xx: add missing gpio_get_value() function
Lothar Waßmann [Mon, 25 Aug 2014 12:25:18 +0000 (14:25 +0200)]
gpio: am33xx: add missing gpio_get_value() function

10 years agogpio: am33xx: print error messages for invalid GPIO requests
Lothar Waßmann [Mon, 25 Aug 2014 12:25:01 +0000 (14:25 +0200)]
gpio: am33xx: print error messages for invalid GPIO requests

10 years agoam33xx: don't print clock settings on boot
Lothar Waßmann [Mon, 25 Aug 2014 12:24:04 +0000 (14:24 +0200)]
am33xx: don't print clock settings on boot

10 years agokaro: fdt: fix karo_fdt_del_prop() function
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.

10 years agokaro: tx53: change drive strength of DDR control lines KARO-TX-2014-08-21 KARO-TX53-2014-08-15
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.

10 years agokaro: tx53: fix DDR_SEL value
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.

10 years agokaro: tx53: clear persistent bits in lpgr upon boot
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.

10 years agokaro: tx53: add 'romupdate' command to update the U-Boot image in flash
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.

10 years agokaro: tx53: prevent boot failure do to bad blocks inside the U-Boot partition
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.

10 years agokaro: tx51: increase ipg_per clock to 24MHz KARO-TX51-2014-08-08
Lothar Waßmann [Fri, 8 Aug 2014 12:53:50 +0000 (14:53 +0200)]
karo: tx51: increase ipg_per clock to 24MHz

10 years agokaro: tx51: remove duplicate CONFIG_SYS_SDRAM_CLK definition
Lothar Waßmann [Fri, 8 Aug 2014 12:52:50 +0000 (14:52 +0200)]
karo: tx51: remove duplicate CONFIG_SYS_SDRAM_CLK definition

10 years agokaro: tx51: fix ipu clock setting
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.

10 years agoarm: mx5: print some more clocks in the 'clock' command
Lothar Waßmann [Fri, 8 Aug 2014 12:45:21 +0000 (14:45 +0200)]
arm: mx5: print some more clocks in the 'clock' command

10 years agokaro: tx51: use .error asm instruction to print error message if DCD is too large
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

10 years agokaro: tx51: init pad settings for SDRAM and NAND
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.

10 years agoMerge branch 'tx48-rel' KARO-TX-2014-07-18
Lothar Waßmann [Fri, 18 Jul 2014 12:48:59 +0000 (14:48 +0200)]
Merge branch 'tx48-rel'

10 years agofdt: karo: improve handling of usbotg phy
Lothar Waßmann [Fri, 18 Jul 2014 12:11:14 +0000 (14:11 +0200)]
fdt: karo: improve handling of usbotg phy

10 years agofdt: karo: make 'otg_mode' setting case insensitive
Lothar Waßmann [Fri, 18 Jul 2014 12:05:22 +0000 (14:05 +0200)]
fdt: karo: make 'otg_mode' setting case insensitive

10 years agokaro: tx53: remove a bogus wait for CON_ACK to clear
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

10 years agomxs: change setup of exception vt KARO-TX-2014-07-10
Lothar Waßmann [Thu, 10 Jul 2014 09:09:20 +0000 (11:09 +0200)]
mxs: change setup of exception vt

10 years agoarm: use a different stack setup macro for swi (copied from armv7)
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)

10 years agokaro: set CONFIG_ARCH_MISC_INIT, so the exception VT will be properly updated after...
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

10 years agoarm: adjust PC displayed in exception handlers to point to the failing instruction
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

10 years agoboard: karo: add 'ftd resize' to 'fdtsave' command
Lothar Waßmann [Mon, 30 Jun 2014 13:45:23 +0000 (15:45 +0200)]
board: karo: add 'ftd resize' to 'fdtsave' command

10 years agoboard: karo: enable CONFIG_FAT_WRITE for all modules
Lothar Waßmann [Mon, 30 Jun 2014 13:41:30 +0000 (15:41 +0200)]
board: karo: enable CONFIG_FAT_WRITE for all modules

10 years agoboard: karo: make vbus-supply property name depend on board type
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