]> git.kernelconcepts.de Git - karo-tx-uboot.git/log
8 years agokaro: tx6: return -EINVAL from tx6_pmic_init() if no PMIC is configured KARO-TX6-2015-03-24
Lothar Waßmann [Tue, 24 Mar 2015 14:00:14 +0000 (15:00 +0100)]
karo: tx6: return -EINVAL from tx6_pmic_init() if no PMIC is configured

8 years agokaro: tx6: include default environment in MFG U-Boot variant
Lothar Waßmann [Tue, 24 Mar 2015 13:59:18 +0000 (14:59 +0100)]
karo: tx6: include default environment in MFG U-Boot variant

8 years agokaro: tx6: improve pad ctrl for SD card interfaces KARO-TX-2015-03-03
Lothar Waßmann [Tue, 3 Mar 2015 12:14:02 +0000 (13:14 +0100)]
karo: tx6: improve pad ctrl for SD card interfaces

8 years agokaro: mmc: fix file read from eMMC partition
Lothar Waßmann [Tue, 3 Mar 2015 08:54:01 +0000 (09:54 +0100)]
karo: mmc: fix file read from eMMC partition

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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.

8 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

8 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).

8 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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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

8 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
Also make sure the RESET_OUT pin of the TX48 module is activated
as early as possible.

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

8 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

8 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

8 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.

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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.

8 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

8 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

9 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

9 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

9 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

9 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

9 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)

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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()

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

9 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

9 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

9 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

9 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.

9 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

9 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.

9 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'

9 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

9 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)

9 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

9 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.

9 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

9 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)

9 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>
9 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.

9 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.

9 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

9 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

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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
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.

9 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.

9 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

9 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

9 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.

9 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

9 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

9 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.

9 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'

9 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

9 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

9 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

9 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

9 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)

9 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