]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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>
13 years agoXilinx: ARM: fpga: Add a driver to configure the Zynq PL
Joe Hershberger [Thu, 31 May 2012 01:33:51 +0000 (20:33 -0500)] 
Xilinx: ARM: fpga: Add a driver to configure the Zynq PL

Add support for configuring the programmable logic on a ZC7Z020
from within u-boot using fpga command

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: few more configuartions are factored from board headers
Jagan [Fri, 1 Jun 2012 14:50:58 +0000 (20:20 +0530)] 
Xilinx: ARM: few more configuartions are factored from board headers

Factored few more configs from board headers and placed on to
zynq_common.h, apart from this few more config cleanups are done.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed unneeded configurations from zc702
Jagan [Thu, 31 May 2012 12:19:45 +0000 (17:49 +0530)] 
Xilinx: ARM: Removed unneeded configurations from zc702

Removed NOR, NAND configurations from board header and
also few misc configs.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed unnecessary conditional macros from ep107 board
Jagan [Thu, 31 May 2012 12:07:11 +0000 (17:37 +0530)] 
Xilinx: ARM: Removed unnecessary conditional macros from ep107 board

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Factor out common configs from board config headers
Jagan [Thu, 31 May 2012 11:39:55 +0000 (17:09 +0530)] 
Xilinx: ARM: Factor out common configs from board config headers

Factor out common configs from zynq_ep107.h, zynq_zc702.h and
zynq_zc770.h into a new file zynq_common.h

We may factor few more configs on future as well.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: NET: Moved Xgmac_register decleration into netdev header
Jagan [Thu, 31 May 2012 09:54:12 +0000 (15:24 +0530)] 
Xilinx: ARM: NET: Moved Xgmac_register decleration into netdev header

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Fixed patch Errors and Warning from preious commit
Jagan [Thu, 31 May 2012 09:44:58 +0000 (15:14 +0530)] 
Xilinx: ARM: Fixed patch Errors and Warning from preious commit

From,
1a23f719a1409f1a5867b5c359fc18a8d1e045d2

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Fixed patch Errors & Warnings on previous commits
Jagan [Thu, 31 May 2012 09:32:33 +0000 (15:02 +0530)] 
Xilinx: ARM: Fixed patch Errors & Warnings on previous commits

From,
209f4a42b2fccfab973654b95c1843c52b9aea87
5fb49bcd309884b504d64f0bc3a369505f7a5031

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: NET: Ethernet speed changed from 100 to 1000 MBPS
Jagan [Wed, 30 May 2012 07:07:37 +0000 (12:37 +0530)] 
Xilinx: ARM: NET: Ethernet speed changed from 100 to 1000 MBPS

This patch add support to operate u-boot ethernet on 1Gig, as
the Linux operates the same. we synchronise both the speeds.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed pele_qspi.c into xilinx_qspi.c
Jagan [Wed, 30 May 2012 06:47:40 +0000 (12:17 +0530)] 
Xilinx: ARM: Renamed pele_qspi.c into xilinx_qspi.c

Also deleted config.mk from board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed legacy pss with ps, including files names
Jagan [Tue, 29 May 2012 13:17:02 +0000 (18:47 +0530)] 
Xilinx: ARM: Renamed legacy pss with ps, including files names

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Making XIo_Out32 and XIo_In32 in a board file
Jagan [Tue, 29 May 2012 12:46:45 +0000 (18:16 +0530)] 
Xilinx: ARM: Making XIo_Out32 and XIo_In32 in a board file

As we compiled the code based on the board selection,
we placed the IO macros on board file where xgmac and xnand
can use.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Hack to fix bug for Numonyx flash in 8 bit mode
John Linn [Fri, 9 Jul 2010 16:45:31 +0000 (10:45 -0600)] 
Xilinx: ARM: Hack to fix bug for Numonyx flash in 8 bit mode

This is a hack that should be reconsidered. In 8 bit mode, the CFI data
for the part is wrong in that the buffer size is 1024 but should be 256.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed u-boot prompt from pele to zynq on zc702
Jagan [Tue, 29 May 2012 11:20:59 +0000 (16:50 +0530)] 
Xilinx: ARM: Renamed u-boot prompt from pele to zynq on zc702

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed unneeded IDENT_STRING on ep107, zc770 and cseflash
Jagan [Tue, 29 May 2012 11:15:11 +0000 (16:45 +0530)] 
Xilinx: ARM: Removed unneeded IDENT_STRING on ep107, zc770 and cseflash

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed unneeded ping from bootmodes on ep107 and zc770
Jagan [Tue, 29 May 2012 11:11:09 +0000 (16:41 +0530)] 
Xilinx: ARM: Removed unneeded ping from bootmodes on ep107 and zc770

This patch removes the ping commands from QSPI
and SD bootmodes on zc702 board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Decreased bootdelay from 10 to 3 sec on ep107 and zc770
Jagan [Tue, 29 May 2012 11:07:57 +0000 (16:37 +0530)] 
Xilinx: ARM: Decreased bootdelay from 10 to 3 sec on ep107 and zc770

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed XDF* to XZYNQ*
Jagan [Mon, 28 May 2012 11:34:56 +0000 (17:04 +0530)] 
Xilinx: ARM: Renamed XDF* to XZYNQ*

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed redundent macro names on board selection
Jagan [Mon, 28 May 2012 09:56:52 +0000 (15:26 +0530)] 
Xilinx: ARM: Removed redundent macro names on board selection

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Updated High level configuration options.
Jagan [Mon, 28 May 2012 09:53:43 +0000 (15:23 +0530)] 
Xilinx: ARM: Updated High level configuration options.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed CONFIG_PELE_* to CONFIG_ZYNQ_*
Jagan [Mon, 28 May 2012 12:50:05 +0000 (18:20 +0530)] 
Xilinx: ARM: Renamed CONFIG_PELE_* to CONFIG_ZYNQ_*

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Build the ethernet for respective boards only.
Jagan [Mon, 28 May 2012 12:24:06 +0000 (17:54 +0530)] 
Xilinx: ARM: Build the ethernet for respective boards only.

Few of the DC varients on zc770 doesn't have net support,
so we make the ethernet as conditional compilation
for respective boards.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed board, SOC directory names to zynq like names
Jagan [Sun, 27 May 2012 18:24:37 +0000 (23:54 +0530)] 
Xilinx: ARM: Renamed board, SOC directory names to zynq like names

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: All configs on board entry are in defined order
Jagan [Mon, 28 May 2012 06:15:18 +0000 (11:45 +0530)] 
Xilinx: ARM: All configs on board entry are in defined order

Signed-off-by: Jagan <jaganna@xilinx.com>