]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
12 years agozynq: nand: Remove drivers/mtd/nand/zynq_nand.h
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:59 +0000 (19:34 +0530)] 
zynq: nand: Remove drivers/mtd/nand/zynq_nand.h

Moved the needed macros onto zynq_nand.c and removed the zynq_nand.h,
as there is no other user using zynq_nand.h.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Fix code cleanups
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:58 +0000 (19:34 +0530)] 
zynq: nand: Fix code cleanups

- Fixed few comment cleanups
- Add tabs
- Removed trailing spaces

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Code cleanups on zynq_nand.c
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:57 +0000 (19:34 +0530)] 
zynq: nand: Code cleanups on zynq_nand.c

- Removed EIO, ENXIO and ENOMEM
- Removed __devinitdata, __force
- Add few print() routines

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Use standard readl/writel io routines
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:56 +0000 (19:34 +0530)] 
zynq: nand: Use standard readl/writel io routines

Use the standard io routines writel and readl instead
of Xil_Out32 and Xil_In32 respectively.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Do not setup ram start and size in board specific file
Michal Simek [Tue, 5 Mar 2013 12:59:05 +0000 (13:59 +0100)] 
zynq: Do not setup ram start and size in board specific file

It is setup in dram_init_banksize() in board.c
Also do not call get_ram_size to determine ram size.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomicroblaze: Remove custom fsl command
Michal Simek [Mon, 4 Mar 2013 17:41:33 +0000 (18:41 +0100)] 
microblaze: Remove custom fsl command

This command was used for microblaze fsl but it has never been
used and properly tested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Define CONFIG_ENV_IS_NOWHERE
Jason Wu [Fri, 1 Mar 2013 02:18:49 +0000 (12:18 +1000)] 
zynq_common: Define CONFIG_ENV_IS_NOWHERE

CONFIG_ENV_IS_NOWHERE needs to be defined when CONFIG_SYS_NO_FLASH is
set. Otherwise compilation error will occur when try to compile a
system without a flash.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agozynq: sdhci: Enable MMC host High Capacity support
Jagannadha Sutradharudu Teki [Thu, 21 Feb 2013 15:47:56 +0000 (21:17 +0530)] 
zynq: sdhci: Enable MMC host High Capacity support

This patch enables MMC high capacity support to host, to inform
the card that the host is capable to handle the high capacity cards.

This is needs for the cards(mmc/emmc) which has > 2GB capacity.

Bug log(for > 2GB cards without enabling MMC_MODE_HC):
zynq-uboot> mmcinfo
[snip]
[snip]
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
Card did not respond to voltage select!
Device: zynq_sdhci
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 1-bit

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Ensure that commands won't be run partially
Michal Simek [Mon, 28 Jan 2013 11:34:19 +0000 (12:34 +0100)] 
zynq_common: Ensure that commands won't be run partially

Ensure that if one command fails when others won't be
executed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "mtd: spi_flash: Warn user with 3 byte addressing limitations"
Jagannadha Sutradharudu Teki [Mon, 11 Feb 2013 11:08:47 +0000 (16:38 +0530)] 
Revert "mtd: spi_flash: Warn user with 3 byte addressing limitations"

This reverts commit eef1451bb3cb039f62b018a5daf9cdbc4ef56f22.

Now the current implementation in spi_flash.c is able to access the
flash from greater than 16MiB in 3-byte addressing.

This should be the part of this patch:
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Do not use SZ_16M for Microblaze
Michal Simek [Wed, 6 Feb 2013 06:57:46 +0000 (07:57 +0100)] 
sf: Do not use SZ_16M for Microblaze

Microblaze doesn't define asm/sizes.h that's why SZ_16M
can't be used. Use direct value instead.

This should be the part of this patch.
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Removed Xilinx Boot ROM header support
Jagannadha Sutradharudu Teki [Wed, 30 Jan 2013 07:18:40 +0000 (12:48 +0530)] 
zynq: Removed Xilinx Boot ROM header support

Xilinx Boot ROM header support in u-boot is used on ep107
boards for testing XIP images.

This support is removed, as current u-boot is not
supporting ep107 boards and the current zynq boards are
not using/testing XIP as of now.

Removed.
- CONFIG_ZYNQ_XILINX_FLASH_HEADER references
- xromhdr.pl

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q256A
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:38 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q256A

Add support for Numonyx N25Q256A SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q32A
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:37 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q32A

Add support for Numonyx N25Q32A SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q32
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:36 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q32

Add support for Numonyx N25Q32 SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Enable VFAT support
Michal Simek [Mon, 28 Jan 2013 09:49:38 +0000 (10:49 +0100)] 
zynq_common: Enable VFAT support

Just for sure enable VFAT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: sdhci: Add a delay quirk during completion of sdhci_send_cmd
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:17:25 +0000 (18:17 +0100)] 
zynq: sdhci: Add a delay quirk during completion of sdhci_send_cmd

This patch provides to added delay quirk between the every sdhci_send_cmd()
execution.

Without this delay, MMC initialization on zynq board fails with
following error messages.

Controller never released inhibit bit(s).

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Removed CONFIG_SYS_MMC_MAX_BLK_COUNT
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:04:12 +0000 (22:34 +0530)] 
zynq: Removed CONFIG_SYS_MMC_MAX_BLK_COUNT

Removed CONFIG_SYS_MMC_MAX_BLK_COUNT, which is for single block reads

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: mmc: Support the sdhci instead of zynq_mmc
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:16:36 +0000 (18:16 +0100)] 
zynq: mmc: Support the sdhci instead of zynq_mmc

This patch provides a support to use the generic sdhci interface
for zynq soc, hence removed the the existing zynq_mmc.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agofpga: zynq: Fix devcfg driver
Michal Simek [Mon, 28 Jan 2013 07:43:48 +0000 (08:43 +0100)] 
fpga: zynq: Fix devcfg driver

- Move slcr functionality to slcr driver
- Use register maps
- Fix coding style

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agonet: axi_emac: Remove compilation warnings
Michal Simek [Fri, 25 Jan 2013 13:46:35 +0000 (14:46 +0100)] 
net: axi_emac: Remove compilation warnings

Remove compilation warnings:
xilinx_axi_emac.c: In function 'setup_phy':
xilinx_axi_emac.c:274:26: warning: unused variable 'ret' [-Wunused-variable]
xilinx_axi_emac.c:274:6: warning: unused variable 'i' [-Wunused-variable]
xilinx_axi_emac.c:273:6: warning: unused variable 'phyreg' [-Wunused-variable]
xilinx_axi_emac.c: In function 'axi_dma_init':
xilinx_axi_emac.c:484:7: warning: suggest parentheses around operand of
 '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
xilinx_axi_emac.c: In function 'axiemac_send':
xilinx_axi_emac.c:593:4: warning: suggest parentheses around operand of
 '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoarm: Do not change memory node setting to the kernel
Michal Simek [Wed, 23 Jan 2013 07:55:16 +0000 (08:55 +0100)] 
arm: Do not change memory node setting to the kernel

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomtd: cfi_flash: Revert Xilinx specific hack
Nathan Rossi [Wed, 7 Nov 2012 07:10:52 +0000 (17:10 +1000)] 
mtd: cfi_flash: Revert Xilinx specific hack

Revert the hack to force the write buffer size to 256 bits. The
hack breaks any flash devices that have a write buffer that is not
256bits (e.g. JS28F256P30T95, on the ML507).

Signed-off-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
---
Reverting this patch it is causing the problem on zc770-xm012
flash timeout issue

12 years agowatchdog: Rewrite microblaze watchdog implementation
Michal Simek [Fri, 25 Jan 2013 13:41:04 +0000 (14:41 +0100)] 
watchdog: Rewrite microblaze watchdog implementation

- Move watchdog to drivers/watchdog
- Update documentation
- Change watchdog initialization (here is small problem
  because watchdog uses IRQ that's why must be initialized
  after intc initialization - which can be problematic
  in cases where problem happen between start and watchdog init)
- Rewrite to u-boot coding style
- Disable watchdog in reset function

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: gem: Add support for setup slcr gem clk speed
Michal Simek [Fri, 25 Jan 2013 11:16:39 +0000 (12:16 +0100)] 
zynq: gem: Add support for setup slcr gem clk speed

Fix problem with not setup proper clock for gem1.
This is generic approach for clk setup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: gem: Simplify return path in zynq_gem_recv
Michal Simek [Fri, 25 Jan 2013 07:24:18 +0000 (08:24 +0100)] 
zynq: gem: Simplify return path in zynq_gem_recv

Remove one return from the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code cleanup on qspips driver
Jagannadha Sutradharudu Teki [Tue, 22 Jan 2013 14:12:47 +0000 (19:42 +0530)] 
spi: zynq: Code cleanup on qspips driver

This patch cleans up zynq_qspi.c:
- removed the code under spin_lock_irqsave, spin_unlock_irqrestore
- removed the code under spin_lock, spin_unlock
- removed XIo_In32 and XIo_Out32, add __raw_readl and__raw_writel instead
- remove spaces
- add tabs
- comments cleanup
- removed few unnecessary variables

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code cleanup on qspi driver
Jagannadha Sutradharudu Teki [Thu, 24 Jan 2013 12:44:47 +0000 (13:44 +0100)] 
spi: zynq: Code cleanup on qspi driver

Cleanups on.
- Renamed PSS with PS
- Renamed zynq_qspi with zynq_qspips

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code style cleanup
Jagannadha Sutradharudu Teki [Sat, 19 Jan 2013 14:44:51 +0000 (20:14 +0530)] 
spi: zynq: Code style cleanup

This patch cleans up zynq_qspi.c:
- removed the code under the macro LINUX_ONLY_NOT_UBOOT
- remove spaces.
- remove DEBUG macros and add debug func
- add tabs

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: spi: Removed zynq_qspi_wrap.c file
Jagannadha Sutradharudu Teki [Thu, 24 Jan 2013 12:32:49 +0000 (13:32 +0100)] 
zynq: spi: Removed zynq_qspi_wrap.c file

Moved the code from zynq_qspi_wrap.c to zynq_qspi.c and
removed the zynq_qspi_wrap.c file to make single driver
for zynq qspi ps.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoxilinx: Change file permission for several files
Michal Simek [Thu, 24 Jan 2013 12:35:28 +0000 (13:35 +0100)] 
xilinx: Change file permission for several files

Use 644 permissions instead of 755.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "net: old_gem: Add old gem driver back to the repository"
Michal Simek [Thu, 24 Jan 2013 10:59:39 +0000 (11:59 +0100)] 
Revert "net: old_gem: Add old gem driver back to the repository"

This reverts commit 9c2796ece27a77a564e6f6a17d2f5e0cab036a78.

Use mainline gem driver all the time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "net: old_gem: Wire up configuration for old gem driver"
Michal Simek [Thu, 24 Jan 2013 11:01:28 +0000 (12:01 +0100)] 
Revert "net: old_gem: Wire up configuration for old gem driver"

This reverts commit df6e39a23578fa57434c2f501a05c79da643420b.

Mainline zynq gem driver is fixed that's why no problem
to enable it and remove old one.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agonet: gem: Do not initialize BDs again
Michal Simek [Thu, 24 Jan 2013 12:04:12 +0000 (13:04 +0100)] 
net: gem: Do not initialize BDs again

BDs can be correctly setup just once and init function
performs only phy autodetection and enabling RX/TX.
RX/TX are disabled in halt function.

This patch solves the problem with repeatable tftp transfers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoarm: zynq: Move lowlevel initialization from asm to C
Michal Simek [Thu, 24 Jan 2013 09:57:58 +0000 (10:57 +0100)] 
arm: zynq: Move lowlevel initialization from asm to C

- Remove several RTL configuration
- Skip unneeded DDR initialization
- Remove lowlevel_init.S

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoarm: zynq: Add SLCR support with system reset
Michal Simek [Wed, 23 Jan 2013 14:17:00 +0000 (19:47 +0530)] 
arm: zynq: Add SLCR support with system reset

The patch provides slcr base address initialization support
and a support to reset the cpu through slcr driver,
hence removed the reset_cpu() from board.c.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomicroblaze: Remove FSL support from generic board
Michal Simek [Wed, 23 Jan 2013 13:18:25 +0000 (14:18 +0100)] 
microblaze: Remove FSL support from generic board

This code was targetting one specific Microblaze platform
configuration which is obsolete and fsl bus isn't used
in this way.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: stmicro: Add support for N25Q64A
Jagannadha Sutradharudu Teki [Wed, 23 Jan 2013 12:51:45 +0000 (18:21 +0530)] 
sf: stmicro: Add support for N25Q64A

Add support for Numonyx N25Q64A SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: stmicro: Add support for N25Q64
Jagannadha Sutradharudu Teki [Wed, 23 Jan 2013 12:51:44 +0000 (18:21 +0530)] 
sf: stmicro: Add support for N25Q64

Add support for Numonyx N25Q064 SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agocommon: cmd_bdinfo: Fix compilation warning for microblaze
Michal Simek [Wed, 23 Jan 2013 13:15:35 +0000 (14:15 +0100)] 
common: cmd_bdinfo: Fix compilation warning for microblaze

Fix one printf compilation warning in microblaze bdinfo part.

Warning log:
cmd_bdinfo.c: In function 'do_bdinfo':
cmd_bdinfo.c:219:2: warning: format '%u' expects argument of type
'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agocommon: cmd_bdinfo: Fix bdinfo to show all MACs for Microblaze and ARM
Michal Simek [Wed, 23 Jan 2013 11:02:32 +0000 (12:02 +0100)] 
common: cmd_bdinfo: Fix bdinfo to show all MACs for Microblaze and ARM

- Show all ethernet MACs in the system.
- Show current ethernet device

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agofs: romfs: Remove it
Michal Simek [Wed, 23 Jan 2013 10:16:06 +0000 (11:16 +0100)] 
fs: romfs: Remove it

The romfs support has never been merged to mainline
and using microblaze MMU caused that this support is
started to be obsolete and unused.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "ubi: Only read the actual size of the VID header"
Michal Simek [Wed, 23 Jan 2013 12:06:34 +0000 (13:06 +0100)] 
Revert "ubi: Only read the actual size of the VID header"

This reverts commit befc4f3ee911ffb5c9160bf9861887ce2fa1c411.

We are not using UBI. Sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "ubifs: Allow ubifsmount volume reference by number"
Michal Simek [Wed, 23 Jan 2013 10:32:54 +0000 (11:32 +0100)] 
Revert "ubifs: Allow ubifsmount volume reference by number"

This reverts commit 6e7cf45d9c9473ef52b36527ddd1538f5eda3c1e.

We are not using ubi support that's why let's revert this
patch and be in sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "ppc: Add Xilinx Virtex-5 FXT pvr value"
Michal Simek [Wed, 23 Jan 2013 10:05:22 +0000 (11:05 +0100)] 
Revert "ppc: Add Xilinx Virtex-5 FXT pvr value"

This reverts commit d66798cba7ff45647704ba827f23e61a4940d942.

Values are completely unused because there are missing
strings shown in cpu.c file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "microblaze: Fix in/out_be8/16/32 functions"
Michal Simek [Wed, 23 Jan 2013 09:07:59 +0000 (10:07 +0100)] 
Revert "microblaze: Fix in/out_be8/16/32 functions"

This reverts commit dcefe33658dfb8628cdba7a3c45df5016f3b0be3.

Just too keep this in sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoserial: arm_dcc: Fix compilation warning and remove unneeded initialization
Michal Simek [Wed, 23 Jan 2013 09:35:20 +0000 (10:35 +0100)] 
serial: arm_dcc: Fix compilation warning and remove unneeded initialization

- arm_dcc_dev is already initialized.
- Remove unused rc variable
Warning log:
arm_dcc.c: In function 'drv_arm_dcc_init':
arm_dcc.c:145:6: warning: unused variable 'rc' [-Wunused-variable]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoxilinx: Fix ppc405 platform
Michal Simek [Wed, 23 Jan 2013 14:24:16 +0000 (15:24 +0100)] 
xilinx: Fix ppc405 platform

Just fix compilation issue to even ensure that we can compile it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoboard: xilinx: Fix ppc405 and ppc440 platforms
Michal Simek [Wed, 23 Jan 2013 14:08:36 +0000 (15:08 +0100)] 
board: xilinx: Fix ppc405 and ppc440 platforms

Use directly __stringify function which also resolve
compilation warnings.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agovfat: Fix mkcksum argument sizes
Marek Vasut [Fri, 11 Jan 2013 13:35:48 +0000 (14:35 +0100)] 
vfat: Fix mkcksum argument sizes

In case a function argument is known/fixed size array in C, the argument is
still decoyed as pointer instead ( T f(U n[k]) ~= T fn(U *n) ) and therefore
calling sizeof on the function argument will result in the size of the pointer,
not the size of the array.

The VFAT code contains such a bug, this patch fixes it.

Reported-by: Aaron Williams <Aaron.Williams@cavium.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Aaron Williams <Aaron.Williams@cavium.com>
12 years agoMerge commit 'v2013.01' into master-next
Michal Simek [Wed, 23 Jan 2013 08:13:33 +0000 (09:13 +0100)] 
Merge commit 'v2013.01' into master-next

12 years agosf: Add bank address access support
Jagannadha Sutradharudu Teki [Sat, 5 Jan 2013 13:42:12 +0000 (19:12 +0530)] 
sf: Add bank address access support

This patch provides support to access bank addressing
in 3-byte address mode.

The current implementation in spi_flash supports 3-byte address mode
due to this up to 16MB amount of flash is able to access for those
flashes which has an actual size of > 16MB.

bank address register contains an information to access the
4th byte address so-that the flashes which has > 16MB can be accessible.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Add bank address register reading support
Jagannadha Sutradharudu Teki [Sat, 5 Jan 2013 13:44:36 +0000 (19:14 +0530)] 
sf: Add bank address register reading support

This patch provides support to read a flash bank address register.

reading bank address register will give whether the flash is operated
on bank addressing or normal addressing(3-byte address mode).

Currently added bank address register reading support for
spansion flashes.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Add bank address register writing support
Jagannadha Sutradharudu Teki [Tue, 1 Jan 2013 14:08:07 +0000 (19:38 +0530)] 
sf: Add bank address register writing support

This patch provides support to program a flash bank address
register.

bank address register contains an information to access the
4th byte addressing.

Currently added bank address register writing support for
spansion flashes.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Add bank register read and write commands
Jagannadha Sutradharudu Teki [Sat, 5 Jan 2013 13:28:39 +0000 (18:58 +0530)] 
spi: zynq: Add bank register read and write commands

This patch adds qspi bank register read and write commands
support for spansion flash.

These commands are useful while accessing greater than 16MB flash
with the help of bank address register if the actual size of flash
is > 16MB.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Updated fill_tx_fifo to transmit all sizes of instructions
Jagannadha Sutradharudu Teki [Mon, 21 Jan 2013 15:35:03 +0000 (21:05 +0530)] 
spi: zynq: Updated fill_tx_fifo to transmit all sizes of instructions

fill_tx_fifo is unable to transmit the command instructions those
are in 1, 2 and 3-byte sizes.

This patch is updated the fill_tx_fifo, so-that it can transmit all
sizes of instructions based on the bytes_to_transfer from spi_xfer.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: 'bootcmd' is modified to use $modeboot
Jagannadha Sutradharudu Teki [Fri, 18 Jan 2013 13:05:04 +0000 (18:35 +0530)] 
zynq: 'bootcmd' is modified to use $modeboot

This patch change the 'bootcmd' to use $modeboot.
Now it is,
zynq-uboot> printenv bootcmd
bootcmd=run $modeboot

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoxilinx: Remove ep107 board support
Jagannadha Sutradharudu Teki [Fri, 4 Jan 2013 15:35:14 +0000 (21:05 +0530)] 
xilinx: Remove ep107 board support

This patch removes ep107 board references from u-boot tree
as it is a legacy board and currently not tested u-boot on
these boards.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoPrepare v2013.01 v2013.01
Tom Rini [Tue, 15 Jan 2013 21:47:42 +0000 (14:47 -0700)] 
Prepare v2013.01

Signed-off-by: Tom Rini <trini@ti.com>
12 years agopxa: Save lr register in relocate_code function
Łukasz Dałek [Sat, 12 Jan 2013 11:39:27 +0000 (11:39 +0000)] 
pxa: Save lr register in relocate_code function

When u-boot is compiled for PXA25x processor, pxa/start.S is calling
cpu_init_crit by BL instruction. BL is overwriting lr register so
relocate_code is going into infinite loop. This patch preservs lr
register in r12 before calling cpu_init_crit and after function returns
restores it.

Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Tom Rini [Mon, 14 Jan 2013 22:41:38 +0000 (15:41 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-video

12 years agoMerge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
Tom Rini [Mon, 14 Jan 2013 22:30:31 +0000 (15:30 -0700)] 
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging

12 years agotwl4030: fix 'could could' in error messages
Peter Meerwald [Mon, 19 Nov 2012 23:13:04 +0000 (23:13 +0000)] 
twl4030: fix 'could could' in error messages

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
12 years agowatchdog.h: Move hw_watchdog_init prototype to end, guard
Tom Rini [Mon, 14 Jan 2013 20:10:07 +0000 (13:10 -0700)] 
watchdog.h: Move hw_watchdog_init prototype to end, guard

In commit abbab70 we added a prototype for hw_watchdog_init, in a
Freescale i.MX watchdog driver.  We did not however guard it with an
__ASSEMBLY__ check and broke some platforms.  Move this to the end of
the file with other prototypes and guard it.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoVIDEO: better document the correct use of CONFIG_FB_ADDR
Wolfgang Denk [Thu, 3 Jan 2013 00:43:59 +0000 (00:43 +0000)] 
VIDEO: better document the correct use of CONFIG_FB_ADDR

Signed-off-by: Wolfgang Denk <wd@denx.de>
cc: Anatolij Gustschin <agust@denx.de>

12 years agolcd: restore ability to display 8 bpp BMPs on 16 bpp LCDs
Nikita Kiryanov [Thu, 20 Dec 2012 00:52:34 +0000 (00:52 +0000)] 
lcd: restore ability to display 8 bpp BMPs on 16 bpp LCDs

Commit fb6a9aab7ae78c (LCD: display 32bpp decompressed bitmap image)
broke the check that allowed U-Boot to display 8 bpp BMPs on a 16
bpp LCD screen, effectively turning this feature off.

Restore this feature by changing the check back to the same meaning
it originally had.
To avoid future confusion, the check has also been rephrased to make
its meaning clear.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
12 years agoMerge branch 'u-boot-imx/master' into 'u-boot-arm/master'
Albert ARIBAUD [Mon, 14 Jan 2013 16:00:02 +0000 (17:00 +0100)] 
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'

12 years agoMerge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Albert ARIBAUD [Mon, 14 Jan 2013 14:21:00 +0000 (15:21 +0100)] 
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'

12 years agovideo: exynos_fb: Make a call to draw_logo only when CONFIG_CMD_BMP is selected
Ajay Kumar [Sun, 13 Jan 2013 23:32:16 +0000 (23:32 +0000)] 
video: exynos_fb: Make a call to draw_logo only when CONFIG_CMD_BMP is selected

Previously, the call to draw_logo() was happening irrespective
of whether we have selected logo or LCD console.
With this patch we call draw_logo() only when CONFIG_CMD_BMP is selected.

This would even fix the following compilation warning:
exynos_fb.c: In function 'draw_logo':
exynos_fb.c:74:8: warning: variable 'addr' set but not used
[-Wunused-but-set-variable]
exynos_fb.c:73:9: warning: variable 'y' set but not used
[-Wunused-but-set-variable]
exynos_fb.c:73:6: warning: variable 'x' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agovideo: exynos_dp: Remove unused variable disp_info
Ajay Kumar [Sun, 13 Jan 2013 23:32:15 +0000 (23:32 +0000)] 
video: exynos_dp: Remove unused variable disp_info

Remove unused variable disp_info to fix the following compilation warning:
exynos_dp.c: In function 'exynos_init_dp':
exynos_dp.c:860:23: warning: variable 'disp_info' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoI2C: S3C24X0: Resolve build error for VCMA9
Rajeshwari Shinde [Sun, 13 Jan 2013 19:49:36 +0000 (19:49 +0000)] 
I2C: S3C24X0: Resolve build error for VCMA9

This patch resolves the following build errors for I2C driver in
VCMA9:

In file included from s3c24x0_i2c.c:40:0:
s3c24x0_i2c.h:38:17: error: field 'id' has incomplete type
s3c24x0_i2c.c:70:39: error: 'CONFIG_MAX_I2C_NUM' undeclared here (not
in a function) s3c24x0_i2c.c:70:31: warning: 'i2c_bus' defined but
not used [-Wunused-variable] s3c24x0_i2c.c:72:12: warning:
'i2c_busses' defined but not used [-Wunused-variable]

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agomx51evk: Add DVI output support
Fabio Estevam [Wed, 9 Jan 2013 04:55:09 +0000 (04:55 +0000)] 
mx51evk: Add DVI output support

Add DVI output support and make it the default video output.

Currently the CLAA WVGA panel is supported, but this panel has to be purchased
separately, so using the DVI output as the default would allow more people to
try the splash screen feature on a mx51evk.

If someone still wants to use the CLAA WVGA, just set the panel variable as:
set panel claa

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx6qsabresd: Fix booting the kernel from SDHC3
Fabio Estevam [Thu, 10 Jan 2013 09:00:53 +0000 (09:00 +0000)] 
mx6qsabresd: Fix booting the kernel from SDHC3

Since commit de7d02aeb (mx6qsabresd: add usdhc2 and usdhc4 support)
SDHC3 device node is no longer 0, which breaks loading a uImage from SDHC3.

Fix it by adapting the default environment to use CONFIG_SYS_MMC_ENV_DEV as the
correct mmc node for loading the kernel from.

While at it, go back to using SDHC3 as the default mmc, since we have Yocto
images that generate an SD card containing U-boot,kernel and rootfs, so it is
more convenient to keep using SDHC3 as it was originally.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx6qsabre{auto, sd}: Add support to dynamically choose between fdt use or not
Otavio Salvador [Thu, 10 Jan 2013 09:45:09 +0000 (09:45 +0000)] 
mx6qsabre{auto, sd}: Add support to dynamically choose between fdt use or not

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx6qsabrelite: Add support to dynamically choose between fdt use or not
Otavio Salvador [Thu, 10 Jan 2013 09:45:08 +0000 (09:45 +0000)] 
mx6qsabrelite: Add support to dynamically choose between fdt use or not

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agomx53loco: Add support to dynamically choose between fdt use or not
Otavio Salvador [Thu, 10 Jan 2013 09:45:07 +0000 (09:45 +0000)] 
mx53loco: Add support to dynamically choose between fdt use or not

The CONFIG_SYS_CBSIZE has been change to 512 to avoid runtime errors as:

,---[ Runtime error ]
| Hit any key to stop autoboot:  0
| MX53LOCO U-Boot > pri netboot
| netboot=echo Booting from net ...; run netargs; if test ...
| prefetch abort
| pc : [<20747368>]          lr : [<20747365>]
| sp : af566e20  ip : 00000000     fp : 00000000
| r10: 00000002  r9 : af6dfc28     r8 : af566f58
| r7 : af6dfc10  r6 : 00000001     r5 : 00000002  r4 : 74206669
| r3 : 00000000  r2 : 00000060     r1 : 00000020  r0 : 0000018e
| Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
| Resetting CPU ...
|
| resetting ...
`---

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agomx28evk: Add support to dynamically choose between fdt use or not
Otavio Salvador [Thu, 10 Jan 2013 09:45:06 +0000 (09:45 +0000)] 
mx28evk: Add support to dynamically choose between fdt use or not

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agomx28evk: We shouldn't hardcode a rootfs filesystem type
Otavio Salvador [Thu, 10 Jan 2013 09:45:05 +0000 (09:45 +0000)] 
mx28evk: We shouldn't hardcode a rootfs filesystem type

For a generic environment, we shouldn't have a fixed rootfs filesystem
so we drop it from env.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agomx6qsabrelite: Use tabs to environment setting
Otavio Salvador [Thu, 10 Jan 2013 09:45:04 +0000 (09:45 +0000)] 
mx6qsabrelite: Use tabs to environment setting

This rework the environment to use tabs for environment setting as
done in other boards.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agomx31/mx35/mx51/mx53/mx6: add watchdog
Troy Kisky [Mon, 22 Oct 2012 15:19:01 +0000 (15:19 +0000)] 
mx31/mx35/mx51/mx53/mx6: add watchdog

Use a common watchdog driver for all these cpus.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoarm: at91sam9x5: add dataflash boot support
Bo Shen [Thu, 6 Dec 2012 21:37:04 +0000 (21:37 +0000)] 
arm: at91sam9x5: add dataflash boot support

Add dataflash boot support on at91sam9x5ek board

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
12 years agom68k/lib: fix serial driver relocation
angelo [Fri, 23 Nov 2012 12:23:39 +0000 (12:23 +0000)] 
m68k/lib: fix serial driver relocation

Fix coldfire serial driver bindings no more relocated to ram after last
changes to drivers/serial/serial.c (regression).
Serial initialization in ram has to be called after that gd->reloc_off is
calculated.

Signed-off-by: Angelo Dureghello <sysamfw@gmail.com>
Cc: Jason Jin <jason.jin@freescale.com>
Acked-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Tested-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Fri, 11 Jan 2013 21:38:24 +0000 (14:38 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

12 years agoMerge branch 'u-boot-ti/master' into 'u-boot-arm/master'
Albert ARIBAUD [Fri, 11 Jan 2013 17:17:33 +0000 (18:17 +0100)] 
Merge branch 'u-boot-ti/master' into 'u-boot-arm/master'

12 years agoEXYNOS5: Enable console multiplexing in u-boot
Ajay Kumar [Thu, 10 Jan 2013 21:06:11 +0000 (21:06 +0000)] 
EXYNOS5: Enable console multiplexing in u-boot

We enable console multiplexing and use both serial and LCD for stdout/stderr.
Initially, u-boot output console is observed via serial port.
If you also have a DP panel connected onto your SMDK5250 board,
you can switch to LCD console by typing "setenv stdout lcd".
You can always switch back to serial using "setenv stdout serial".
You can switch error console(stderr) as well, using similar commands.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoEXYNOS5: Make all display related code dependent on CONFIG_LCD
Ajay Kumar [Thu, 10 Jan 2013 21:06:10 +0000 (21:06 +0000)] 
EXYNOS5: Make all display related code dependent on CONFIG_LCD

u-boot compilation fails for smdk5250 when we deselect CONFIG_LCD
from the main config file.

Following error was observed:
drivers/video/libvideo.o: In function `exynos_lcd_init':
/home/ajay/u-boot-samsung/drivers/video/exynos_fb.c:68: undefined reference to `lcd_set_flush_dcache'

This is because exynos video drivers have dependency on CONFIG_LCD.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoExynos: clock: add CLK_DIV_FSYS3 at set_mmc_clk
Jaehoon Chung [Thu, 27 Dec 2012 22:30:33 +0000 (22:30 +0000)] 
Exynos: clock: add CLK_DIV_FSYS3 at set_mmc_clk

Mobile storage is used the CLK_DIV_FSYS3 value.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoExynos: clock: support get_mmc_clk for exynos
Jaehoon Chung [Thu, 27 Dec 2012 22:30:32 +0000 (22:30 +0000)] 
Exynos: clock: support get_mmc_clk for exynos

To get exactly clock value for mmc, support the get_mmc_clk() like
set_mmc_clk().

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoOMAP3: igep00x0: add CONFIG_SYS_NS16550_BROKEN_TEMT
Javier Martinez Canillas [Mon, 7 Jan 2013 01:35:21 +0000 (01:35 +0000)] 
OMAP3: igep00x0: add CONFIG_SYS_NS16550_BROKEN_TEMT

IGEP board PC16550D (ns16550) UART doesn't set the
Transmitter Empty (TEMT) Bit in SPL. This makes
U-Boot to hang while waiting for TEMT. Add the
CONFIG_SYS_NS16550_BROKEN_TEMT config option to
avoid this issue.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
12 years agoserial/ns16550: add an option to avoid hanging on broken platforms
Javier Martinez Canillas [Mon, 7 Jan 2013 01:35:20 +0000 (01:35 +0000)] 
serial/ns16550: add an option to avoid hanging on broken platforms

Some platforms (e.g. IGEPv2 board) has a broken ns16550 UART that
does not set the TEMT bit when the transmitter is empty in SPL.
This makes U-Boot to hang while waiting for TEMT to be set.

Add a new option to avoid this:

CONFIG_SYS_NS16550_BROKEN_TEMT

16550 UART set the Transmitter Empty (TEMT) Bit when all output
has finished and the transmitter is totally empty. U-Boot waits
for this bit to be set to initialize the serial console. On some
broken platforms this bit is not set in SPL making U-Boot to
hang while waiting for TEMT. Define this option to avoid it.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
12 years agoMakefile: remove MLO.byteswap on clobber
Nishanth Menon [Wed, 2 Jan 2013 07:59:24 +0000 (07:59 +0000)] 
Makefile: remove MLO.byteswap on clobber

On clobber, do a cleanup even for SPL build else, we'd have
MLO.byteswap remaining for certain platforms like am33xx SPL builds

Signed-off-by: Nishanth Menon <nm@ti.com>
12 years agoOMAP3: igep00x0: add CONFIG_SPL_BOARD_INIT for CONFIG_SPL_NAND_SUPPORT
Javier Martinez Canillas [Fri, 28 Dec 2012 02:51:53 +0000 (02:51 +0000)] 
OMAP3: igep00x0: add CONFIG_SPL_BOARD_INIT for CONFIG_SPL_NAND_SUPPORT

When booting an IGEPv2 board from NAND with SPL, U-Boot hangs
trying to read the OMAP General Purpose Memory Controller (GPMC).

The reason is that the GPMC initialization function is called
inside spl_board_init() and this function is only executed when
CONFIG_SPL_BOARD_INIT is defined.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
12 years agoPrepare v2013.01-rc3 v2013.01-rc3
Tom Rini [Thu, 10 Jan 2013 21:44:40 +0000 (14:44 -0700)] 
Prepare v2013.01-rc3

Signed-off-by: Tom Rini <trini@ti.com>
12 years agobootm: relocate names of sub-command table for archs with CONFIG_NEEDS_MANUAL_RELOC
Daniel Schwierzeck [Mon, 7 Jan 2013 06:54:52 +0000 (06:54 +0000)] 
bootm: relocate names of sub-command table for archs with CONFIG_NEEDS_MANUAL_RELOC

To make bootm sub-command feature working on archs with CONFIG_NEEDS_MANUAL_RELOC,
the name pointers in the sub-command table need to be relocated.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
12 years agoarm: Tabify code for MMC initialization
Taylor Hutt [Fri, 30 Nov 2012 13:01:23 +0000 (13:01 +0000)] 
arm: Tabify code for MMC initialization

The two modified lines were indented with spaces.
They are now indented with tabs.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoarm: Move bootstage record for board_init_f() to after arch_cpu_init()
Simon Glass [Fri, 30 Nov 2012 13:01:22 +0000 (13:01 +0000)] 
arm: Move bootstage record for board_init_f() to after arch_cpu_init()

The timer may be inited in arch_cpu_init() so it is not safe to make a
bootstage mark before this is called. Arrange the code to fix this.

Note: The question was raised as to why we don't keep all archs in sync.
PowerPC doesn't have specific bootstage markers at present (although it
does use boot progress). I hope that the generic board series will solve
this problem in general, but in the meantime this is a real problem, and
only in ARM.

We now get a correct time for board_init_f:

Timer summary in microseconds:
       Mark    Elapsed  Stage
          0          0  reset
    100,000    100,000  spl_start
    848,530    748,530  board_init_f
    907,301     58,771  board_init_r
    910,478      3,177  board_init

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoarm: Make interrupts.o and reset.o in libarm also appear in SPL
Tom Wai-Hong Tam [Fri, 30 Nov 2012 13:01:21 +0000 (13:01 +0000)] 
arm: Make interrupts.o and reset.o in libarm also appear in SPL

SPL u-boot may call do_reset() which depends on interrupts.o and reset.o.
So make them also appear in SPL.

Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoAdd option to display customised memory information
Simon Glass [Fri, 30 Nov 2012 13:01:20 +0000 (13:01 +0000)] 
Add option to display customised memory information

Some boards want to report more than just memory size. For example, it
might be useful to display the memory type (DDR2, DDR3) or manufacturer.

Add a weak function to support this requirement, accessed through a new
'meminfo' command.

Any example of the DRAM: output is below, just for illustration:

SMDK5250 # meminfo
DRAM:  2 GiB Elpida DDR3 @ 800MHz

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoarm: Add CONFIG_DISPLAY_BOARDINFO_LATE to display board info on LCD
Simon Glass [Fri, 30 Nov 2012 13:01:19 +0000 (13:01 +0000)] 
arm: Add CONFIG_DISPLAY_BOARDINFO_LATE to display board info on LCD

This option displays board info after stdio is running, so that it will
appear on the LCD. If it is displayed earlier, the board info will appear
on the serial console but not on the LCD.

Here follows a blow-by-blow description.

1a. Without CONFIG_DISPLAY_BOARDINFO_LATE, on serial:

U-Boot 2011.12-02550-g037e1c5-dirty (Nov 15 2012 - 14:29:42) for SMDK5250

CPU:   S5PC520 @ 1700MHz

Board: Google Snow, rev 0
I2C:   ready
DRAM:  2 GiB Elpida DDR3 @ 800MHz
MMC:   S5P MSHC0: 0, S5P MSHC1: 1
SF: Detected W25Q32 with page size 4 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    mkbp-keyb
Out:   lcd
Err:   lcd
Net:   No ethernet found.
Hit any key to stop autoboot:  0
SMDK5250 #

1b. Without CONFIG_DISPLAY_BOARDINFO_LATE, on LCD (note machine info
is missing):

In:    mkbp-keyb
Out:   lcd
Err:   lcd
Net:   No ethernet found.
Hit any key to stop autoboot:  0
SMDK5250 #

2a. With CONFIG_DISPLAY_BOARDINFO_LATE, on serial:

U-Boot 2011.12-02550-g037e1c5 (Nov 15 2012 - 14:27:40) for SMDK5250

CPU:   S5PC520 @ 1700MHz
I2C:   ready
DRAM:  2 GiB Elpida DDR3 @ 800MHz
MMC:   S5P MSHC0: 0, S5P MSHC1: 1
SF: Detected W25Q32 with page size 4 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

Model: Google Snow
In:    mkbp-keyb
Out:   lcd
Err:   lcd
Net:   No ethernet found.
Hit any key to stop autoboot:  0
SMDK5250 #

2b. With CONFIG_DISPLAY_BOARDINFO_LATE, on LCD (note machine info is present):

Model: Google Snow
In:    mkbp-keyb
Out:   lcd
Err:   lcd
Net:   No ethernet found.
Hit any key to stop autoboot:  0
SMDK5250 #

Since the LCD is all that a typical user sees, it is useful to display
the model there.

We may be able to rearrange things some other way one day, but at
present this seems like a convenient way of getting the required
behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoDocument the CONFIG_DISPLAY_BOARDINFO option
Simon Glass [Fri, 30 Nov 2012 13:01:18 +0000 (13:01 +0000)] 
Document the CONFIG_DISPLAY_BOARDINFO option

Add a short note about this in the README.

Signed-off-by: Simon Glass <sjg@chromium.org>