]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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>
13 years agoXilinx: ARM: Added board support for zynq_cseflash config
Jagan [Mon, 28 May 2012 06:14:03 +0000 (11:44 +0530)] 
Xilinx: ARM: Added board support for zynq_cseflash config

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Renamed xpele config to zynq related name
Jagan [Sun, 27 May 2012 17:55:47 +0000 (23:25 +0530)] 
Xilinx: ARM: Renamed xpele config to zynq related name

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Add Dual QSPI config build support
Jagan [Sun, 27 May 2012 17:53:26 +0000 (23:23 +0530)] 
Xilinx: ARM: Add Dual QSPI config build support

This patch added a support to build Dual QSPI, w/o
editing xpele.h
$ make xpele_dual_qspi_config

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed ZC770 XM013 config file
Jagan [Sun, 27 May 2012 17:47:24 +0000 (23:17 +0530)] 
Xilinx: ARM: Removed ZC770 XM013 config file

This patch removes the XM013 config, as we have a common config
for all DC varients.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Make a single config file for all ZC770 DC varients
Jagan [Mon, 28 May 2012 06:10:43 +0000 (11:40 +0530)] 
Xilinx: ARM: Make a single config file for all ZC770 DC varients

This patch prevents the duplication of different config files for
different DC varients on ZC770.

now,
We have a common config file zynq_zc770.h
for configure we just do
make zynq_zc770_<XM010|XM011|XM012|XM013>_config

As we have a common config's for individual DC's at a time, we just
compile only respective drivers on board Makefile.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoMerge branch 'master-2011.03' into master-new
Jagan [Thu, 31 May 2012 07:53:18 +0000 (13:23 +0530)] 
Merge branch 'master-2011.03' into master-new

Conflicts:
Makefile
drivers/mtd/spi/spansion.c
drivers/mtd/spi/winbond.c
include/configs/zynq_zc702.h

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: i2c: Disable restart in i2c read
Joe Hershberger [Tue, 28 Feb 2012 19:02:18 +0000 (13:02 -0600)] 
Xilinx: ARM: i2c: Disable restart in i2c read

It doesn't seem to work.  Hardware bug?

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: i2c: Add i2c driver for zynq
Joe Hershberger [Wed, 22 Feb 2012 19:46:12 +0000 (13:46 -0600)] 
Xilinx: ARM: i2c: Add i2c driver for zynq

I2C is needed on some boards for peripherial initialization

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: nand: Only trace that the NAND has on-die ECC if it claims to work
Joe Hershberger [Tue, 28 Feb 2012 01:32:18 +0000 (19:32 -0600)] 
Xilinx: ARM: nand: Only trace that the NAND has on-die ECC if it claims to work

The device should say that it is using the mode before we report it.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Clean up zynq board.c
Joe Hershberger [Thu, 23 Feb 2012 15:24:51 +0000 (09:24 -0600)] 
Xilinx: ARM: Clean up zynq board.c

Fix compile warnings
Make the NOR configuration optional (only if the board has NOR)

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Initialize MDIO early (and only once)
Joe Hershberger [Thu, 24 May 2012 22:14:46 +0000 (17:14 -0500)] 
Xilinx: ARM: net: Initialize MDIO early (and only once)

This allows the board init to read phy registers

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Fix rate of MDC for 111MHz CPU_1x clk
Joe Hershberger [Thu, 19 Apr 2012 19:27:05 +0000 (14:27 -0500)] 
Xilinx: ARM: net: Fix rate of MDC for 111MHz CPU_1x clk

Change the MDC divisor from 32 to 48

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Program the MAC address to hardware on boot
Joe Hershberger [Mon, 19 Mar 2012 23:18:26 +0000 (18:18 -0500)] 
Xilinx: ARM: net: Program the MAC address to hardware on boot

This will allow Linux to not make up a new MAC on each boot and never
keep the same IP address from boot to boot.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Print the phy id on init
Joe Hershberger [Tue, 28 Feb 2012 19:03:35 +0000 (13:03 -0600)] 
Xilinx: ARM: net: Print the phy id on init

This makes it clear if we can talk to the phy or not
(i.e. if the phy is out of reset or not)

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Only init xgmac data structures, not phy on boot
Joe Hershberger [Tue, 28 Feb 2012 01:31:09 +0000 (19:31 -0600)] 
Xilinx: ARM: net: Only init xgmac data structures, not phy on boot

This makes the boot faster in the case we don't want to actually use
Ethernet in u-boot

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Add xgmac support for the mii command
Joe Hershberger [Thu, 23 Feb 2012 16:08:07 +0000 (10:08 -0600)] 
Xilinx: ARM: net: Add xgmac support for the mii command

This allows the MII command to access phys connected to the xgmac

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Update xgmac driver to use the NET_MULTI API
Joe Hershberger [Thu, 23 Feb 2012 16:05:52 +0000 (10:05 -0600)] 
Xilinx: ARM: net: Update xgmac driver to use the NET_MULTI API

The NET_MULTI API is required in the upstream u-boot.
Get it closer to a state where it could live in the real world.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: net: Make phy address configurable
Joe Hershberger [Tue, 21 Feb 2012 23:37:29 +0000 (17:37 -0600)] 
Xilinx: ARM: net: Make phy address configurable

Other boards my have different phy addresses.  Make it configurable.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Add multiblock MMC read support
Joe Hershberger [Fri, 20 Apr 2012 21:56:13 +0000 (16:56 -0500)] 
Xilinx: ARM: Add multiblock MMC read support

Direct buffer DMA is currently broken.  I suspect an alignment requirement.
The latest u-boot upstream aligns the DOS partition and FAT fs buffers.
The intermediate DMA buffer is too small for most transfers.

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