]> git.kernelconcepts.de Git - karo-tx-uboot.git/log
karo-tx-uboot.git
12 years agoOneNAND: Add simple OneNAND SPL
Marek Vasut [Mon, 31 Oct 2011 13:14:15 +0000 (14:14 +0100)]
OneNAND: Add simple OneNAND SPL

This introduces small OneNAND loader, fitting into 1kB of space (smallest
possible OneNAND RAM size). Some devices equipped with such crappy chips will
use this.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Scott Wood <scottwood@freescale.com>
V2: Introduce spl_onenand_load_image() to load data from OneNAND in SPL
V3: Cleanup, align with nand_spl. Skip whole blocks.

12 years agoPXA: vpac270: Enable the new generic MMC driver
Marek Vasut [Sun, 28 Aug 2011 04:30:40 +0000 (06:30 +0200)]
PXA: vpac270: Enable the new generic MMC driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Cleanup serial_pxa
Marek Vasut [Sun, 28 Aug 2011 01:35:13 +0000 (03:35 +0200)]
PXA: Cleanup serial_pxa

* Cleanup register definitions by introducing new regs-uart.h, compliant with
  rest of U-Boot.
* Remove old register definitions from pxa-regs.h
* Convert serial_pxa to new regs-uart.h
* Cleanup serial_pxa

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Drop csb226 and innokom boards (unmaintained)
Marek Vasut [Thu, 3 Nov 2011 00:02:47 +0000 (01:02 +0100)]
PXA: Drop csb226 and innokom boards (unmaintained)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Robert Schwebel <robert@schwebel.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 years agoFix constness of the fdt void pointer in fdt_getprop_u32_default
Gabe Black [Tue, 8 Nov 2011 09:09:44 +0000 (01:09 -0800)]
Fix constness of the fdt void pointer in fdt_getprop_u32_default

The function fdt_getprop_u32_default doesn't modify the fdt, so it can use a
const void * for its fdt argument.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
12 years agoAdd some missing endian conversions in fdt_support.c
Gabe Black [Tue, 8 Nov 2011 09:05:32 +0000 (01:05 -0800)]
Add some missing endian conversions in fdt_support.c

Some functions in fdt_support.c use fdt_getprop to read 32 bit values out of
the device tree, but then use them directly without doing any endian
conversion. Because they check for a value that doesn't actually appear in
practice, the functions continued to work even though they're incorrect.
This change adds the missing conversions.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
12 years agoTegra2: mmc: Factor out mmc_wait_inhibit functionality
Anton staaf [Thu, 10 Nov 2011 11:56:52 +0000 (11:56 +0000)]
Tegra2: mmc: Factor out mmc_wait_inhibit functionality

This is a well encapsulated section of mmc_send_cmd, by moving
it to it's own function it increases the readability of mmc_send_cmd.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoTegra2: mmc: Add data transfer completion timeout
Anton staaf [Thu, 10 Nov 2011 11:56:51 +0000 (11:56 +0000)]
Tegra2: mmc: Add data transfer completion timeout

Currently when no expected completion condition occures in the
mmc_send_cmd while loop that is waiting for a data transfer to
complete the MMC driver just hangs.

This patch adds an arbitrary 2 second timeout.  If nothing we
recognize occures within 2 seconds some diagnostic information
is printed and we fail out.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoTegra2: mmc: Support DMA restarts at buffer boundaries
Anton staaf [Thu, 10 Nov 2011 11:56:50 +0000 (11:56 +0000)]
Tegra2: mmc: Support DMA restarts at buffer boundaries

Currently if a DMA buffer straddles a buffer alignment boundary
(512KiB) then the DMA engine will pause and generate a DMA
interrupt.  Since the DMA interrupt is not enabled it will hang
the MMC driver.

This patch adds support for restarting the DMA transfer.  The
SYSTEM_ADDRESS register contains the next address that would have
been read/written when a boundary is hit.  So we can read that
and write it back.  The write triggers the resumption of the
transfer.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoTegra2: mmc: define register field values in tegra2_mmc.h
Anton staaf [Thu, 10 Nov 2011 11:56:49 +0000 (11:56 +0000)]
Tegra2: mmc: define register field values in tegra2_mmc.h

This moves the magic numbers sprinkled about the MMC driver
to a single location in the header file and gives them
meaningful names.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agopowerpc/85xx: Fix builds of P1020/P2020RDB-PC_36BIT_NAND
Kumar Gala [Fri, 11 Nov 2011 14:14:53 +0000 (08:14 -0600)]
powerpc/85xx: Fix builds of P1020/P2020RDB-PC_36BIT_NAND

Size grew a bit so nand-spl didn't fit in 4k, reduce done by removing
LAW entries not needed during SPL phase.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:05:10 +0000 (10:05 -0600)]
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c: Fix GCC 4.6 build warning

Fix:

ctrl_regs.c: In function 'set_ddr_sdram_cfg_2':
ctrl_regs.c:641:15: warning: variable 'rcw_en' set but not used [-Wunused-but-set-variable]
ctrl_regs.c: In function 'compute_fsl_memctl_config_regs':
ctrl_regs.c:951:31: warning: array subscript is above array bounds [-Warray-bounds]
ctrl_regs.c:752:34: warning: array subscript is above array bounds [-Warray-bounds]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:05:01 +0000 (10:05 -0600)]
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c: Fix GCC 4.6 build warning

Fix:

fsl_corenet_serdes.c: In function 'fsl_serdes_init':
fsl_corenet_serdes.c:511:8: warning: variable 'buf' set but not used [-Wunused-but-set-variable]
fsl_corenet_serdes.c:498:18: warning: variable 'lane_prtcl' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc8xxx/ddr/options.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:05:21 +0000 (10:05 -0600)]
arch/powerpc/cpu/mpc8xxx/ddr/options.c: Fix GCC 4.6 build warning

Fix:

options.c: In function 'populate_memctl_options':
options.c:486:28: warning: variable 'pdodt' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agodrivers/qe/uec.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:04:33 +0000 (10:04 -0600)]
drivers/qe/uec.c: Fix GCC 4.6 build warning

uec.c: In function 'uec_stop':
uec.c:267:22: warning: variable 'uccf' set but not used [-Wunused-but-set-variable]
uec.c: In function 'uec_set_mac_if_mode':
uec.c:328:15: warning: variable 'uec_info' set but not used [-Wunused-but-set-variable]
uec.c: In function 'adjust_link':
uec.c:519:11: warning: variable 'uec_regs' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agodrivers/usb/host/ehci-fsl.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:04:15 +0000 (10:04 -0600)]
drivers/usb/host/ehci-fsl.c: Fix GCC 4.6 build warning

Fix:

ehci-fsl.c: In function 'ehci_hcd_init':
ehci-fsl.c:43:7: warning: variable 'usb_phy' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agodrivers/net/fm/fm.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:03:55 +0000 (10:03 -0600)]
drivers/net/fm/fm.c: Fix GCC 4.6 build warning

Fix:

fm.c: In function 'fm_init_common':
fm.c:398:6: warning: variable 'n' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/sbc8560/sbc8560.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:03:43 +0000 (10:03 -0600)]
board/sbc8560/sbc8560.c: Fix GCC 4.6 build warning

Fix:

sbc8560.c: In function 'ft_board_setup':
sbc8560.c:351:12: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/sbc8548/sbc8548.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:03:26 +0000 (10:03 -0600)]
board/sbc8548/sbc8548.c: Fix GCC 4.6 build warning

Fix:

sbc8548.c: In function 'local_bus_init':
sbc8548.c:80:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/freescale/mpc8569mds/mpc8569mds.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:03:12 +0000 (10:03 -0600)]
board/freescale/mpc8569mds/mpc8569mds.c: Fix GCC 4.6 build warning

mpc8569mds.c: In function 'local_bus_init':
mpc8569mds.c:306:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/freescale/mpc8568mds/mpc8568mds.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:03:01 +0000 (10:03 -0600)]
board/freescale/mpc8568mds/mpc8568mds.c: Fix GCC 4.6 build warning

Fix:

mpc8568mds.c: In function 'local_bus_init':
mpc8568mds.c:150:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]
mpc8568mds.c: In function 'pib_init':
mpc8568mds.c:271:11: warning: variable 'orig_i2c_bus' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/freescale/mpc8548cds/mpc8548cds.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:02:40 +0000 (10:02 -0600)]
board/freescale/mpc8548cds/mpc8548cds.c: Fix GCC 4.6 build warning

Fix:

mpc8548cds.c: In function 'local_bus_init':
mpc8548cds.c:87:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]
mpc8548cds.c: In function 'lbc_sdram_init':
mpc8548cds.c:121:7: warning: variable 'cpu_board_rev' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/freescale/common/pixis.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:02:11 +0000 (10:02 -0600)]
board/freescale/common/pixis.c: Fix GCC 4.6 build warning

Fix:

pixis.c: In function 'strfractoint':
pixis.c:383:6: warning: variable 'intarr_len' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoboard/freescale/common/cds_pci_ft.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:01:06 +0000 (10:01 -0600)]
board/freescale/common/cds_pci_ft.c: Fix GCC 4.6 build warning

Fix:

cds_pci_ft.c: In function 'cds_pci_fixup':
cds_pci_ft.c:31:12: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc8xxx/fsl_lbc.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 16:00:23 +0000 (10:00 -0600)]
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c: Fix GCC 4.6 build warning

Fix:

fsl_lbc.c: In function 'upmconfig':
fsl_lbc.c:110:9: warning: variable 'mdr' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc85xx/tlb.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 15:59:32 +0000 (09:59 -0600)]
arch/powerpc/cpu/mpc85xx/tlb.c: Fix GCC 4.6 build warning

Fix:

tlb.c: In function 'disable_tlb':
tlb.c:175:34: warning: variable '_mas7' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoarch/powerpc/cpu/mpc85xx/cpu_init.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 15:56:41 +0000 (09:56 -0600)]
arch/powerpc/cpu/mpc85xx/cpu_init.c: Fix GCC 4.6 build warning

Fix:

cpu_init.c: In function 'cpu_init_r':
cpu_init.c:320:7: warning: variable 'l2srbar' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agophylib: Enable AR8021 phy support
Xie Xiaobo [Fri, 11 Nov 2011 09:19:41 +0000 (17:19 +0800)]
phylib: Enable AR8021 phy support

Enable AR8021 as it used on Freescale boards: P1020RDB-PC, P1021RDB-PC,
P2020RDB-PC, P1020UTM-PC, and P1020MSBG-PC.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: Set max alloc length to 10MB on P1022DS
Jerry Huang [Wed, 2 Nov 2011 01:16:44 +0000 (09:16 +0800)]
powerpc/85xx: Set max alloc length to 10MB on P1022DS

In order to support 1920x01080 resolution, we must increase the alloc
length.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
CC: Anatolij Gustschin <agust@denx.de>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/mpc85xx: Set SYSCLK to the required frequency
Jerry Huang [Thu, 3 Nov 2011 07:18:06 +0000 (15:18 +0800)]
powerpc/mpc85xx: Set SYSCLK to the required frequency

For ICS307-02, there is one general expression to generate SYSCLK:
CLK1Frequency = InputFrequency * 2 * (VDW + 8) / ((RDW + 2) * OD)

If we want the required frequency for SYSCLK, we must find one solution
to generate this frequency, this solution includes VDW, RDW and OD.
For OD, there are only eight option value: 10, 2, 8, 4, 5, 7, 3, 6.
For RDW, the range is 1 to 127.
For VDW, the range is 4 to 511.

First, we use one OD, RDW and required SYSCLK to calculate the VDW,
if VDW is in it's range, we will calculate the CLK1Frequency with
the OD, RDW and VDW calculated, and we will check this percent
(CLK1Frequency / required SYSCLK), and the precision is 1/1000.
if the percent is less than 1/1000, we think the CLK1Frequency is we want.
Otherwise, We will continue to calculate it with the next OD and RDW.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agom28evk: Fix comment about the number of RAM banks
Fabio Estevam [Thu, 10 Nov 2011 06:38:45 +0000 (06:38 +0000)]
m28evk: Fix comment about the number of RAM banks

m28evk has one bank of RAM.

Fix the comment.

Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
12 years agomx31: Fix checkpatch warnings in generic.c
Fabio Estevam [Wed, 9 Nov 2011 04:15:03 +0000 (04:15 +0000)]
mx31: Fix checkpatch warnings in generic.c

Fix checkpatch warnings in generic.c.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agomx31: Use proper IO accessor for GPR register
Fabio Estevam [Wed, 9 Nov 2011 04:15:02 +0000 (04:15 +0000)]
mx31: Use proper IO accessor for GPR register

Use proper IO accessor for GPR register.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agomx31: Remove duplicate definition for GPR register
Fabio Estevam [Wed, 9 Nov 2011 04:15:01 +0000 (04:15 +0000)]
mx31: Remove duplicate definition for GPR register

GPR register definition is already available at imx-regs.h, so remove the duplication.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoqong: Use generic function for configuring GPR register
Fabio Estevam [Wed, 9 Nov 2011 04:15:00 +0000 (04:15 +0000)]
qong: Use generic function for configuring GPR register

Use generic function for configuring GPR register.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoM28EVK: Enable USB HOST support
Marek Vasut [Tue, 8 Nov 2011 23:18:27 +0000 (23:18 +0000)]
M28EVK: Enable USB HOST support

This enables the second port, aka. the port with the USB connector on the
M28EVK.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
12 years agoiMX28: Add USB HOST driver
Marek Vasut [Tue, 8 Nov 2011 23:18:26 +0000 (23:18 +0000)]
iMX28: Add USB HOST driver

This driver supports both EHCI ports on the i.MX28 CPU.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
12 years agoiMX28: Add USB and USB PHY register definitions
Marek Vasut [Tue, 8 Nov 2011 23:18:25 +0000 (23:18 +0000)]
iMX28: Add USB and USB PHY register definitions

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
12 years agoM28: Add memory detection into SPL
Marek Vasut [Tue, 8 Nov 2011 23:18:24 +0000 (23:18 +0000)]
M28: Add memory detection into SPL

This code allows the DDR DRAM size to be detected at runtime. The RAM size is
stored into two scratch registers, from which it is then fetched in U-Boot.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Fix ARM vector handling
Marek Vasut [Tue, 8 Nov 2011 23:18:23 +0000 (23:18 +0000)]
iMX28: Fix ARM vector handling

This patch introduces proper ARM vector handling for i.MX28 CPU. This issue
wasn't addressed because the interrupts weren't enabled on any ARMv5 core,
therefore the issue wasn't noticed earlier.

In previous implementation, the vectoring code used by i.MX28 CPU when an
exception happened was that of the SPL. With this change, the branch target when
an exception happens can be reconfigured by U-Boot.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoM28: Add doc/README.m28 documentation
Marek Vasut [Tue, 8 Nov 2011 23:18:22 +0000 (23:18 +0000)]
M28: Add doc/README.m28 documentation

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoM28: Add MMC SPL
Marek Vasut [Tue, 8 Nov 2011 23:18:21 +0000 (23:18 +0000)]
M28: Add MMC SPL

This patch adds SPL code for the M28 board.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add support for DENX M28EVK board
Marek Vasut [Tue, 8 Nov 2011 23:18:20 +0000 (23:18 +0000)]
iMX28: Add support for DENX M28EVK board

This contains support for the following components:
- DUART
- MMC
- Both FEC interfaces
- NAND
- I2C (RTC, EEPROM)
- SPI (FLASH)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add u-boot.sb target to Makefile
Marek Vasut [Tue, 8 Nov 2011 23:18:19 +0000 (23:18 +0000)]
iMX28: Add u-boot.sb target to Makefile

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add image header generator tool
Marek Vasut [Tue, 8 Nov 2011 23:18:18 +0000 (23:18 +0000)]
iMX28: Add image header generator tool

This tool can now generate proper image for "BootStream" files.

NOTE: This tool now works only for NAND.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add driver for internal RTC
Marek Vasut [Tue, 8 Nov 2011 23:18:17 +0000 (23:18 +0000)]
iMX28: Add driver for internal RTC

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add GPMI NAND driver
Marek Vasut [Tue, 8 Nov 2011 23:18:16 +0000 (23:18 +0000)]
iMX28: Add GPMI NAND driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add APBH DMA driver
Marek Vasut [Tue, 8 Nov 2011 23:18:15 +0000 (23:18 +0000)]
iMX28: Add APBH DMA driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add SPI driver
Marek Vasut [Tue, 8 Nov 2011 23:18:14 +0000 (23:18 +0000)]
iMX28: Add SPI driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add GPIO control
Marek Vasut [Tue, 8 Nov 2011 23:18:13 +0000 (23:18 +0000)]
iMX28: Add GPIO control

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add I2C bus driver
Marek Vasut [Tue, 8 Nov 2011 23:18:12 +0000 (23:18 +0000)]
iMX28: Add I2C bus driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Heiko Schocher<hs@denx.de>
12 years agoiMX28: Add PINMUX control
Marek Vasut [Tue, 8 Nov 2011 23:18:11 +0000 (23:18 +0000)]
iMX28: Add PINMUX control

Taken from Linux kernel with minor modifications:

commit bf985969e27b507f734435a99df8bf745a3dbb2b
Author: Shawn Guo <shawn.guo@freescale.com>
Date:   Mon Dec 20 22:57:43 2010 +0800

    ARM: mxs: Add iomux support

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Add support for iMX28 quirks
Marek Vasut [Tue, 8 Nov 2011 23:18:10 +0000 (23:18 +0000)]
FEC: Add support for iMX28 quirks

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoiMX28: Add SSP MMC driver
Marek Vasut [Tue, 8 Nov 2011 23:18:09 +0000 (23:18 +0000)]
iMX28: Add SSP MMC driver

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Andy Fleming <afleming@gmail.com>
12 years agoiMX28: Initial support for iMX28 CPU
Marek Vasut [Tue, 8 Nov 2011 23:18:08 +0000 (23:18 +0000)]
iMX28: Initial support for iMX28 CPU

This patch supports:
- Timers
- Debug UART
- Clock

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoMX25: zmx25: GCC4.6 fix build warnings
Stefano Babic [Sun, 6 Nov 2011 00:40:52 +0000 (00:40 +0000)]
MX25: zmx25: GCC4.6 fix build warnings

Fix:
zmx25.c: In function 'board_late_init':
zmx25.c:131:25: warning: variable 'padctl' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoVIDEO: mx3fb: GCC4.6 fix build warnings
Stefano Babic [Sun, 6 Nov 2011 00:42:07 +0000 (00:42 +0000)]
VIDEO: mx3fb: GCC4.6 fix build warnings

Fix:
mx3fb.c: In function 'video_hw_init':
mx3fb.c:827:30: warning: variable 'vesa_idx' set but not used

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Anatolij Gustschin <agust@denx.de>
12 years agoPowerpc/DIU: Fixed the 800x600 and 1024x768 resolution bug
Jerry Huang [Sun, 30 Oct 2011 20:19:54 +0000 (20:19 +0000)]
Powerpc/DIU: Fixed the 800x600 and 1024x768 resolution bug

When the resolution is set to 800x600 and 1024x768,
but, the driver will use 1280x1024 resolution to set the DIU register

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
12 years agoda850: add new config file for AM18xx
Nagabhushana Netagunte [Wed, 9 Nov 2011 21:53:33 +0000 (16:53 -0500)]
da850: add new config file for AM18xx

add new configuration file da850_am18xxevm.h for AM18xx boards
which are based on da850 SOC. AM18xx has WINBOND spi flash which
is indicated in the config file. And make appropriate changes in
board.cfg for building.

Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoBeagleBoard: config: Switch to ttyO2
Alexander Holler [Wed, 9 Nov 2011 21:40:11 +0000 (16:40 -0500)]
BeagleBoard: config: Switch to ttyO2

This is needed to support the latest kernel versions.

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoOMAP3: Change omap3_evm maintainer
Tom Rini [Wed, 9 Nov 2011 21:40:08 +0000 (16:40 -0500)]
OMAP3: Change omap3_evm maintainer

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodevkit8000: Fix NAND SPL on boards with 256MB NAND
Tom Rini [Wed, 9 Nov 2011 21:40:04 +0000 (16:40 -0500)]
devkit8000: Fix NAND SPL on boards with 256MB NAND

The devkit8000 ships with either a 128MB or 256MB NAND chip.  In
order for SPL to work with 256MB NAND CONFIG_SYS_NAND_5_ADDR_CYCLE
needs to be set.  After talking with Scott Wood this should be
safe to set even for smaller NAND chips.

Cc: Scott Wood <scottwood@freescale.com>
Cc: Frederik Kriewitz <frederik@kriewitz.eu>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agointegrator: enable Vpp and disable flash protection
Linus Walleij [Wed, 9 Nov 2011 06:16:37 +0000 (06:16 +0000)]
integrator: enable Vpp and disable flash protection

This enables Vpp and disables the flash protection on the
Integrator when starting U-Boot. The integrator/AP has double
protection mechanisms: this one and the EBI protection bit
(patch earlier), the Integrator/CP has only one line of
protection in these registers.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agointegrator: add system controller header
Linus Walleij [Wed, 9 Nov 2011 06:16:17 +0000 (06:16 +0000)]
integrator: add system controller header

Break out the AP system controller and CP "CP controller"
registers into a header file, it gives better overview than
hardcoding its values and other disturbing practices.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agointegrator: make flash writeable on boot
Linus Walleij [Wed, 9 Nov 2011 06:15:59 +0000 (06:15 +0000)]
integrator: make flash writeable on boot

This reconfigures the EBI (External Bus Interface) on the
integrator so that chip select 1, handling the flash memory, is
set to writeable. Without this it is not possible for U-Boot to
access flash memory and it crashes on startup since CFI won't
work properly.

Since this is the first time we use the EBI, we create a header
file for its registers.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agointegrator: use io-accessors for board init
Linus Walleij [Wed, 9 Nov 2011 06:14:40 +0000 (06:14 +0000)]
integrator: use io-accessors for board init

Casting around to *(volatile ulong *) doesn't look good, so include
the <asm/io.h> macros and use good old readl() instead.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agointegrator: move text offset to config
Linus Walleij [Wed, 9 Nov 2011 06:14:20 +0000 (06:14 +0000)]
integrator: move text offset to config

Do away with the config.mk file and move the text offset to the
config files to make things easier.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agointegrator: pass configs for core modules
Linus Walleij [Wed, 9 Nov 2011 06:14:05 +0000 (06:14 +0000)]
integrator: pass configs for core modules

Alter the board.cfg to pass core module configuration flags
so we can make compile-time switches for different core
modules. These are already in use for some low-level code,
they just got lost in the conversion to the new build
system.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agoadp-ag101p: add product into MAINTAINERS list
Macpaul Lin [Tue, 19 Oct 2010 09:10:34 +0000 (17:10 +0800)]
adp-ag101p: add product into MAINTAINERS list

Add ADP-AG101P into MAINTAINERS list.
Add ADP-AG101P into boards.cfg.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
12 years agoadp-ag101p: Add SoC and board support of ag101p
Macpaul Lin [Tue, 19 Oct 2010 09:05:51 +0000 (17:05 +0800)]
adp-ag101p: Add SoC and board support of ag101p

Add softcore SoC ag101p and the board adp-ag101p support.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
12 years agopowerpc/85xx: Fix NAND SPL support
Kumar Gala [Wed, 9 Nov 2011 15:10:49 +0000 (09:10 -0600)]
powerpc/85xx: Fix NAND SPL support

We cause CCSRBAR to be relocated in the SPL phase of NAND boot which
isn't expected and breaks things.  Fixing the board config.h to NOT
relocate CCSR during the CONFIG_NAND_SPL phase.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agonds32: fix data section of linker script
Macpaul Lin [Wed, 9 Nov 2011 08:24:57 +0000 (16:24 +0800)]
nds32: fix data section of linker script

Make linker script handles .data.rel sections.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agodwcddr21mctl: Synopsys DWC DDR2/1 Memory Controller
Macpaul Lin [Mon, 26 Sep 2011 09:44:34 +0000 (17:44 +0800)]
dwcddr21mctl: Synopsys DWC DDR2/1 Memory Controller

Header definitions of Synopsys DWC DDR2/1 Memory Controller.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
12 years agoandes_pcu.h: header file of andes_pcu power control unit
Macpaul Lin [Tue, 27 Sep 2011 07:31:07 +0000 (15:31 +0800)]
andes_pcu.h: header file of andes_pcu power control unit

header file of andes_pcu power control unit

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
12 years agofsl_i2c: Fix compile warning
Kumar Gala [Tue, 8 Nov 2011 03:39:43 +0000 (03:39 +0000)]
fsl_i2c: Fix compile warning

fsl_i2c.c: In function 'i2c_init':
fsl_i2c.c:245:7: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoARM: remove superfluous setting of arch_number in board specific code.
David Müller (ELSOFT AG) [Mon, 31 Oct 2011 01:22:07 +0000 (01:22 +0000)]
ARM: remove superfluous setting of arch_number in board specific code.

Signed-off-by: David Mueller <d.mueller@elsoft.ch>
12 years agoSPL: Allow ARM926EJS to avoid compiling in the CPU support code
Marek Vasut [Mon, 24 Oct 2011 00:14:23 +0000 (00:14 +0000)]
SPL: Allow ARM926EJS to avoid compiling in the CPU support code

This allows the SPL to avoid compiling in the CPU support code.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
12 years agointegrator: do not test first part of the memory
Linus Walleij [Sun, 23 Oct 2011 21:02:03 +0000 (21:02 +0000)]
integrator: do not test first part of the memory

When booting from Flash, the Integrator remaps its flash memory
from 0x24000000 to 0x00000000, and starts executing it at
0x00000000. This ROM thus hides the RAM underneath and first
0x40000 bytes of the memory cannot be tested by get_ram_size().
So let's test from 0x40000 to the end of detected memory
instead.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 years agoMMC: PL180: Fix infinite loop with VExpress extended fifo implementation
Jon Medhurst (Tixy) [Fri, 4 Nov 2011 03:06:12 +0000 (03:06 +0000)]
MMC: PL180: Fix infinite loop with VExpress extended fifo implementation

The new IO FPGA implementation for Versatile Express contains an MMCI
(PL180) cell with the FIFO extended to 128 words. This causes the
read_bytes() function to go into an infinite loop; as it will wait for
for the half-full signal (SDI_STA_RXFIFOBR) if there are more than 8
words remaining (SDI_FIFO_BURST_SIZE), but it won't receive this signal
once there are fewer than 64 words left to transfer.

One possible fix is to add some build time configuration to change
SDI_FIFO_BURST_SIZE for the new implementation. However, the problematic
code only seems to exist as a small performance optimisation, so the
solution implemented by this patch is to simply remove it. The error
checking following the loop is also removed as this will be handled by
code further down the function.

Cc: Andy Fleming <afleming@gmail.com>
Signed-off-by: Jon Medhurst <jon.medhurst@linaro.org>
12 years agoarm: a320: fix broken timer
Po-Yu Chuang [Wed, 10 Aug 2011 17:44:21 +0000 (17:44 +0000)]
arm: a320: fix broken timer

timer.c used static data and are called before relocation.
Move all static variables into global_data structure. Also cleanup
timer.c from unused stubs and make it truly use 64 bit tick values.

Remove reset_timer_masked() get_timer_masked()

reference: arch/arm/cpu/arm926ejs/at91/timer.c

Based on Reinhard Meyer <u-boot@emk-elektronik.de>'s patches
5dca710a3d7703e41da0e9894f2d71f9e25bea6b
cfff263f41e32c7ba2ee9162a8cc6423eb5a8390

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
12 years agoARM: define CONFIG_MACH_TYPE for all ronetix boards
Asen Dimov [Mon, 31 Oct 2011 08:54:20 +0000 (08:54 +0000)]
ARM: define CONFIG_MACH_TYPE for all ronetix boards

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
12 years agopowerpc/85xx: Fix MPC8572DS NAND build
Kumar Gala [Tue, 8 Nov 2011 17:03:54 +0000 (11:03 -0600)]
powerpc/85xx: Fix MPC8572DS NAND build

Reduce NAND SPL build size by not include TLB entries that arent used by
it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agofsl_ifc: Fixed a bug in the erratum handling code for IFC_A003399
Poonam Aggrwal [Tue, 1 Nov 2011 13:28:20 +0000 (18:58 +0530)]
fsl_ifc: Fixed a bug in the erratum handling code for IFC_A003399

Wrong pointer was being used to copy code into L2SRAM.
Also removed the unreferenced variable l2srbar.

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: Add support for Book-E MMU Arch v2.0
Kumar Gala [Tue, 1 Nov 2011 03:13:26 +0000 (22:13 -0500)]
powerpc/85xx: Add support for Book-E MMU Arch v2.0

A few of the config registers changed definition between MMU v1.0 and
MMUv2.0.  The new e6500 core from Freescale implements v2.0 of the
architecture.

Specifically, how we determine the size of TLB entries we support in the
variable size (or TLBCAM/TLB1) array is specified in a new register
(TLBnPS - TLB n Page size) instead of via TLBnCFG.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: Make inclusion of USB device fixup conditional
Ramneek Mehresh [Tue, 8 Nov 2011 04:51:28 +0000 (10:21 +0530)]
powerpc/85xx: Make inclusion of USB device fixup conditional

Include call to usb device-fixup only when CONFIG_HAS_FSL_DR_USB is
defined for the platform - P1020RDB, P1010RDB, P1020-PC

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: Fix warning for USB device-fixup
Ramneek Mehresh [Tue, 8 Nov 2011 07:39:20 +0000 (13:09 +0530)]
powerpc/85xx: Fix warning for USB device-fixup

Fix USB device-fixup warning "node not found". This was occuring
because of static nature of start_offset variable

Static start_offset was storing offset of last node modified, and
was becoming issue if node fixup is carried multiple times,
resulting in "node not found" warning

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: resize the boot page TLB before relocating CCSR
Timur Tabi [Mon, 31 Oct 2011 18:30:45 +0000 (13:30 -0500)]
powerpc/85xx: resize the boot page TLB before relocating CCSR

On some Freescale systems (e.g. those booted from the on-chip ROM), the
TLB that covers the boot page can also cover CCSR, which breaks the CCSR
relocation code.  To fix this, we resize the boot page TLB so that it only
covers the 4KB boot page.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: verify the current address of CCSR before relocating it
Timur Tabi [Mon, 31 Oct 2011 18:30:44 +0000 (13:30 -0500)]
powerpc/85xx: verify the current address of CCSR before relocating it

Verify that CCSR is actually located where it is supposed to be before
we relocate it.  This is useful in detecting U-Boot configurations that
are broken (e.g. an incorrect value for CONFIG_SYS_CCSRBAR_DEFAULT).
If the current value is wrong, we enter an infinite loop, which is handy
for debuggers.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: add some missing sync instructions in the CCSR relocation code
Timur Tabi [Mon, 31 Oct 2011 18:30:43 +0000 (13:30 -0500)]
powerpc/85xx: add some missing sync instructions in the CCSR relocation code

Calls to tlbwe and tlbsx should be preceded with an isync/msync pair.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: fix some comments in the CCSR relocation code
Timur Tabi [Mon, 31 Oct 2011 18:30:42 +0000 (13:30 -0500)]
powerpc/85xx: fix some comments in the CCSR relocation code

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: fix definition of MAS register macros
Timur Tabi [Mon, 31 Oct 2011 18:30:41 +0000 (13:30 -0500)]
powerpc/85xx: fix definition of MAS register macros

Some of the MAS register macros do not protect the parameter with
parentheses, which could cause wrong values if the parameter includes
operators.

Also fix the definition of TSIZE_TO_BYTES() so that it actually uses
the parameter.  This hasn't caused any problems to date because the
parameter was always been 'tsize'.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/mpc8548cds: Fix network initialization
chenhui zhao [Tue, 6 Sep 2011 16:41:18 +0000 (16:41 +0000)]
powerpc/mpc8548cds: Fix network initialization

Add board_eth_init(). PCIe network card is also supported.
Put RGMII init after tsec_eth_init().
Skip initializing eTSEC3 and eTSEC4 with Carrier boards prior to ver 1.3.

Signed-off-by: Ebony Zhu
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
12 years agopowerpc/mpc8548: Add workaround for erratum NMG_eTSEC129
chenhui zhao [Mon, 3 Oct 2011 13:38:50 +0000 (08:38 -0500)]
powerpc/mpc8548: Add workaround for erratum NMG_eTSEC129

Erratum NMG_eTSEC129 (eTSEC86 in MPC8548 document) applies to some early
verion silicons. This workaround detects if the eTSEC Rx logic is properly
initialized, and reinitialize the eTSEC Rx logic.

Signed-off-by: Gong Chen <g.chen@freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/QorIQ: fix network frame manager TBI PHY address settings
Roy Zang [Fri, 28 Oct 2011 05:15:36 +0000 (13:15 +0800)]
powerpc/QorIQ: fix network frame manager TBI PHY address settings

TBI PHY address (TBIPA) register has been set in general frame manager
phy init funciton dtsec_init_phy() in drivers/net/fm/eth.c

So remove the duplicate code on QorIQ frame manager Ethernet related
platforms, which include Hydra board, P4080DS board and P2041rdb board.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agodm646x: pass board revision info to kernel
Manjunath Hadli [Tue, 8 Nov 2011 13:59:57 +0000 (08:59 -0500)]
dm646x: pass board revision info to kernel

add a function in board file to pass board revision
info to kernel. Revision number 0 and 1 are passed in
case of DM6467 and DM6467T respectively.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodm646x: add new configuration for dm6467T
Manjunath Hadli [Tue, 8 Nov 2011 13:59:54 +0000 (08:59 -0500)]
dm646x: add new configuration for dm6467T

add new configuration file for dm6467T and appropraite changes
in boards.cfg. dm6467T is the new varaiant of dm6467 SOC which
supports 33 MHz reference clock where as dm6467 supports 27 MHz
reference clock.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: Fix setting of the SDRAM configuration register
Christian Riesch [Tue, 8 Nov 2011 13:55:13 +0000 (08:55 -0500)]
arm, davinci: Fix setting of the SDRAM configuration register

da850_ddr_setup() expects the BOOTUNLOCK bit to be set in
If BOOTUNLOCK is not set in this define, several configuration
bits will not be writeable and the code will not work.

Since the BOOTUNLOCK and TIMUNLOCK bits are not configuration options
but access control bits, this patch changes the code to work
irrespective of the value of these bits in CONFIG_SYS_DA850_DDR2_SDBCR.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: Remove the duplication of LPSC functions
Christian Riesch [Tue, 8 Nov 2011 13:55:10 +0000 (08:55 -0500)]
arm, davinci: Remove the duplication of LPSC functions

The LPSC functions defined in
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
are replaced by those already defined in
arch/arm/cpu/arm926ejs/davinci/psc.c.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: Rename AM1808 lowlevel functions to DA850
Christian Riesch [Tue, 8 Nov 2011 13:55:07 +0000 (08:55 -0500)]
arm, davinci: Rename AM1808 lowlevel functions to DA850

Rename arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c and
arch/arm/include/asm/arch-davinci/am1808_lowlevel.h to da850_lowlevel.c
and da850_lowlevel.h since they apply not only to the AM1808 SoC
but to all DA850 chips. The function names and #defines are changed
likewise.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoda8xxevm: fix build error
Prabhakar Lad [Tue, 8 Nov 2011 13:55:03 +0000 (08:55 -0500)]
da8xxevm: fix build error

This patch fixes following compile error for da8xx evm

da830evm.c: In function 'board_init':
da830evm.c:222: error: 'DAVINCI_SYSCFG_SUSPSRC_UART2' undeclared (first use in this function)
da830evm.c:222: error: (Each undeclared identifier is reported only once
da830evm.c:222: error: for each function it appears in.)
make[2]: *** [da830evm.o] Error 1

similarly for da850evm.

introduced through commit:
f9fc237f1f07d4e5ff7c9c2da39cabc8d3d7b339

Signed-off-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>