oweals/u-boot.git
12 years agomx5: Correct a warning in clock.c
Simon Glass [Sat, 5 Nov 2011 04:25:22 +0000 (04:25 +0000)]
mx5: Correct a warning in clock.c

This corects the warning below, obtained with my gcc 4.6 compiler.

arch/arm/cpu/armv7/mx5/libmx5.o: In function `decode_pll':
arch/arm/cpu/armv7/mx5/clock.c:94: undefined reference to `__aeabi_uldivmod'

I am not able to test this on MX5x hardware, but it does improve the
MAKEALL output for me. You may already have a similar patch, but I cannot
see it on the list.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoMC13892: Add REGMODE0 bits definitions
Marek Vasut [Wed, 28 Sep 2011 02:07:26 +0000 (02:07 +0000)]
MC13892: Add REGMODE0 bits definitions

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agomx51evk: Configure the pins as GPIOs prior to using gpio_get_value
Fabio Estevam [Tue, 15 Nov 2011 05:51:33 +0000 (05:51 +0000)]
mx51evk: Configure the pins as GPIOs prior to using gpio_get_value

Configure the pins as GPIO prior to using gpio_get_value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53smd: Configure the pins as GPIOs prior to using gpio_get_value
Fabio Estevam [Tue, 15 Nov 2011 05:51:32 +0000 (05:51 +0000)]
mx53smd: Configure the pins as GPIOs prior to using gpio_get_value

Configure the pins as GPIO prior to using gpio_get_value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53evk: Configure the pins as GPIOs prior to using gpio_get_value
Fabio Estevam [Tue, 15 Nov 2011 05:51:31 +0000 (05:51 +0000)]
mx53evk: Configure the pins as GPIOs prior to using gpio_get_value

Configure the pins as GPIO prior to using gpio_get_value.

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agomx53ard: Configure the pins as GPIOs prior to using gpio_get_value
Fabio Estevam [Tue, 15 Nov 2011 05:51:30 +0000 (05:51 +0000)]
mx53ard: Configure the pins as GPIOs prior to using gpio_get_value

Configure the pins as GPIO prior to using gpio_get_value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53loco: Configure the pins as GPIOs prior to using gpio_get_value
Fabio Estevam [Tue, 15 Nov 2011 05:51:29 +0000 (05:51 +0000)]
mx53loco: Configure the pins as GPIOs prior to using gpio_get_value

Configure the pins as GPIO prior to using gpio_get_value.

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agoOMAP3: Add SPL_BOARD_INIT hook
Tom Rini [Wed, 23 Nov 2011 05:13:06 +0000 (05:13 +0000)]
OMAP3: Add SPL_BOARD_INIT hook

Add an SPL_BOARD_INIT hook and for OMAP3 have it turn on i2c.  OMAP4
doesn't need i2c enabled in SPL.  Enable SPL_BOARD_INIT on devkit8000.

Cc: Frederik Kriewitz <frederik@kriewitz.eu>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoAM3517 CraneBoard: Add SPL support
Tom Rini [Fri, 18 Nov 2011 12:48:11 +0000 (12:48 +0000)]
AM3517 CraneBoard: Add SPL support

The only change of note is that we move from 0x80008000 to 0x80100000
for CONFIG_SYS_TEXT_BASE

Cc: Nagendra T S <nagendra@mistralsolutions.com>
Tested-by: Koen Kooi <k-kooi@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoAM3517: Add SPL support
Tom Rini [Fri, 18 Nov 2011 12:48:10 +0000 (12:48 +0000)]
AM3517: Add SPL support

The only change of note is that we move from 0x80008000 to 0x80100000
for CONFIG_SYS_TEXT_BASE

Cc: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Add SPL support to omap3_evm
Tom Rini [Fri, 18 Nov 2011 12:48:09 +0000 (12:48 +0000)]
OMAP3: Add SPL support to omap3_evm

Add Hynix 200MHz timing information to <asm/arch-omap3/mem.h>.
This also changes CONFIG_SYS_TEXT_BASE to 0x80100000.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Add SPL support to Beagleboard
Tom Rini [Fri, 18 Nov 2011 12:48:08 +0000 (12:48 +0000)]
OMAP3: Add SPL support to Beagleboard

This introduces 200MHz Micron parts timing information based on x-loader
to <asm/arch-omap3/mem.h> and Numonyx MCFG calculation.  The memory init
logic is also based on what x-loader does in these cases.  Note that
while previously u-boot would be flashed in with SW ECC in this case it
now must be flashed with HW ECC.  We also change CONFIG_SYS_TEXT_BASE to
0x80100000.

Cc: Dirk Behme <dirk.behme@gmail.com>
Beagleboard rev C5, xM rev A:
Tested-by: Tom Rini <trini@ti.com>
Beagleboard xM rev C:
Tested-by: Matt Ranostay <mranostay@gmail.com>
Beagleboard rev B7, C2, xM rev B:
Tested-by: Matt Porter <mporter@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3 SPL: Add identify_nand_chip function
Tom Rini [Fri, 18 Nov 2011 12:48:07 +0000 (12:48 +0000)]
OMAP3 SPL: Add identify_nand_chip function

A number of boards are populated with a PoP chip for both DDR and NAND
memory.  Other boards may simply use this as an easy way to identify
board revs.  So we provide a function that can be called early to reset
the NAND chip and return the result of NAND_CMD_READID.  All of this
code is put into spl_id_nand.c and controlled via CONFIG_SPL_OMAP3_ID_NAND.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3 SPL: Rework memory initalization and devkit8000 support
Tom Rini [Fri, 18 Nov 2011 12:48:06 +0000 (12:48 +0000)]
OMAP3 SPL: Rework memory initalization and devkit8000 support

This changes to making the board be responsible for providing the
memory initialization timings in SPL and converts the devkit8000
to this framework.  In SPL we try and initialize both CS0 and CS1.

Cc: Frederik Kriewitz <frederik@kriewitz.eu>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Suffix all Micron memory timing parts with their speed
Tom Rini [Fri, 18 Nov 2011 12:48:05 +0000 (12:48 +0000)]
OMAP3: Suffix all Micron memory timing parts with their speed

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Add optimal SDRC autorefresh control values
Tom Rini [Fri, 18 Nov 2011 12:48:04 +0000 (12:48 +0000)]
OMAP3: Add optimal SDRC autorefresh control values

This adds the optimal SDRC autorefresh control register values for
100Mhz, 133MHz, 165MHz and 200MHz clocks.  We switch to using this
to provide the default 165MHz value.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoomap3: mem: Add MCFG helper macro
Tom Rini [Fri, 18 Nov 2011 12:48:03 +0000 (12:48 +0000)]
omap3: mem: Add MCFG helper macro

This adds an MCFG macro to calculate the correct value, similar to
the ACTIMA/ACTIMB macros and adds a comment that all of the potential
values here are documented in the TRM.  Then we convert the Micron
value to use this macro.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Remove get_mem_type prototype
Tom Rini [Fri, 18 Nov 2011 12:48:02 +0000 (12:48 +0000)]
OMAP3: Remove get_mem_type prototype

This function doesn't exist for omap3

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Change mem_ok to clear again after reading back
Tom Rini [Fri, 18 Nov 2011 12:48:01 +0000 (12:48 +0000)]
OMAP3: Change mem_ok to clear again after reading back

It's possible to need to call this function on the same banks multiple
times so we want to be sure that 'pos A' is cleared out again at the
end.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Add a helper function to set timings in SDRC
Tom Rini [Fri, 18 Nov 2011 12:48:00 +0000 (12:48 +0000)]
OMAP3: Add a helper function to set timings in SDRC

Since we go through the sequence to setup the SDRC timings more than
once, break this logic out into its own function and have that function
call mem_ok() to make sure the memory is usable.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP3: Update SDRC dram_init to always call make_cs1_contiguous()
Tom Rini [Fri, 18 Nov 2011 12:47:59 +0000 (12:47 +0000)]
OMAP3: Update SDRC dram_init to always call make_cs1_contiguous()

We update the comment in make_cs1_contiguous() to be a little bit
more clear (it's been copy/pasted from other silicons) and then
explain in dram_init() why we need to always try this.

Note that in the previous behavior we were always calling this on
boards that never had cs1 populated anyhow so making sure we do
this always is fine and will correct things like omap3evm detecting
an invalid amount of memory (384MB).

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoomap3: mem: Comment enable_gpmc_cs_config more
Tom Rini [Fri, 18 Nov 2011 12:47:58 +0000 (12:47 +0000)]
omap3: mem: Comment enable_gpmc_cs_config more

Expand the "enable the config" comment to explain what the bit shifts
are and define out two of the magic numbers.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoARM: davici_emac: Fix condition for number of phy detects
Prabhakar Lad [Thu, 17 Nov 2011 02:53:23 +0000 (02:53 +0000)]
ARM: davici_emac: Fix condition for number of phy detects

Fix the condition for number of phys in
davinci_eth_phy_detect() function.
CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT indicates number of
phys. From this commit id dc02badab480563b0bf9d3908046ea9d6b22ae63
davinci emac initilazed one less than the number of phy count.

Signed-off-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm: printf() is not available in some SPL configurations
Christian Riesch [Tue, 29 Nov 2011 00:11:03 +0000 (00:11 +0000)]
arm: printf() is not available in some SPL configurations

This patch avoids build breakage for SPLs that do not support printf.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
12 years agoarm, davinci: add support for am1808 based enbw_cmc board
Heiko Schocher [Tue, 29 Nov 2011 02:33:47 +0000 (02:33 +0000)]
arm, davinci: add support for am1808 based enbw_cmc board

- booting from NOR Flash with direct boot method
- POST support
- LOGBUF support

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Christian Riesch <christian.riesch@omicron.at>
12 years agoarm, davinci: move misc function in arch tree
Heiko Schocher [Tue, 29 Nov 2011 02:33:46 +0000 (02:33 +0000)]
arm, davinci: move misc function in arch tree

move the board/davinci/common/misc.c file to
arch/arm/cpu/arm926ejs/davinci/misc.c, so all
davinci boards can use this functions.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Christian Riesch <christian.riesch@omicron.at>
12 years agoarm, board/davinci/common/misc.c: Codingstyle cleanup
Heiko Schocher [Tue, 29 Nov 2011 02:33:45 +0000 (02:33 +0000)]
arm, board/davinci/common/misc.c: Codingstyle cleanup

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Christian Riesch <christian.riesch@omicron.at>
12 years agoarm, davinci, da850: add uart1 tx rx pinmux config
Heiko Schocher [Tue, 29 Nov 2011 02:33:44 +0000 (02:33 +0000)]
arm, davinci, da850: add uart1 tx rx pinmux config

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Tom Rini <trini@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Christian Riesch <christian.riesch@omicron.at>
12 years agoarm, davinci: move davinci_rtc struct to hardware.h
Heiko Schocher [Tue, 29 Nov 2011 02:33:43 +0000 (02:33 +0000)]
arm, davinci: move davinci_rtc struct to hardware.h

move struct davinci_rtc to arch/arm/include/asm/arch-davinci/hardware.h
and add RTC_KICK0R_WE, RTC_KICK1R_WE defines,
so they are global useable.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: Remove duplication of pinmux configuration code
Christian Riesch [Mon, 28 Nov 2011 23:46:20 +0000 (23:46 +0000)]
arm, davinci: Remove duplication of pinmux configuration code

This patch replaces the pinmux configuration code in
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c by the code from
arch/arm/cpu/arm926ejs/davinci/pinmux.c.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, hawkboard: Use the pinmux configurations defined in the arch tree
Christian Riesch [Mon, 28 Nov 2011 23:46:19 +0000 (23:46 +0000)]
arm, hawkboard: Use the pinmux configurations defined in the arch tree

The boards in board/davinci/da8xxevm/ define pinmux_config[] vectors
that contain pinmux configurations for emac, uarts, memory controllers...
In an earlier patch such pinmux configurations were added to the arch
tree. This patch makes the hawkboard use these definitions instead of
defining its own.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Syed Mohammed Khasim <sm.khasim@gmail.com>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, da850evm: Use the pinmux configurations defined in the arch tree
Christian Riesch [Mon, 28 Nov 2011 23:46:18 +0000 (23:46 +0000)]
arm, da850evm: Use the pinmux configurations defined in the arch tree

The boards in board/davinci/da8xxevm/ define pinmux_config[] vectors
that contain pinmux configurations for emac, uarts, memory controllers...
In an earlier patch such pinmux configurations were added to the arch
tree. This patch makes the da850evm use these definitions instead of
defining its own.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, da850: Add pinmux configurations to the arch tree
Christian Riesch [Mon, 28 Nov 2011 23:46:17 +0000 (23:46 +0000)]
arm, da850: Add pinmux configurations to the arch tree

Up to now nearly every davinci board has separate code for the
definition of pinmux configurations. This patch adds pinmux
configurations for the DA850 SoCs to the arch tree which may later
be used for all DA850 based boards.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, da850evm: Do pinmux configuration for EMAC together with other pinmuxes
Christian Riesch [Mon, 28 Nov 2011 23:46:16 +0000 (23:46 +0000)]
arm, da850evm: Do pinmux configuration for EMAC together with other pinmuxes

Pinmux configuration for the EMAC was done in a separate call
of davinci_configure_pin_mux(). This patch moves all the pinmux
configuration that is done for this board to a common place.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, hawkboard: Remove obsolete struct pinmux_config i2c_pins
Christian Riesch [Mon, 28 Nov 2011 23:46:15 +0000 (23:46 +0000)]
arm, hawkboard: Remove obsolete struct pinmux_config i2c_pins

The configuration in struct pinmux_config i2c_pins does not configure
the pins for i2c but for uart. Since this function is already
configured by struct pinmux_config uart2_pins the i2c_pins struct
is obsolete.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Syed Mohammed Khasim <sm.khasim@gmail.com>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
12 years agoarm, davinci: Move pinmux functions from board to arch tree
Christian Riesch [Mon, 28 Nov 2011 23:46:14 +0000 (23:46 +0000)]
arm, davinci: Move pinmux functions from board to arch tree

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Syed Mohammed Khasim <sm.khasim@gmail.com>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Nick Thompson <nick.thompson@ge.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Nick Thompson <nick.thompson@ge.com>
12 years agoarm, arm926ejs: always do cpu critical inits
Heiko Schocher [Wed, 9 Nov 2011 20:06:23 +0000 (20:06 +0000)]
arm, arm926ejs: always do cpu critical inits

always do the cpu critical inits in cpu_init_crit,
and only jump to lowlevel_init, if CONFIG_SKIP_LOWLEVEL_INIT
is not defined.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Wolfgang Denk <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Christian Riesch <christian.riesch@omicron.at>
12 years agoomap_gpmc: use SOFTECC in SPL if it's enabled
Ilya Yanok [Mon, 28 Nov 2011 06:37:38 +0000 (06:37 +0000)]
omap_gpmc: use SOFTECC in SPL if it's enabled

Use software ECC for the SPL build if support for software ECC in SPL is
enabled.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Acked-by: Scott Wood <scottwood@freescale.com>
12 years agonand_spl_simple: add support for software ECC
Ilya Yanok [Mon, 28 Nov 2011 06:37:37 +0000 (06:37 +0000)]
nand_spl_simple: add support for software ECC

This patch adds support for software ECC to the nand_spl_simple driver.
To enable this one have to define CONFIG_SPL_NAND_SOFTECC.

Tested on OMAP3.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Acked-by: Scott Wood <scottwood@freescale.com>
12 years agoAM3517: move AM3517 specific mux defines to generic header
Ilya Yanok [Mon, 28 Nov 2011 06:37:36 +0000 (06:37 +0000)]
AM3517: move AM3517 specific mux defines to generic header

AM3517 specific CONTROL_PADCONF_* defines moved from board-specific
files to <asm/arch-omap3/mux.h>

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agoAM35xx: add EMAC support
Ilya Yanok [Mon, 28 Nov 2011 06:37:35 +0000 (06:37 +0000)]
AM35xx: add EMAC support

AM35xx has DaVinci-compatible EMAC.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agodavinci_emac: hardcode 100Mbps for AM35xx and RMII
Ilya Yanok [Mon, 28 Nov 2011 06:37:34 +0000 (06:37 +0000)]
davinci_emac: hardcode 100Mbps for AM35xx and RMII

For some reason code setting the speed based on the PHY feedback causes
troubles on AM3517 so hardcode 100Mbps for now.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agodavinci_emac: fix for running with dcache enabled
Ilya Yanok [Mon, 28 Nov 2011 06:37:33 +0000 (06:37 +0000)]
davinci_emac: fix for running with dcache enabled

DaVinci EMAC is present on TI AM35xx SoCs (ARMv7) which run with D-Cache
enabled by default. So we have to take care and flush/invalidate the
cache before/after the DMA operations.

Please note that the receive buffer alignment to 32 byte boundary comes
from the old driver version I don't know if it is really needed or
alignment to cache line size is enough.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agoarm926ejs: add noop implementation for dcache ops
Ilya Yanok [Mon, 28 Nov 2011 06:37:32 +0000 (06:37 +0000)]
arm926ejs: add noop implementation for dcache ops

Added noop implementation for dcache operations that will buzz
about missing real implementation and disable the dcache.
This fixes compilation of DaVinci EMAC driver on arm926ejs.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agodavinci_emac: conditionally compile specific PHY support
Ilya Yanok [Mon, 28 Nov 2011 06:37:31 +0000 (06:37 +0000)]
davinci_emac: conditionally compile specific PHY support

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agodavinci_emac: use internal addresses in buffer descriptors
Ilya Yanok [Mon, 28 Nov 2011 06:37:30 +0000 (06:37 +0000)]
davinci_emac: use internal addresses in buffer descriptors

On AM35xx CPPI RAM had different addresses when accessed from the CPU
and from the EMAC. We need to account this to deal with the buffer
descriptors correctly.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agodavinci_emac: move arch-independent defines to separate header
Ilya Yanok [Mon, 28 Nov 2011 06:37:29 +0000 (06:37 +0000)]
davinci_emac: move arch-independent defines to separate header

DaVinci EMAC is found not only on DaVinci SoCs but on some OMAP3 SoCs
also. This patch moves common defines from arch-davinci/emac_defs.h to
drivers/net/davinci_emac.h

DaVinci specific PHY drivers hacked to include the new header. We might
want to switch to phylib in future.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
12 years agoBeagleBoard: config: Really switch to ttyO2
Koen Kooi [Sun, 27 Nov 2011 03:51:06 +0000 (03:51 +0000)]
BeagleBoard: config: Really switch to ttyO2

The previous commit changed it to "zero two" instead of the proper "Oh two". This was completely broken!

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Tom Rini <trini@ti.com>
12 years agoARM: davinci_dm6467Tevm: Fix build breakage
Anatolij Gustschin [Sun, 27 Nov 2011 10:16:07 +0000 (10:16 +0000)]
ARM: davinci_dm6467Tevm: Fix build breakage

Fix:

arch/arm/cpu/arm926ejs/davinci/libdavinci.o: In function `timer_init':
/work/agust/git/u-boot/arch/arm/cpu/arm926ejs/davinci/timer.c:62:
 undefined reference to `davinci_arm_clk_get'

drivers/i2c/libi2c.o: In function `i2c_init':
/work/agust/git/u-boot/drivers/i2c/davinci_i2c.c:102:
 undefined reference to `davinci_arm_clk_get'

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM: OMAP: Remove STACKSIZE for IRQ and FIQ if unused
Thomas Weber [Sat, 26 Nov 2011 10:30:57 +0000 (10:30 +0000)]
ARM: OMAP: Remove STACKSIZE for IRQ and FIQ if unused

This patch removes the definition of stack sizes for
irq and fiq if the CONFIG_USE_IRQ is undefined before.

Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Thomas Weber <weber@corscience.de>
Acked-by: Luca Ceresoli <luca.ceresoli@comelit.it>
12 years agoARM: OMAP3: Remove unused define SDRC_R_C_B
Thomas Weber [Sat, 26 Nov 2011 10:30:56 +0000 (10:30 +0000)]
ARM: OMAP3: Remove unused define SDRC_R_C_B

This patch removes the unused definition of SDRC_R_C_B
from the config files.

Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Thomas Weber <weber@corscience.de>
Acked-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Acked-by: Tom Rini <trini@ti.com>
12 years agoARM: OMAP3: Remove unused define CONFIG_OMAP3430
Thomas Weber [Sat, 26 Nov 2011 10:30:55 +0000 (10:30 +0000)]
ARM: OMAP3: Remove unused define CONFIG_OMAP3430

This patch removes the CONFIG_OMAP3430, because it is unused.

Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Thomas Weber <weber@corscience.de>
Acked-by: Luca Ceresoli <luca.ceresoli@comelit.it>
12 years agoomap4: fix IO setting
Aneesh V [Mon, 21 Nov 2011 23:39:05 +0000 (23:39 +0000)]
omap4: fix IO setting

The value from TRIM is not working for some 4430 silicons.
So, override with hw team recommended value. However, for
4460 TRIM value shall be used as long as the part is trimmed

This fixes boot problem on some OMAP4430 ES2.0 Panda boards
out there.

Cc: Steve Sakoman <sakoman@gmail.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap4+: streamline CONFIG_SYS_TEXT_BASE and other SDRAM addresses
Aneesh V [Mon, 21 Nov 2011 23:39:04 +0000 (23:39 +0000)]
omap4+: streamline CONFIG_SYS_TEXT_BASE and other SDRAM addresses

Change the CONFIG_SYS_TEXT_BASE and the addresses of SDRAM
buffers used by SPL(heap and BSS) keeping in mind the
following requirements:

1. Make sure that SPL's heap and BSS doesn't come in the way
of Linux kernel, which is typically loaded at 0x80008000. This
will be important when SPL directly loads kernel.

2. Align the CONFIG_SYS_TEXT_BASE between TI internal
U-Boot and mainline U-Boot. This avoids a lot of confusion
and allows for the inter-operability of x-loader, SPL,
internal U-Boot, mainline U-Boot etc. The internal U-Boot's
address can not be changed to that of mainline U-Boot
as internal U-Boot doesn't have relocation and 0x80100000
used by mainline U-Boot will clash with kernel

3. Assume only a minimum amount of memory that may be available
on any practical OMAP4/5 board in future too. We are assuming
a minimum of 128 MB of memory

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap4460: add ES1.1 identification
Aneesh V [Mon, 21 Nov 2011 23:39:03 +0000 (23:39 +0000)]
omap4460: add ES1.1 identification

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap4: emif: fix error in driver
Aneesh V [Mon, 21 Nov 2011 23:39:02 +0000 (23:39 +0000)]
omap4: emif: fix error in driver

There was a typo in the EMIF driver. It went un-noticed
because it affected only when automatic detection is enabled
and even then half the memory was configured and identified
properly.

Reported-by: Rockefeller <rockefeller.lin@innocomm.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap: remove I2C from SPL
Aneesh V [Mon, 21 Nov 2011 23:39:01 +0000 (23:39 +0000)]
omap: remove I2C from SPL

Due to some recent changes I2C is no longer required in SPL.
Remove the i2c_init() call to save some space

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap4460: fix TPS initialization
Aneesh V [Mon, 21 Nov 2011 23:39:00 +0000 (23:39 +0000)]
omap4460: fix TPS initialization

TPS power IC is controlled using a GPIO (gpio_wk7).
This GPIO should be maintained at logic 1 always. As
such an internal pull-up on this pin will do the job,
driving the GPIO outuput is not needed. This will avoid
the need of using GPIO library in SPL and also may
save some power.

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap: fix cache line size for omap3/omap4 boards
Aneesh V [Mon, 21 Nov 2011 23:38:59 +0000 (23:38 +0000)]
omap: fix cache line size for omap3/omap4 boards

Acked-by: Tom Rini <trini@ti.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoomap4: ttyO2 instead of ttyS2 in default bootargs
Aneesh V [Mon, 21 Nov 2011 23:38:58 +0000 (23:38 +0000)]
omap4: ttyO2 instead of ttyS2 in default bootargs

Set console=ttyO2 instead of ttyS2 in default bootargs
according to latest kernel config

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoomap: Improve PLL parameter calculation tool
Aneesh V [Mon, 21 Nov 2011 23:38:57 +0000 (23:38 +0000)]
omap: Improve PLL parameter calculation tool

Improve the tool that finds multiplier and divider for PLLs:
The previous algorithm could get stuck on local maxima
and required the user to specify the tolerance. Improve
the algorithm to go through the entire search space and find
the optimal solution.

Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agostart.S: remove omap3 specific code from start.S
Aneesh V [Mon, 21 Nov 2011 23:34:01 +0000 (23:34 +0000)]
start.S: remove omap3 specific code from start.S

Cc: Tom Rini <trini@ti.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Aneesh V <aneesh@ti.com>
Acked-by: Tom Rini <trini@ti.com>
12 years agoarmv7: setup vector
Aneesh V [Mon, 21 Nov 2011 23:34:00 +0000 (23:34 +0000)]
armv7: setup vector

The vector is not correctly setup in armv7 except for OMAP3.
Correcting this.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoarmv7: include armv7/cpu.c in SPL build
Aneesh V [Mon, 21 Nov 2011 23:33:59 +0000 (23:33 +0000)]
armv7: include armv7/cpu.c in SPL build

This allows SPL to have default implementation of
save_boot_params(), useful for SoCs that do
not intend to override this default implementation

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoarmv7: disable L2 cache in cleanup_before_linux()
Aneesh V [Mon, 21 Nov 2011 23:33:58 +0000 (23:33 +0000)]
armv7: disable L2 cache in cleanup_before_linux()

We were not disabling external caches before jumping
to kernel. We were flushing all caches including
external caches and disabling caches globally in
CP15 System Control register. Apparently this is not
enough.

The bootstrap loader in Linux kernel that does decompression
enables data-caches again, flush them after use and disable
them before jumping to kernel proper. However, it's not aware
of the external caches.

Since we have left external cache enabled, external cache will
get used once caches are enabled globally, but it's not flushed
because decompressor is not aware of external caches. When it
jumps to kernel with caches disabled globally, we have stale
data in the external cache and a coherency problem.

This was breaking the boot for OMAP4 with latest mainline
kernel. The solution is to disable external caches in
cleanup_before_linux(). With this fix kernel is booting again.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Aneesh V <aneesh@ti.com>
12 years agoarm, arm926ejs: Fix clear bss loop for zero length bss
Christian Riesch [Wed, 30 Nov 2011 22:27:37 +0000 (22:27 +0000)]
arm, arm926ejs: Fix clear bss loop for zero length bss

This patch fixes the clear bss loop for bss sections that have
zero length, i.e., where __bss_start == __bss_end__.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoPXA: Move colibri_pxa270 to board/toradex/
Marek Vasut [Sat, 26 Nov 2011 10:29:36 +0000 (11:29 +0100)]
PXA: Move colibri_pxa270 to board/toradex/

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Flip colibri_pxa27x to pxa-common.h
Marek Vasut [Sat, 26 Nov 2011 10:27:50 +0000 (11:27 +0100)]
PXA: Flip colibri_pxa27x to pxa-common.h

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Introduce common configuration header for PXA
Marek Vasut [Sat, 26 Nov 2011 10:27:30 +0000 (11:27 +0100)]
PXA: Introduce common configuration header for PXA

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Rename pxa_dram_init to pxa2xx_dram_init
Marek Vasut [Sat, 26 Nov 2011 10:18:57 +0000 (11:18 +0100)]
PXA: Rename pxa_dram_init to pxa2xx_dram_init

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Squash extern pxa_dram_init()
Marek Vasut [Sat, 26 Nov 2011 10:17:32 +0000 (11:17 +0100)]
PXA: Squash extern pxa_dram_init()

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Export cpu_is_ and pxa_dram_init functions
Marek Vasut [Sat, 26 Nov 2011 10:17:09 +0000 (11:17 +0100)]
PXA: Export cpu_is_ and pxa_dram_init functions

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Cleanup Colibri PXA270
Marek Vasut [Sat, 26 Nov 2011 06:15:36 +0000 (07:15 +0100)]
PXA: Cleanup Colibri PXA270

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Replace timer driver
Marek Vasut [Sat, 26 Nov 2011 09:02:41 +0000 (10:02 +0100)]
PXA: Replace timer driver

This new timer driver shall conform to new Timer API.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Add cpuinfo display for PXA2xx
Marek Vasut [Sat, 26 Nov 2011 07:11:32 +0000 (08:11 +0100)]
PXA: Add cpuinfo display for PXA2xx

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Separate PXA2xx CPU init
Marek Vasut [Sat, 26 Nov 2011 06:32:24 +0000 (07:32 +0100)]
PXA: Separate PXA2xx CPU init

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X
Marek Vasut [Sat, 26 Nov 2011 06:20:07 +0000 (07:20 +0100)]
PXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Unify vpac270 environment size
Marek Vasut [Sun, 13 Nov 2011 00:40:46 +0000 (01:40 +0100)]
PXA: Unify vpac270 environment size

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoPXA: Enable command line editing for vpac270
Marek Vasut [Sat, 12 Nov 2011 02:35:50 +0000 (03:35 +0100)]
PXA: Enable command line editing for vpac270

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Adapt Voipac PXA270 to OneNAND SPL
Marek Vasut [Mon, 31 Oct 2011 13:17:21 +0000 (14:17 +0100)]
PXA: Adapt Voipac PXA270 to OneNAND SPL

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
V2: Add missing u-boot-spl.lds, convert bitshifts to division,
    convert to spl_onenand_load_image()

12 years agoPXA: Drop Voipac PXA270 OneNAND IPL
Marek Vasut [Mon, 31 Oct 2011 12:11:48 +0000 (13:11 +0100)]
PXA: Drop Voipac PXA270 OneNAND IPL

This OneNAND IPL will be replaced by OneNAND SPL.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 years agoPXA: Fixup PXA25x boards after start.S update
Marek Vasut [Sat, 26 Nov 2011 11:04:11 +0000 (12:04 +0100)]
PXA: Fixup PXA25x boards after start.S update

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoPXA: Re-add the Dcache locking as RAM for pxa250
Marek Vasut [Sat, 5 Nov 2011 18:26:47 +0000 (19:26 +0100)]
PXA: Re-add the Dcache locking as RAM for pxa250

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 years agoPXA: Rework start.S to be closer to other ARMs
Marek Vasut [Mon, 31 Oct 2011 13:12:39 +0000 (14:12 +0100)]
PXA: Rework start.S to be closer to other ARMs

The start.S on PXA was very obscure. This reworks it back to be close to arm1136
start.S and others.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
V2: Don't compile in relocation support if building SPL

12 years agoPXA: Drop XM250 board
Marek Vasut [Mon, 21 Nov 2011 22:40:23 +0000 (23:40 +0100)]
PXA: Drop XM250 board

The board is unmaintained and maintainer doesn't respond.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
12 years agoPXA: Drop PLEB2 board
Marek Vasut [Mon, 21 Nov 2011 22:31:25 +0000 (23:31 +0100)]
PXA: Drop PLEB2 board

The board is unmaintained and maintainer doesn't respond.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
12 years agoPXA: Drop CRADLE board
Marek Vasut [Mon, 21 Nov 2011 22:32:36 +0000 (23:32 +0100)]
PXA: Drop CRADLE board

The board is unmaintained and maintainer doesn't respond.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
12 years agoPXA: Drop CERF250 board
Marek Vasut [Sun, 20 Nov 2011 04:18:28 +0000 (05:18 +0100)]
PXA: Drop CERF250 board

The board is unmaintained and maintainer doesn't respond.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
12 years agoFix regression in SMDK6400
Simon Schwarz [Mon, 31 Oct 2011 06:34:45 +0000 (06:34 +0000)]
Fix regression in SMDK6400

s3c64xx.c implemented its own nand_read_byte, nand_write_buf and
nand_read_buf functions. This provoked a regression when these functions
were made public by patch 55f429bb39614a16b1bacc9a8bea9ac01a60bfc8.

This deletes these duplicated functions from s3c64xx.c and adds the generic
implementations in nand_base.c to the spl Makefile. It also adds
-ffcuntion-sections and -gc-sections to the compilation flags of the SPL to
avoid errors originating from unused functions in nand_base.c.

Description of the regression:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/108873

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Cc: scottwood@freescale.com
Cc: s-paulraj@ti.com
Cc: albert.u.boot@aribaud.net
12 years agonand: Add common functions to linux/mtd/nand.h
Simon Schwarz [Mon, 31 Oct 2011 06:34:44 +0000 (06:34 +0000)]
nand: Add common functions to linux/mtd/nand.h

Functions often used in SPL are now part of linux/mtd/nand.h.
Static modifiers are removed from these functions in
drivers/mtd/nand/nand_base.c.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Cc: scottwood@freescale.com
Cc: s-paulraj@ti.com
Cc: albert.u.boot@aribaud.net
Acked-by: Scott Wood <scottwood@freescale.com>
12 years agoEthernut 5 board support
Tim Schendekehl [Tue, 1 Nov 2011 23:55:01 +0000 (23:55 +0000)]
Ethernut 5 board support

Add support for the Ethernut 5 open hardware design, based
on Atmel's AT91SAM9XE512 SoC.

V4
 - Fix several coding style issues.
 - Move machine type to config file.
 - Remove use of CONFIG_ATMEL_LEGACY.

Signed-off-by: Tim Schendekehl <tim.schendekehl@egnite.de>
12 years agonet: Armada100: Fix compilation warnings
Ajay Bhargav [Mon, 31 Oct 2011 01:19:37 +0000 (01:19 +0000)]
net: Armada100: Fix compilation warnings

This patch fix compilation warnings for Armada100 FEC driver

Ref:
warning: dereferencing type-punned pointer will break
strict-aliasing rules

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
12 years agoARM: remove duplicated code for LaCie boards
Simon Guinot [Mon, 21 Nov 2011 13:55:47 +0000 (19:25 +0530)]
ARM: remove duplicated code for LaCie boards

This patch groups together all the common functions for LaCie boards:
Ethernet PHY and MAC address initializations.

Moreover the configurations for LaCie Kirkwood boards are merged into
a single file: include/configs/lacie_kw.h

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agoARM: add support for LaCie 2Big Network v2
Simon Guinot [Mon, 21 Nov 2011 13:55:46 +0000 (19:25 +0530)]
ARM: add support for LaCie 2Big Network v2

This patch adds support for the LaCie 2Big Network v2 board, based on
the Marvell Kirkwood 6281 SoC.

Additional information is available at:
http://lacie-nas.org/doku.php?id=2big_network_v2

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agomvsata: fix ide_preinit for missing disks
Simon Guinot [Mon, 21 Nov 2011 13:55:46 +0000 (19:25 +0530)]
mvsata: fix ide_preinit for missing disks

Consider that ide_preinit() succeed if at least one port is successfully
initialized. This allows to iniatialize IDE support on a board with two
SATA ports but a single hard disk available.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agonetspace_v2: Read Ethernet MAC address from EEPROM
Simon Guinot [Tue, 8 Nov 2011 11:31:14 +0000 (11:31 +0000)]
netspace_v2: Read Ethernet MAC address from EEPROM

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agoomap3evm: Add support for EFI partitions
Sanjeev Premi [Wed, 16 Nov 2011 15:20:50 +0000 (10:20 -0500)]
omap3evm: Add support for EFI partitions

Defines CONFIG_EFI_PARTITION for OMAP3 EVM.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agopart_efi: Fix compile errors
Sanjeev Premi [Wed, 16 Nov 2011 15:20:47 +0000 (10:20 -0500)]
part_efi: Fix compile errors

Fix errors noticed after enabling CONFIG_EFI_PARTITION
for the OMAP3 EVM board:

part_efi.c: In function 'print_part_efi':
part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
 from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'get_partition_info_efi':
part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
' from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'alloc_read_gpt_entries':
part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclare
d (first use in this function)

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Anton staaf <robotboy@chromium.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agonet: Make sure IPaddr_t is 32 bits in size
Matthias Weisser [Sat, 3 Dec 2011 03:29:44 +0000 (03:29 +0000)]
net: Make sure IPaddr_t is 32 bits in size

When building u-boot as 64 bit application (e.g. sandbox) ulong might be
64 bits in size. This breaks network code as IPaddr_t is 64 bytes in
size then and an IPv4 address is 32 bits in size. This patch makes sure
that IPaddr_t is always 32 bits in size. Also some warnings introduced
by this patch are fixed.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoMAKEALL: Add -l option to only list build targets
Marek Vasut [Fri, 2 Dec 2011 21:32:03 +0000 (21:32 +0000)]
MAKEALL: Add -l option to only list build targets

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>