]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
13 years agoXilinx: ARM: mmc: zynq: Add license notes
Jagannadha Sutradharudu Teki [Mon, 27 Aug 2012 19:26:10 +0000 (00:56 +0530)] 
Xilinx: ARM: mmc: zynq: Add license notes

This patch adds license notes on zynq sdhci driver and
it's header file.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: mmc: zynq: Add support for CMD13 of SD
Jagannadha Sutradharudu Teki [Mon, 27 Aug 2012 18:59:44 +0000 (00:29 +0530)] 
Xilinx: ARM: mmc: zynq: Add support for CMD13 of SD

This patch adds support for SEND_STATUS (CMD13) of SD.

Host may poll the status of the card with a CMD13 at
any time, and the card will respond with its status.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Create zc70x config file to support zc702 and zc706 boards
Jagannadha Sutradharudu Teki [Tue, 28 Aug 2012 18:25:16 +0000 (23:55 +0530)] 
Xilinx: ARM: Create zc70x config file to support zc702 and zc706 boards

Support to detect dual qspi flash memory is based on the MIO's
configuration is added.
Therefore, no need to have separate config files for zc702 and zc706.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Use existing go support for ep107 targets
Jagannadha Sutradharudu Teki [Tue, 28 Aug 2012 18:02:44 +0000 (23:32 +0530)] 
Xilinx: ARM: Use existing go support for ep107 targets

Since bootm is slow in ep107 targets, enabled existing go
for automatic Linux booting in all bootmodes.

For proper linux boot, use correct linux defconfig with
fixed devicetree and devicetree with fixed ramdisk address.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: stmicro: Support for numonyx ID table
Jagannadha Sutradharudu Teki [Sat, 25 Aug 2012 17:58:06 +0000 (23:28 +0530)] 
Xilinx: ARM: sf: stmicro: Support for numonyx ID table

This patch resolved the conflict between Numonyx and
Micron based flash devices. Added two bytes instead of
one byte for full device ID detection through idcode member.

Now JEDEC standard two-byte signature is used for id detection.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: spi: zynq: Replaced printf with debug function
Jagannadha Sutradharudu Teki [Tue, 28 Aug 2012 10:03:06 +0000 (15:33 +0530)] 
Xilinx: ARM: spi: zynq: Replaced printf with debug function

This patch replaces printf in conditional DEBUG
macros with debug function of u-boot

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: drop XILINX_PSS_QSPI_USE_DUAL_FLASH references for zynq
Jagannadha Sutradharudu Teki [Tue, 28 Aug 2012 09:13:59 +0000 (14:43 +0530)] 
Xilinx: ARM: drop XILINX_PSS_QSPI_USE_DUAL_FLASH references for zynq

Now the dual qspi flash memory detection is done at runtime
based on the MIO's configurations.
So there is no much point to check this macro on zynq qspi and
board code hence removed the references.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: winbond: Update the flash memory size at runtime
Jagannadha Sutradharudu Teki [Sat, 25 Aug 2012 15:50:30 +0000 (21:20 +0530)] 
Xilinx: ARM: sf: winbond: Update the flash memory size at runtime

This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: stmicro: Update the flash memory size at runtime
Jagannadha Sutradharudu Teki [Sat, 25 Aug 2012 15:48:13 +0000 (21:18 +0530)] 
Xilinx: ARM: sf: stmicro: Update the flash memory size at runtime

This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: spansion: Update the flash memory size at runtime
Jagannadha Sutradharudu Teki [Sat, 25 Aug 2012 15:45:48 +0000 (21:15 +0530)] 
Xilinx: ARM: sf: spansion: Update the flash memory size at runtime

This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: spi: zynq: Runtime detection of dual qspi flash
Jagannadha Sutradharudu Teki [Tue, 28 Aug 2012 09:28:39 +0000 (14:58 +0530)] 
Xilinx: ARM: spi: zynq: Runtime detection of dual qspi flash

This patch adds support to check the dual qspi flash
at runtime based on qspi MIO configurations done by FSBL.

User needs to correctly configure the MIO's based on the number of
flashes memories present on the board.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: nand: Remove ClearNAND support
Jagannadha Sutradharudu Teki [Thu, 23 Aug 2012 13:34:29 +0000 (19:04 +0530)] 
Xilinx: ARM: nand: Remove ClearNAND support

This patch removes the code for supporting ClearNAND
flashes as it is not supported currently on zynq.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Enable spansion qspi on zc706
Jagannadha Sutradharudu Teki [Thu, 16 Aug 2012 13:38:31 +0000 (19:08 +0530)] 
Xilinx: ARM: Enable spansion qspi on zc706

This patch adds support to spansion flash on zc706 to help access
for QSPI on few zc706 boards.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: update memory amount for AFX
Jagannadha Sutradharudu Teki [Wed, 15 Aug 2012 05:51:44 +0000 (11:21 +0530)] 
Xilinx: ARM: update memory amount for AFX

Since u-boot is altering the device tree to match the
amount of memory when using the bootm command, the
amount needs to be accurate.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: winbond: Add support to program using dual qspi
Jagannadha Sutradharudu Teki [Fri, 17 Aug 2012 11:33:54 +0000 (17:03 +0530)] 
Xilinx: ARM: sf: winbond: Add support to program using dual qspi

This patch enables programming of winbond flash devices
using dual qspi. winbond flash driver is updated to detect
the size of the flash based on the board header macro.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed DDR init code in low level initialization
Jagannadha Sutradharudu Teki [Mon, 13 Aug 2012 08:44:29 +0000 (14:14 +0530)] 
Xilinx: ARM: Removed DDR init code in low level initialization

Initialization of DDR is added to support XIP case in u-boot.
As this code should be generated by tools based on DDR used on board.
Hence, removed the references.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: stmicro: Add support for N25Q128 3V part
Jagannadha Sutradharudu Teki [Thu, 9 Aug 2012 14:53:33 +0000 (20:23 +0530)] 
Xilinx: ARM: sf: stmicro: Add support for N25Q128 3V part

This patch adds support for Numonyx N25Q128 3V SPI flash.

This commit is based on a diff patch from customer
niemann@heidenhain.de and is not supported by Xilinx
since it can’t be tested.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: spansion: Add support to program using dual qspi
Jagannadha Sutradharudu Teki [Mon, 6 Aug 2012 15:34:38 +0000 (21:04 +0530)] 
Xilinx: ARM: sf: spansion: Add support to program using dual qspi

This patch enables programming of spansion flash devices
using dual qspi. spansion flash driver is updated to detect
the size of the flash based on the board header macro.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: Enable prints on erase and write functions
Jagannadha Sutradharudu Teki [Mon, 6 Aug 2012 15:25:35 +0000 (20:55 +0530)] 
Xilinx: ARM: sf: Enable prints on erase and write functions

This patch provides to enabled the prints on erase and write
functions to make sure that user to know the functionality.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: stmicro: Add support to program using dual qspi
Jagannadha Sutradharudu Teki [Mon, 13 Aug 2012 06:40:58 +0000 (12:10 +0530)] 
Xilinx: ARM: sf: stmicro: Add support to program using dual qspi

This patch enables programming of stmicro flash devices
using dual qspi. stmicro flash driver is updated to detect
the size of the flash based on the board header macro.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: Add support to program dual qspi
Jagannadha Sutradharudu Teki [Mon, 13 Aug 2012 06:40:24 +0000 (12:10 +0530)] 
Xilinx: ARM: sf: Add support to program dual qspi

This patch adds support in spi flash driver to program
single or dual qspi based on the address width of flash device.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: update memory amount for ZC770
Jagannadha Sutradharudu Teki [Mon, 6 Aug 2012 08:23:41 +0000 (13:53 +0530)] 
Xilinx: ARM: update memory amount for ZC770

Since u-boot is altering the device tree to match the
amount of memory when using the bootm command, the
amount needs to be accurate.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: nand: Removed linux specific code in driver
Jagannadha Sutradharudu Teki [Mon, 6 Aug 2012 08:19:38 +0000 (13:49 +0530)] 
Xilinx: ARM: nand: Removed linux specific code in driver

Removed the code under the macro LINUX_ONLY_NOT_UBOOT as it
is taken from linux nand driver and is never used.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: spi: Removed usage of bit 1 on interrupt status register
Jagannadha Sutradharudu Teki [Thu, 2 Aug 2012 07:13:25 +0000 (12:43 +0530)] 
Xilinx: ARM: spi: Removed usage of bit 1 on interrupt status register

Bit 1 on qspi.Intr_status_REG is reserved and it shouldn't be
used in driver, so removed it's usage from qspi driver.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add license notes on board configs
Jagannadha Sutradharudu Teki [Fri, 17 Aug 2012 04:32:19 +0000 (10:02 +0530)] 
Xilinx: ARM: Add license notes on board configs

This patch adds license notes on all zynq board configurations
Now the license notes resemble the license notes as on xilinx linux git.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed Xil_out32 and Xil_In32 into XIo_Out32 and XIo_In32
Jagannadha Sutradharudu Teki [Thu, 16 Aug 2012 13:15:02 +0000 (18:45 +0530)] 
Xilinx: ARM: Renamed Xil_out32 and Xil_In32 into XIo_Out32 and XIo_In32

Due to earlier cleanup, the definitions of Xil_Out32 and Xil_In32
macros are removed. So referenced them to current existing definitions.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed some duplicate functions on board
Jagannadha Sutradharudu Teki [Sun, 29 Jul 2012 08:52:29 +0000 (14:22 +0530)] 
Xilinx: ARM: Removed some duplicate functions on board

Few functions having same definitions but different names are
removed. These might have been added during initial support of u-boot.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed M29EW Flash init code in board
Jagannadha Sutradharudu Teki [Fri, 27 Jul 2012 12:27:46 +0000 (17:57 +0530)] 
Xilinx: ARM: Removed M29EW Flash init code in board

Removed pl353 parameter initialization code for M29EW Flash.
This might have been added during initial support of u-boot.

pl353 controller specific timing info was initialized
prior to u-boot stage hence it is being removed.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add support to use NAND ONFI page table
Jagannadha Sutradharudu Teki [Thu, 26 Jul 2012 12:04:12 +0000 (17:34 +0530)] 
Xilinx: ARM: Add support to use NAND ONFI page table

This patch provides to use NAND ONFI page table
from the mtd nand base core framework.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: drop NET_MULTI references
Jagannadha Sutradharudu Teki [Wed, 25 Jul 2012 12:18:32 +0000 (17:48 +0530)] 
Xilinx: ARM: drop NET_MULTI references

Now that none of the net core checks for CONFIG_NET_MUTLI,
so there is no much point to define it on board configs.
So removed the references.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed few headers on board config
Jagannadha Sutradharudu Teki [Wed, 25 Jul 2012 12:15:24 +0000 (17:45 +0530)] 
Xilinx: ARM: Renamed few headers on board config

BOARD_LATE_INIT -> CONFIG_BOARD_LATE_INIT
CONFIG_L2_OFF -> CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoXilinx: ARM: punt unused clean/distclean targets on board
Jagannadha Sutradharudu Teki [Wed, 25 Jul 2012 12:11:04 +0000 (17:41 +0530)] 
Xilinx: ARM: punt unused clean/distclean targets on board

The top level Makefile does not do any recursion into subdirs when
cleaning, so these clean/distclean targets in random arch or board
directories never get used.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agoMerge branch 'denx_2012.04.01' into master-v2012.04.01
Jagannadha Sutradharudu Teki [Fri, 17 Aug 2012 11:21:36 +0000 (16:51 +0530)] 
Merge branch 'denx_2012.04.01' into master-v2012.04.01

Conflicts:
README
arch/arm/cpu/armv7/start.S
arch/arm/lib/bootm.c
boards.cfg
common/cmd_nvedit.c
common/image.c
config.mk
drivers/i2c/Makefile
drivers/mmc/Makefile
drivers/mmc/mmc.c
drivers/mtd/nand/nand_base.c
drivers/mtd/spi/spansion.c
drivers/mtd/spi/stmicro.c
drivers/mtd/spi/winbond.c
drivers/net/Makefile
drivers/serial/Makefile
drivers/spi/Makefile
include/image.h
include/linux/mtd/nand.h
include/netdev.h
lib/string.c

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agocommon/image.c: align usage of fdt_high with initrd_high
Shawn Guo [Mon, 9 Jan 2012 21:54:08 +0000 (21:54 +0000)] 
common/image.c: align usage of fdt_high with initrd_high

The commit message of a28afca (Add uboot "fdt_high" enviroment variable)
states that fdt_high behaves similarly to the existing initrd_high.
But fdt_high actually has an outstanding difference from initrd_high.
The former specifies the start address, while the later specifies the
end address.

As fdt_high and initrd_high will likely be used together, it'd be nice
to have them behave same.  The patch changes the behavior of fdt_high
to have it aligned with initrd_high.

The document of fdt_high in README is updated with an example to
demonstrate the usage of this environment variable.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agoXilinx: ARM: update ramdisk name in environment
John Linn [Wed, 1 Aug 2012 21:08:31 +0000 (14:08 -0700)] 
Xilinx: ARM: update ramdisk name in environment

The ramdisk was named with the size of it in the name.
The size is removed so that it is more general.

Signed-off-by: John Linn <john.linn@xilinx.com>
13 years agoXilinx: ARM: update upper memory limit for dt and ramdisk
John Linn [Wed, 1 Aug 2012 23:46:07 +0000 (16:46 -0700)] 
Xilinx: ARM: update upper memory limit for dt and ramdisk

By default u-boot will try to load the device tree and
the ramdisk into high memory. This sets up the limits
to reserve some high memory (above 512MB) so that the
items are not loaded higher than that.

The Xilinx TRD uses video memory up high for one example
and if these items are loaded up high the Linux kernel
would not be able to access it.

Signed-off-by: John Linn <john.linn@xilinx.com>
13 years agoXilinx: ARM: update memory amount for ZC702
John Linn [Wed, 1 Aug 2012 23:40:48 +0000 (16:40 -0700)] 
Xilinx: ARM: update memory amount for ZC702

Since u-boot is altering the device tree to match the
amount of memory when using the bootm command, the
amount needs to be accurate.

Signed-off-by: John Linn <john.linn@xilinx.com>
13 years agoXilinx: ARM: Add bootm support in all bootmodes
Jagan [Tue, 24 Jul 2012 14:20:36 +0000 (19:50 +0530)] 
Xilinx: ARM: Add bootm support in all bootmodes

This patch replaced the go with bootm while booting Linux
automatically on all bootmodes.

Example:
zynq-uboot> tftp 0x3000000 uImage
zynq-uboot> tftp 0x2A00000 devicetree.dtb
zynq-uboot> tftp 0x2000000 uramdisk8M.image.gz
zynq-uboot> bootm 0x3000000 0x2000000 0x2A00000

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add initrd_high environment variable
Jagan [Thu, 19 Jul 2012 10:11:59 +0000 (15:41 +0530)] 
Xilinx: ARM: Add initrd_high environment variable

This patch provides support to have dynamic relocation
of ramdisk image (initrd) through initrd_high environment variable.

We set initrd_high value based on our ramdisk image size and is
calculated as initrd_high = 0x800000 + <size_of_mkimaged_ramdisk>

User needs to change this value based on his custom ramdisk image.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add fdt_high environment variable
Jagan [Wed, 18 Jul 2012 12:20:06 +0000 (17:50 +0530)] 
Xilinx: ARM: Add fdt_high environment variable

This patch provides support to have dynamic relocation
of device tree image (fdt) through fdt_high environment variable.

Default relocation address for the kernel is set to
0x1000000 to have backward compatibility with older kernels.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed device tree booting dependency on CONFIG_SYS_BOOTMAPSZ
Jagan [Fri, 13 Jul 2012 14:42:07 +0000 (20:12 +0530)] 
Xilinx: ARM: Removed device tree booting dependency on CONFIG_SYS_BOOTMAPSZ

boot_relocate_fdt() has been changed to support relocation
for device tree memory. so CONFIG_SYS_BOOTMAPSZ is not required
to hotcode the device tree address and on other wards it's not useful
incase of relocating fdt.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoFix typo from 'mb_alloc' -> 'lmb_alloc'
Matthew McClintock [Mon, 18 Jul 2011 13:08:05 +0000 (13:08 +0000)] 
Fix typo from 'mb_alloc' -> 'lmb_alloc'

Signed-off-by: Matthew McClintock <msm@freescale.com>
13 years agoAdd a new "fdt_high" enviroment variable. This can be used to control (or prevent...
David A. Long [Fri, 13 Jul 2012 08:22:45 +0000 (13:52 +0530)] 
Add a new "fdt_high" enviroment variable. This can be used to control (or prevent) the
relocation of the flattened device tree on boot. It can be used to prevent relocation
of the fdt into highmem.  The variable behaves similarly to the existing "initrd_high"
variable.

Signed-off-by: David A. Long <dave.long at linaro.org>
13 years agoIf a regions is reserved in the fdt, then it should not be used. Add
Grant Likely [Fri, 13 Jul 2012 08:22:41 +0000 (13:52 +0530)] 
If a regions is reserved in the fdt, then it should not be used.  Add
the memreserve regions to the lmb so that u-boot doesn't use them to
store the initrd.

Signed-off-by: Grant Likely <grant.likely at linaro.org>
13 years agoThe initrd_end variable contains the address immediately *after* the
Grant Likely [Fri, 13 Jul 2012 08:22:36 +0000 (13:52 +0530)] 
The initrd_end variable contains the address immediately *after* the
initrd blob, not the last address containing data.  This patch fixes
an inadvertent off-by-one when setting up the initrd reserved map.

Signed-off-by: Grant Likely <grant.likely at linaro.org>
13 years agoThe previous patch makes u-boot use the full accessible size of ram as
Grant Likely [Fri, 13 Jul 2012 08:22:30 +0000 (13:52 +0530)] 
The previous patch makes u-boot use the full accessible size of ram as
the default boot mapped size if CONFIG_SYS_BOOTMAPSZ is not defined,
which means boot_relocate_fdt() can be changed to depend solely on
CONFIG_OF_LIBFDT.

Signed-off-by: Grant Likely <grant.likely at linaro.org>
13 years agoThis patch adds a function getenv_bootm_mapsize() for obtaining the
Grant Likely [Fri, 13 Jul 2012 08:22:25 +0000 (13:52 +0530)] 
This patch adds a function getenv_bootm_mapsize() for obtaining the
size of the early mapped region accessible by the kernel during early
boot.  It defaults to CONFIG_SYS_BOOTMAPSZ, or if not defined,
defaults to getenv_bootm_size(), which in turn defaults to the size of
RAM.

getenv_bootm_mapsize() can also be overridden with a "bootm_mapsize"
environmental variable.

Signed-off-by: Grant Likely <grant.likely at linaro.org>
13 years agoFor the calls to boot_relocate_fdt(), boot_get_cmdline(), and
Grant Likely [Fri, 13 Jul 2012 08:22:19 +0000 (13:52 +0530)] 
For the calls to boot_relocate_fdt(), boot_get_cmdline(), and
boot_get_kbd(), the value of bootmem_base is always obtained by
calling getenv_bootm_low().  Since the value always comes from the
same source, the calling signature for those functions can be
simplified by making them call getenv_bootm_low() directly.

Signed-off-by: Grant Likely <grant.likely at linaro.org>
13 years agoXilinx: ARM: nand: fixed 16-bit On-Die ECC flash support
Jagan [Fri, 13 Jul 2012 07:17:52 +0000 (12:47 +0530)] 
Xilinx: ARM: nand: fixed 16-bit On-Die ECC flash support

NAND 16-bit On-Die support is not detected due to some
improper column adjustments while sending commands to NAND device.
So adjusted columns for NAND 16-bit bus width to detect the
On-Die ECC flash support.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add nand 16-bit buswidth support
Jagan [Thu, 28 Jun 2012 15:28:48 +0000 (20:58 +0530)] 
Xilinx: ARM: Add nand 16-bit buswidth support

This patch adds nand 16-bit buswidth support to
ZC770 XM011 board and AFX NAND module.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add AFX NAND module build support
Jagan [Thu, 28 Jun 2012 15:22:43 +0000 (20:52 +0530)] 
Xilinx: ARM: Add AFX NAND module build support

This patch adds the build support for the
AFX NAND module.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add AFX Dual QSPI module build support
Jagan [Thu, 28 Jun 2012 15:08:24 +0000 (20:38 +0530)] 
Xilinx: ARM: Add AFX Dual QSPI module build support

This patch adds the build support for the
AFX Dual QSPI module.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: sf: winbond: determine the address width based on flash type
Jagan [Thu, 28 Jun 2012 12:18:41 +0000 (17:48 +0530)] 
Xilinx: ARM: sf: winbond: determine the address width based on flash type

Address width is computed based on the flash type, whether it is
single or dual not based on the size.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add AFX QSPI module build support
Jagan [Thu, 28 Jun 2012 07:25:43 +0000 (12:55 +0530)] 
Xilinx: ARM: Add AFX QSPI module build support

This patch adds the build support for the
AFX QSPI module.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add ZC706 board build support
Jagan [Tue, 26 Jun 2012 14:30:48 +0000 (20:00 +0530)] 
Xilinx: ARM: Add ZC706 board build support

This patch adds the build support for the ZC706 board.
Used ZC702 board configs plus dual qspi support,
as most of the board headers are similar to ZC702 board.

Also added license notes on zc702 board config.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add AFX NOR module build support
Jagan [Wed, 20 Jun 2012 07:23:54 +0000 (12:53 +0530)] 
Xilinx: ARM: Add AFX NOR module build support

This patch adds the build support for the
AFX NOR module.
Currently supports DDR2 and NOR modules.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed redundant inclusion of xparameters.h
Jagan [Mon, 18 Jun 2012 15:30:45 +0000 (21:00 +0530)] 
Xilinx: ARM: Removed redundant inclusion of xparameters.h

Some files in source are still include xparameters.h, but it's
already included on board headers. so removed redundant inclusion.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: net: Link speed reverted back to 100Mbps on ep107 targets
Jagan [Mon, 18 Jun 2012 11:53:55 +0000 (17:23 +0530)] 
Xilinx: ARM: net: Link speed reverted back to 100Mbps on ep107 targets

Suspected ethernet link working for 1Gig on ep107, but
it's not working. also it's not fully tested before for 1Gig on linux.
so reverted back to 100Mbps.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: nand: Wait for the device to be ready
Joe Hershberger [Tue, 19 Jun 2012 14:47:37 +0000 (09:47 -0500)] 
Xilinx: ARM: nand: Wait for the device to be ready

Make sure the device is ready in the cases where it should (same as
Linux now, except that NAND_CMD_ERASE1 should not be here)

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Skip reading the OOB for on-die ecc
Joe Hershberger [Mon, 18 Jun 2012 23:46:35 +0000 (18:46 -0500)] 
Xilinx: ARM: nand: Skip reading the OOB for on-die ecc

OOB is not needed for on-die flash.  Don't waste time reading it.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Add sub-page read support
Joe Hershberger [Mon, 18 Jun 2012 23:35:46 +0000 (18:35 -0500)] 
Xilinx: ARM: nand: Add sub-page read support

Add and enable functions for handling sub-page reads
Due to poor organization of this driver, the options mask has to be
modified to not clobber the subpage option in nand_base.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoubifs: Allow ubifsmount volume reference by number
Joe Hershberger [Wed, 13 Jun 2012 01:22:19 +0000 (20:22 -0500)] 
ubifs: Allow ubifsmount volume reference by number

UBI can mount volumes by name or number  The current code forces you
to name the volume by prepending every name with "ubi:".

From fs/ubifs/super.c
 * There are several ways to specify UBI volumes when mounting UBIFS:
 * o ubiX_Y    - UBI device number X, volume Y;
 * o ubiY      - UBI device number 0, volume Y;
 * o ubiX:NAME - mount UBI device X, volume with name NAME;
 * o ubi:NAME  - mount UBI device 0, volume with name NAME.

Now any name passed in any of the above forms are allowed.

Also update the configs that referenced ubifsmount.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoubi: Only read the actual size of the VID header
Joe Hershberger [Tue, 19 Jun 2012 14:46:03 +0000 (09:46 -0500)] 
ubi: Only read the actual size of the VID header

If sub-page reads are supported, this will save reading unneeded data

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agonand: Move the sub-page read support enable to a flag
Joe Hershberger [Mon, 18 Jun 2012 23:10:23 +0000 (18:10 -0500)] 
nand: Move the sub-page read support enable to a flag

Use a flag instead of a hard-coded macro so that sub-page reads can be
enabled in other cases (such as on-die ecc).

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Fix buffer access functions
Joe Hershberger [Mon, 18 Jun 2012 22:55:38 +0000 (17:55 -0500)] 
Xilinx: ARM: nand: Fix buffer access functions

read_buf and write_buf will now properly handle any size or alignment
verify_buf will be implemented but the nand_base instead of separately

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Remove broken and redundant code
Joe Hershberger [Wed, 13 Jun 2012 01:28:32 +0000 (20:28 -0500)] 
Xilinx: ARM: nand: Remove broken and redundant code

This code does not even compile when enabled.
The core nand subsystem already registers an mtd device.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Renamed few legacy names as part of cleanup
Jagan [Tue, 12 Jun 2012 15:45:32 +0000 (21:15 +0530)] 
Xilinx: ARM: Renamed few legacy names as part of cleanup

Renamed few legacy names with valid zynq based names.
Removed ps7_init_hw header as it is not used.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: mmc: Hack for mmc driver to handle CMD6
Jagan [Fri, 8 Jun 2012 15:19:05 +0000 (20:49 +0530)] 
Xilinx: ARM: mmc: Hack for mmc driver to handle CMD6

Added CMD6 in driver to remove Unknown command messages
on u-boot console. This fix needs to be updated when CMD6
functionality support is added.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed some unused code in board file
Jagan [Fri, 8 Jun 2012 14:55:28 +0000 (20:25 +0530)] 
Xilinx: ARM: Removed some unused code in board file

Removed some unused code for initializing PLL, MIO and clocks
on board file which was possibly added during initial support
of u-boot for ZYNQ bringup.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Cleanup config support for ZedBoard
Kevin Keryk [Thu, 7 Jun 2012 23:24:11 +0000 (16:24 -0700)] 
Xilinx: ARM: Cleanup config support for ZedBoard

This patch cleans up config support needed for ZedBoard targets
following merge branch 'master-next" and has been tested on Rev. B
ZedBoard hardware.

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: remove PROMPT redefine warning for Zed board
John Linn [Wed, 6 Jun 2012 21:15:10 +0000 (14:15 -0700)] 
Xilinx: ARM: remove PROMPT redefine warning for Zed board

During the last merge a warning about the PROMPT being
redefined crept in and this cleans it up.

Signed-off-by: John Linn <john.linn@xilinx.com>
13 years agoMerge branch 'master-next'
John Linn [Wed, 6 Jun 2012 20:16:03 +0000 (13:16 -0700)] 
Merge branch 'master-next'

13 years agoXilinx: ARM: remove CONFIG_SKIP_RELOCATE_UBOOT
Jagan [Wed, 6 Jun 2012 05:59:29 +0000 (11:29 +0530)] 
Xilinx: ARM: remove CONFIG_SKIP_RELOCATE_UBOOT

The relocation feature has changed in v2011.03 release such that
this config is no longer used.

The relocation feature needs to be fixed for zynq, this is only
a clean up commit.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: SPI: fix spansion erase for single and dual devices
Jagan [Wed, 6 Jun 2012 06:05:41 +0000 (11:35 +0530)] 
Xilinx: ARM: SPI: fix spansion erase for single and dual devices

The spansion_erase only worked for >64KiB sector size as the
erase command was forgotten when the x2 support was previously
added. The address width is now used as the other commands were
doing such that it works.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: net: Move the Zynq GEM driver to drivers/net
Joe Hershberger [Wed, 6 Jun 2012 02:10:39 +0000 (21:10 -0500)] 
Xilinx: ARM: net: Move the Zynq GEM driver to drivers/net

The Gigabit Ethernet Mac driver for Zynq should be available to any
board that uses Zynq

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: spi: Move the QSPI driver to drivers/spi
Joe Hershberger [Wed, 6 Jun 2012 01:19:36 +0000 (20:19 -0500)] 
Xilinx: ARM: spi: Move the QSPI driver to drivers/spi

The QSPI driver should be accessible to any boards based on the Zynq

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Move the zynq nand driver to drivers/mtd/nand
Joe Hershberger [Wed, 6 Jun 2012 00:10:22 +0000 (19:10 -0500)] 
Xilinx: ARM: nand: Move the zynq nand driver to drivers/mtd/nand

This drivers should be accesible to other boards based on Zynq

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: mmc: Move MMC driver to drivers/mmc
Joe Hershberger [Tue, 5 Jun 2012 23:49:42 +0000 (18:49 -0500)] 
Xilinx: ARM: mmc: Move MMC driver to drivers/mmc

Move the mmc driver to a common drivers location so it can be used by
any zynq-based board that wants to use it.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Simple clean-up of Zynq configs
Joe Hershberger [Tue, 5 Jun 2012 20:22:32 +0000 (15:22 -0500)] 
Xilinx: ARM: Simple clean-up of Zynq configs

For boolean options, stop defining them to 1 or 0... they are all
checked for #ifdef.
Eliminate dead code and irrelevant options.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Move things out of zynq_common.h
Joe Hershberger [Tue, 5 Jun 2012 20:19:16 +0000 (15:19 -0500)] 
Xilinx: ARM: Move things out of zynq_common.h

Some things really are not generic settings... move them to each
board's config.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Move common elements to zynq_common.h
Joe Hershberger [Tue, 5 Jun 2012 20:09:50 +0000 (15:09 -0500)] 
Xilinx: ARM: Move common elements to zynq_common.h

The CPU and the SoC should always be the same
The CPU is supposed to be CONFIG_ARMV7
General CONFIG_SYS should usually be the same
Always need BOARD_LATE_INIT

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Make zynq_cseflash.h use zynq_common.h
Joe Hershberger [Tue, 5 Jun 2012 16:43:49 +0000 (11:43 -0500)] 
Xilinx: ARM: Make zynq_cseflash.h use zynq_common.h

Many things are in common... use them

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Remove common elements in zynq_zed.h
Joe Hershberger [Tue, 5 Jun 2012 16:15:05 +0000 (11:15 -0500)] 
Xilinx: ARM: Remove common elements in zynq_zed.h

May of the defines that exist in zynq_common.h were still left in
zynq_zed.h... clean those up
Also explicitly #undef anything that we want to change from common

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix build warnings in board.c
Joe Hershberger [Tue, 5 Jun 2012 16:18:42 +0000 (11:18 -0500)] 
Xilinx: ARM: Fix build warnings in board.c

I/O accessors should be inline anyway
Change errant pointer into an int

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Remove stray comment termination
Joe Hershberger [Tue, 5 Jun 2012 03:22:32 +0000 (22:22 -0500)] 
Xilinx: ARM: Remove stray comment termination

Fix compile complaints on zc702

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix warning in mmc.c
Joe Hershberger [Tue, 5 Jun 2012 03:21:32 +0000 (22:21 -0500)] 
Xilinx: ARM: Fix warning in mmc.c

This appears to be an obsolete concern, so remove it

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix warnings in qspi driver
Joe Hershberger [Tue, 5 Jun 2012 03:16:42 +0000 (22:16 -0500)] 
Xilinx: ARM: Fix warnings in qspi driver

Use the unused flags
Don't build unused functions

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Move arch headers to the arch include dir
Joe Hershberger [Tue, 5 Jun 2012 02:39:56 +0000 (21:39 -0500)] 
Xilinx: ARM: Move arch headers to the arch include dir

These need to be accessed from drivers... do it correctly

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Eliminate duplicated headers
Joe Hershberger [Tue, 5 Jun 2012 00:38:01 +0000 (19:38 -0500)] 
Xilinx: ARM: Eliminate duplicated headers

These headers only had one line different bewen them.  Doh!

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Remove duplicate include
Joe Hershberger [Tue, 5 Jun 2012 00:22:24 +0000 (19:22 -0500)] 
Xilinx: ARM: Remove duplicate include

This file is already included in zynq_common.h

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: adding Zed board build support
John Linn [Sat, 2 Jun 2012 00:29:15 +0000 (17:29 -0700)] 
Xilinx: ARM: adding Zed board build support

The board was added to the board file.

13 years agoXilinx: ARM: Added config support for ZedBoard
Kevin Keryk [Fri, 1 Jun 2012 01:56:36 +0000 (18:56 -0700)] 
Xilinx: ARM: Added config support for ZedBoard

This patch adds config support needed for ZedBoard targets and has
been tested on Rev. B ZedBoard hardware.

This was adapted to a newer version of u-boot and really hacked
on so some cleanup is needed but it builds (by John).

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: Added support for Spansion S25FL256S QSPI device
Kevin Keryk [Fri, 1 Jun 2012 00:24:30 +0000 (17:24 -0700)] 
Xilinx: ARM: Added support for Spansion S25FL256S QSPI device

This patch allows the Spansion S25FL256S QSPI device on ZedBoard to be accessed.
Read, write, and erase commands verified on ZedBoard Rev. B hardware.

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: Added ethernet PHY support for ZedBoard
Kevin Keryk [Fri, 1 Jun 2012 02:55:32 +0000 (19:55 -0700)] 
Xilinx: ARM: Added ethernet PHY support for ZedBoard

This patch adds support needed for the ethernet PHY on ZedBoard targets and has been tested on Rev. B ZedBoard hardware.

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: Added config support for ZedBoard
Kevin Keryk [Fri, 1 Jun 2012 01:56:36 +0000 (18:56 -0700)] 
Xilinx: ARM: Added config support for ZedBoard

This patch adds config support needed for ZedBoard targets and has been tested on Rev. B ZedBoard hardware.

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: Added support for Spansion S25FL256S QSPI device
Kevin Keryk [Fri, 1 Jun 2012 00:24:30 +0000 (17:24 -0700)] 
Xilinx: ARM: Added support for Spansion S25FL256S QSPI device

This patch allows the Spansion S25FL256S QSPI device on ZedBoard to be accessed.
Read, write, and erase commands verified on ZedBoard Rev. B hardware.

Signed-off-by: Kevin Keryk <kevin.keryk@avnet.com>
13 years agoXilinx: ARM: Alter MMC to use only 1 block for now
John Linn [Fri, 1 Jun 2012 22:20:09 +0000 (15:20 -0700)] 
Xilinx: ARM: Alter MMC to use only 1 block for now

The newer u-boot version tries to use more than 1 block
and the MMC driver needs some work, so for now, stay
with one block.

13 years agoMMC: Max blocks value adjustable
Matt Waddel [Thu, 24 Feb 2011 16:35:23 +0000 (16:35 +0000)] 
MMC: Max blocks value adjustable

The maximum blocks value was hardcoded to 65535 due to a 16 bit
register length.  The value can change for different platforms.
This patch makes the default the current value of 65535, but it
is configurable for other platforms.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
13 years agoXilinx: ARM: Enable fpga command
Joe Hershberger [Thu, 31 May 2012 01:47:05 +0000 (20:47 -0500)] 
Xilinx: ARM: Enable fpga command

This will allow the PL to be configured from within u-boot.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: fpga: Register the internal PL on DFE targets
John Linn [Fri, 1 Jun 2012 21:42:47 +0000 (14:42 -0700)] 
Xilinx: ARM: fpga: Register the internal PL on DFE targets

If FPGA support is compiled into DFE targets, register the programmable
logic as an fpga target

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>