]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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>
13 years agoXilinx: ARM: Fix mmcinfo hang if booted from SD
Joe Hershberger [Thu, 19 Apr 2012 20:05:24 +0000 (15:05 -0500)] 
Xilinx: ARM: Fix mmcinfo hang if booted from SD

Include the same check that was added to the FSBL

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix build warnings in mmc.c
Joe Hershberger [Wed, 21 Mar 2012 22:04:23 +0000 (17:04 -0500)] 
Xilinx: ARM: Fix build warnings in mmc.c

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Decreased bootdelay from 10 to 3 sec on zc702
Jagan [Tue, 15 May 2012 14:46:18 +0000 (20:16 +0530)] 
Xilinx: ARM: Decreased bootdelay from 10 to 3 sec on zc702

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Removed unneeded ping from bootmodes on zc702
Jagan [Tue, 15 May 2012 14:43:48 +0000 (20:13 +0530)] 
Xilinx: ARM: Removed unneeded ping from bootmodes on zc702

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: Renamed u-boot prompt from pele to zynq on zc702
Jagan [Tue, 15 May 2012 14:41:56 +0000 (20:11 +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 zc702
Jagan [Tue, 15 May 2012 12:54:52 +0000 (18:24 +0530)] 
Xilinx: ARM: Removed unneeded IDENT_STRING on zc702

This patch is a part of cleanup activity.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Adding Winbond(W25Q64DW) x2 QSPI support.
Jagan [Fri, 4 May 2012 07:24:47 +0000 (12:54 +0530)] 
Xilinx: ARM: Adding Winbond(W25Q64DW) x2 QSPI support.

This patch adds a support for W25Q64DW with x2 device.
for building x2 QSPI, please uncomment
CONFIG_XILINX_PSS_QSPI_USE_DUAL_FLASH on include/configs/xpele.h.
I was recommended to use Winbond in dual mode, as it's flash size
is less compared to remaining QSPI's

This was tested on the ep107-2 board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Making Dual QSPI as default for zc770 XM013 boards
Jagan [Thu, 3 May 2012 12:35:22 +0000 (18:05 +0530)] 
Xilinx: ARM: Making Dual QSPI as default for zc770 XM013 boards

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: fixing USB PHY hack
John Linn [Wed, 2 May 2012 20:35:32 +0000 (13:35 -0700)] 
Xilinx: ARM: fixing USB PHY hack

The driver team has recommended this reset change
to make USB behave better based on OTG testing.

13 years agoXilinx: ARM: Adding minimal board support for zc770 XM013
Jagan [Mon, 16 Apr 2012 11:04:58 +0000 (16:34 +0530)] 
Xilinx: ARM: Adding minimal board support for zc770 XM013

New configuration file is added for XM013,by keeping
XM010 configs as it is.

Tested on zc770-21, -34 boards.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Enabled all QSPI driver's
Jagan [Wed, 11 Apr 2012 09:28:17 +0000 (14:58 +0530)] 
Xilinx: ARM: Enabled all QSPI driver's

This patch enables STMICRO, WINBOND and SPANSION
QSPI's by default.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Adding Spansion(S25FL129P) x2 QSPI support.
Jagan [Wed, 11 Apr 2012 09:20:55 +0000 (14:50 +0530)] 
Xilinx: ARM: Adding Spansion(S25FL129P) x2 QSPI support.

This patch adds a support for S25FL129P with x2 device.
for building x2 QSPI, please uncomment
CONFIG_XILINX_PSS_QSPI_USE_DUAL_FLASH on include/configs/xpele.h

This was tested on the ep107-11 board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Adding Spansion(S25FL129P) QSPI support.
Jagan [Wed, 11 Apr 2012 09:43:41 +0000 (15:13 +0530)] 
Xilinx: ARM: Adding Spansion(S25FL129P) QSPI support.

This patch adds a support for S25FL129P with x1 device.
This was tested on the ep107-11 board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: Adding Winbond(W25Q64DW) QSPI support.
Jagan [Wed, 11 Apr 2012 09:38:27 +0000 (15:08 +0530)] 
Xilinx: ARM: Adding Winbond(W25Q64DW) QSPI support.

This patch adds a support for W25Q64DW with x1 device.
This was tested on the ep107-2 board.

Signed-off-by: Jagan <jaganna@xilinx.com>
13 years agoXilinx: ARM: add cse flash support for Xilinx tools
Jun Flores JR [Tue, 10 Apr 2012 20:27:28 +0000 (13:27 -0700)] 
Xilinx: ARM: add cse flash support for Xilinx tools

This updates the top-level make file to add zynq_cseflash_config
target.  This is needed to support QSPI programming from the
Xilinx tools.

A new header file, zynq_cseflash.h, is also added so
that u-boot can be configured to build using the
zynq_cseflash_config target.

13 years agoXilinx: ARM: Disable flash in zc702 config
Joe Hershberger [Wed, 21 Mar 2012 20:17:14 +0000 (15:17 -0500)] 
Xilinx: ARM: Disable flash in zc702 config

zc702 has no NOR flash, so it must be disabled to boot.
The header is not needed when booting with the FSBL, so disable it.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Move CONFIG_SYS_NO_FLASH in zynq configs
Joe Hershberger [Wed, 21 Mar 2012 20:13:25 +0000 (15:13 -0500)] 
Xilinx: ARM: Move CONFIG_SYS_NO_FLASH in zynq configs

CONFIG_SYS_NO_FLASH must be defined before you include
config_cmd_default.h so that CMD_IMLS will not be defined

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Report a more helpful error on undefined header entry
Joe Hershberger [Wed, 21 Mar 2012 20:10:29 +0000 (15:10 -0500)] 
Xilinx: ARM: Report a more helpful error on undefined header entry

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Update NAND driver to match nand_scan_ident()
Joe Hershberger [Wed, 21 Mar 2012 18:47:18 +0000 (13:47 -0500)] 
Xilinx: ARM: Update NAND driver to match nand_scan_ident()

nand_scan_ident() has been updated to match Linux...
Remove special case.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Only build the NAND controller driver if NAND is enabled
Joe Hershberger [Wed, 21 Mar 2012 00:35:07 +0000 (19:35 -0500)] 
Xilinx: ARM: Only build the NAND controller driver if NAND is enabled

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix memory corruption bug in pele timer_init
Joe Hershberger [Tue, 20 Mar 2012 22:38:48 +0000 (17:38 -0500)] 
Xilinx: ARM: Fix memory corruption bug in pele timer_init

Global variables (.bss) must not be accessed before relocation.
That memory is now overlayed with the .rel.dyn ELF relocation table.
Even if that was allowed, it would have no positive effect since
initialized value would not be relocated into RAM.  It would be 0
again.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Define CONFIG_SYS_BOOTMAPSZ to enable fdt relocation
Joe Hershberger [Tue, 20 Mar 2012 23:14:10 +0000 (18:14 -0500)] 
Xilinx: ARM: Define CONFIG_SYS_BOOTMAPSZ to enable fdt relocation

This is needed until the fdt_high command is included (v2011.09)

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: INIT_SP is now needed before relocation
Joe Hershberger [Tue, 20 Mar 2012 23:19:37 +0000 (18:19 -0500)] 
Xilinx: ARM: INIT_SP is now needed before relocation

Define the offset and size of the INIT_RAM.
Base the INIT_SP on the INIT_RAM and reference the generated
GBL_DATA_SIZE.
Remove the explicit definition of the CONFIG_SYS_GBL_DATA_SIZE.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: TEXT_BASE was renamed CONFIG_SYS_TEXT_BASE
Joe Hershberger [Tue, 20 Mar 2012 23:05:46 +0000 (18:05 -0500)] 
Xilinx: ARM: TEXT_BASE was renamed CONFIG_SYS_TEXT_BASE

The TEXT_BASE belongs in the config headers for the boards

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Remove redundant do_reset()
Joe Hershberger [Tue, 20 Mar 2012 23:04:04 +0000 (18:04 -0500)] 
Xilinx: ARM: Remove redundant do_reset()

do_reset() implementation was unified and is no longer needed here

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Fix crash when accessing uninit'd ptr
Joe Hershberger [Tue, 20 Mar 2012 23:01:48 +0000 (18:01 -0500)] 
Xilinx: ARM: Fix crash when accessing uninit'd ptr

The gd->bd pointer is no longer available in dram_init()

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Update to new build process
Joe Hershberger [Tue, 20 Mar 2012 23:00:13 +0000 (18:00 -0500)] 
Xilinx: ARM: Update to new build process

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoXilinx: ARM: Remove zynq boards from Makefile
Joe Hershberger [Wed, 21 Mar 2012 18:07:57 +0000 (13:07 -0500)] 
Xilinx: ARM: Remove zynq boards from Makefile

Board definitions belong in boards.cfg, not in Makefile

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoMerge commit 'v2011.03' into xpele-upgrade-v2011.03
Joe Hershberger [Wed, 21 Mar 2012 18:04:49 +0000 (13:04 -0500)] 
Merge commit 'v2011.03' into xpele-upgrade-v2011.03

Conflicts:
arch/arm/lib/bootm.c
boards.cfg
drivers/mtd/cfi_flash.c
drivers/mtd/nand/nand_base.c

13 years agoMerge branch 'master-zc770'
John Linn [Mon, 5 Mar 2012 05:21:02 +0000 (21:21 -0800)] 
Merge branch 'master-zc770'

13 years agoXilinx: ARM: Adding more zynq board support
John Linn [Mon, 5 Mar 2012 02:04:45 +0000 (18:04 -0800)] 
Xilinx: ARM: Adding more zynq board support

New board configurations are needed to allow EP107 to
not be broken, and to allow each board to be configured
differently.

zynq_zc770_config and zynq_zc702_config are now new
make targets.

13 years agoXilinx: ARM: fix low level to include correct header file
John Linn [Mon, 5 Mar 2012 02:00:34 +0000 (18:00 -0800)] 
Xilinx: ARM: fix low level to include correct header file

The previous fix, including xpele.h, worked for EP107, but
doesn't work once there are more configuation header files
other than xpele.h.  This now works for new ones also.

13 years agoXilinx: ARM: fix NAND for EP107 and make EP107 the default build
John Linn [Sun, 4 Mar 2012 07:17:18 +0000 (23:17 -0800)] 
Xilinx: ARM: fix NAND for EP107 and make EP107 the default build

NAND was not being built for EP107. A new header file will
be added for Zynq so that xpele.h will remain for EP107.

13 years agoXilinx: ARM: fix EP107 XIP booting
John Linn [Sun, 4 Mar 2012 07:15:49 +0000 (23:15 -0800)] 
Xilinx: ARM: fix EP107 XIP booting

This fixes XIP (NOR and QSPI) booting. This problem
was caused by Zynq silicon integration.

13 years agoMerge branch 'master-zc770' of /home/linnj/sivlinnj/u-boot-xarm into master-zc770
GIT Repo [Wed, 18 Jan 2012 02:40:52 +0000 (18:40 -0800)] 
Merge branch 'master-zc770' of /home/linnj/sivlinnj/u-boot-xarm into master-zc770

13 years agoXilinx: ARM: prevent 1 Gb with GEM for now
John Linn [Wed, 18 Jan 2012 02:39:09 +0000 (18:39 -0800)] 
Xilinx: ARM: prevent 1 Gb with GEM for now

This commit is intended to be reverted once all the boards
are patched so that Gb works.  Until then, stay at 100 Mb.

This allowed the previous work to be checked in so that it's
ready.

13 years agoXilinx: ARM: Updated ethernet driver for EP107.
Andrei Simion [Thu, 12 Jan 2012 00:05:37 +0000 (16:05 -0800)] 
Xilinx: ARM: Updated ethernet driver for EP107.

On EP107, U-boot can now communicate over ethernet at 10 and 100 Mbps.

13 years agoXilinx: ARM: Clean-up of ethernet code.
Andrei Simion [Thu, 22 Dec 2011 23:04:24 +0000 (15:04 -0800)] 
Xilinx: ARM: Clean-up of ethernet code.

MAC/PHY driver has been cleaned up and commented thoroughly. Uneeded
code has been removed.

13 years agoXilinx: ARM: Update for gigabit ethernet support.
Andrei Simion [Thu, 22 Dec 2011 22:07:27 +0000 (14:07 -0800)] 
Xilinx: ARM: Update for gigabit ethernet support.

The PHY driver has been updated to establish a link at the highest
speed possible. The GEM divisors are modified to create an input
frequency that matches the link speed:
   2.5MHz for 10Mbps
   25MHz for 100Mbps
   125MHz for 1000Mbps

Error checking has also been included to prevent auto-negotiation
from stalling and for catching failed auto-negotiation attempts.

13 years agoMerge branch 'master-zc770' of /home/linnj/sivlinnj/u-boot-xarm into master-zc770
GIT Repo [Tue, 17 Jan 2012 22:15:49 +0000 (14:15 -0800)] 
Merge branch 'master-zc770' of /home/linnj/sivlinnj/u-boot-xarm into master-zc770

13 years agoXilinx: ARM: adding jtag boot mode
John Linn [Tue, 17 Jan 2012 22:12:50 +0000 (14:12 -0800)] 
Xilinx: ARM: adding jtag boot mode

To make it easier for developers in jtag mode, make it
automatically TFTP a kernel into memory and start it.

13 years agoXilinx: ARM: Stop GCC from generating unaligned accesses
John Linn [Fri, 6 Jan 2012 03:19:42 +0000 (19:19 -0800)] 
Xilinx: ARM: Stop GCC from generating unaligned accesses

With the newer GNU tools, GCC 4.5.2 and newer, we're
seeing data aborts. This solution may not be the right
long term solution, but works for now. This causes GCC
not to generate unaligned data.

13 years agoXilinx: ARM: Stop GCC from generating unaligned accesses
John Linn [Fri, 6 Jan 2012 03:19:42 +0000 (19:19 -0800)] 
Xilinx: ARM: Stop GCC from generating unaligned accesses

With the newer GNU tools, GCC 4.5.2 and newer, we're
seeing data aborts. This solution may not be the right
long term solution, but works for now. This causes GCC
not to generate unaligned data.

13 years agoXilinx: ARM: Stop GCC from generating unaligned accesses
John Linn [Fri, 6 Jan 2012 03:19:42 +0000 (19:19 -0800)] 
Xilinx: ARM: Stop GCC from generating unaligned accesses

With the newer GNU tools, GCC 4.5.2 and newer, we're
seeing data aborts. This solution may not be the right
long term solution, but works for now. This causes GCC
not to generate unaligned data.

13 years agoXilinx: ARM: Adding board support for FMC daughter cards
John Linn [Tue, 20 Dec 2011 19:16:44 +0000 (11:16 -0800)] 
Xilinx: ARM: Adding board support for FMC daughter cards

The NAND working caused u-boot to lockup when there was
no NAND so now there's CONFIGs for each board permutation
of the ZC770. The default is for DC1 (XM010) card.

13 years agoXilinx: ARM: NAND: wait for device ready after device reset
John Linn [Mon, 19 Dec 2011 20:35:55 +0000 (12:35 -0800)] 
Xilinx: ARM: NAND: wait for device ready after device reset

When moving from PEEP to Zynq, the ID of the flash was not
being read at all, only zeroes. The driver was not waiting
for the device to be ready after resetting the device and
since Zynq is so much faster it was a problem.

13 years agoXilinx: ARM: adding SD boot mode
John Linn [Tue, 13 Dec 2011 20:58:04 +0000 (12:58 -0800)] 
Xilinx: ARM: adding SD boot mode

SD boot was not supported in the automatic boot mode, now
it is. Even though this loads a ramdisk you can just ignore
the ramdisk if the root file system is on SD in an EXT2
file system.

13 years agoXilinx: ARM: SD: change divisor to speed it up
John Linn [Tue, 13 Dec 2011 20:55:56 +0000 (12:55 -0800)] 
Xilinx: ARM: SD: change divisor to speed it up

In the former change, a divisor too low seems cause problems
with the lower speed cards. This is attempt to have something
that's tolerable even if it's not the optimal.

This allows the kernel and ramdisk to be loaded reasonably
quickly.

13 years agoRevert "Xilinx: ARM: SD: speed up SD by removing the clock divide"
John Linn [Tue, 13 Dec 2011 17:43:58 +0000 (09:43 -0800)] 
Revert "Xilinx: ARM: SD: speed up SD by removing the clock divide"

This reverts commit a0d4d7e736ac3fc721ea59a54e3d4c94c3853a2a.

13 years agoXilinx: ARM: BSP: adding hack to take USB out of reset
John Linn [Tue, 13 Dec 2011 16:25:40 +0000 (08:25 -0800)] 
Xilinx: ARM: BSP: adding hack to take USB out of reset

Temporary hack to take USB out of reset til Linux is fixed.

13 years agoXilinx: ARM: SD: speed up SD by removing the clock divide
John Linn [Tue, 13 Dec 2011 16:20:36 +0000 (08:20 -0800)] 
Xilinx: ARM: SD: speed up SD by removing the clock divide

It's not clear why it was was running so slow, but maybe
it was needed for EP107. Speed it up now.

14 years agoXilinx: ARM: adding ping to qspi boot mode
John Linn [Wed, 7 Dec 2011 23:41:00 +0000 (15:41 -0800)] 
Xilinx: ARM: adding ping to qspi boot mode

This is a hack to compensate for Linux not having the PHY updated
yet as u-boot needs to touch the PHY for Linux networking to work.

14 years agoXilinx: ARM: making u-boot match FSBL for zc770
John Linn [Sun, 4 Dec 2011 14:59:09 +0000 (06:59 -0800)] 
Xilinx: ARM: making u-boot match FSBL for zc770

This should allow u-boot to be built for the zc770 and
work with the default FSBL which setups up the DDR, PLLs,
and MIO for 800 MHz CPU, 533 MHz DDR.

UART and Ethernet are working at this point.

14 years agoXilinx: ARM: adding header file for compile error
John Linn [Fri, 2 Dec 2011 00:51:44 +0000 (16:51 -0800)] 
Xilinx: ARM: adding header file for compile error

This header file was needed for the commit (a ways back)
that added PLL init to the board.c file.

14 years agoXilinx: ARM: GEM: updated to work with ZC770 and DC1
John Linn [Wed, 30 Nov 2011 01:36:25 +0000 (17:36 -0800)] 
Xilinx: ARM: GEM: updated to work with ZC770 and DC1

Only minor changes to GEM assuming MIO and IO PL are
setup somewhere else (FSBL or a script).

The DC1 PHY needs some help to work on the ZC770 and
that was added.

Since Zynq is much faster than EP107, removed some of
the printing of "." which was too much.

14 years agoXilinx: ARM: BSP: updated default to build for ZC770/DC1
John Linn [Wed, 30 Nov 2011 01:15:21 +0000 (17:15 -0800)] 
Xilinx: ARM: BSP: updated default to build for ZC770/DC1

The EP107 is now not the default build.

14 years agoXilinx: ARM: BSP: remove DDR init for zc770
John Linn [Wed, 30 Nov 2011 01:12:27 +0000 (17:12 -0800)] 
Xilinx: ARM: BSP: remove DDR init for zc770

This should not be needed as FSBL will be doing it. The DDR init
was causing a hang and was not needed anyway.

14 years agoXilinx: ARM: GEM driver cleanup of I/O functions
John Linn [Wed, 30 Nov 2011 00:54:52 +0000 (16:54 -0800)] 
Xilinx: ARM: GEM driver cleanup of I/O functions

The memory barriers appeared to be wrong, this moves the
barriers to be correct.

14 years agoXilinx: ARM: update uart clock input for ZC770/DC1GEM testing
John Linn [Wed, 30 Nov 2011 00:51:42 +0000 (16:51 -0800)] 
Xilinx: ARM: update uart clock input for ZC770/DC1GEM testing

The 100 Mb mode needs a 25 MHz clock input so this was needed
for this testing.

14 years agoXilinx: ARM: Hack for doing MIO and IO PLL for GEM testing
John Linn [Wed, 30 Nov 2011 00:48:45 +0000 (16:48 -0800)] 
Xilinx: ARM: Hack for doing MIO and IO PLL for GEM testing

This should not live on and is only temporary til FSBL is
working.

14 years agoRevert "Xilinx: ARM: GEM PHY address update for silicon."
GIT Repo [Mon, 21 Nov 2011 22:39:07 +0000 (14:39 -0800)] 
Revert "Xilinx: ARM: GEM PHY address update for silicon."

This reverts commit 90a036349c6ad4e69fd9c3b7cce19c037eefbd48.

The new board has only 2 choices for PHY addresses, 0x7 and
0x17 which are based on the jumpers. 0x17 was what was being
used on EP107 so assuming we set the jumpers we shouldn't
need this change which would not have worked (0x16 phy addr).

14 years agoXilinx: ARM: Use different xparameters for silicon and EP107.
Andrei Simion [Wed, 16 Nov 2011 19:34:21 +0000 (11:34 -0800)] 
Xilinx: ARM: Use different xparameters for silicon and EP107.

If CONFIG_EP107 is defined, include 'xparameters.h' and 'xparameters_pss.h',
otherwise include 'xparameters_zynq.h' and 'xparameters_pss_zynq.h'.

The Zynq variants of xparameters are subject to change. For now, the
only difference is XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ is
216664500 Hz instead of 12500000 Hz and XPAR_XUARTPSS_1_CLOCK_HZ is
13756480 Hz instead of 50000000 Hz to reflect silicon.

14 years agoXilinx: ARM: No config environment in NOR flash for silicon.
Andrei Simion [Wed, 16 Nov 2011 00:48:15 +0000 (16:48 -0800)] 
Xilinx: ARM: No config environment in NOR flash for silicon.

U-boot's configuration environment will reside in NOR flash only if
CONFIG_EP107 is defined.

14 years agoXilinx: ARM: GEM PHY address update for silicon.
Andrei Simion [Tue, 15 Nov 2011 23:55:36 +0000 (15:55 -0800)] 
Xilinx: ARM: GEM PHY address update for silicon.

GEM update to use a PHY address of 0x17 if CONFIG_EP107 is defined,
0x10 otherwise (for ZC770).

14 years agoXilinx: ARM: SCU timer input frequency update.
Andrei Simion [Thu, 10 Nov 2011 03:29:19 +0000 (19:29 -0800)] 
Xilinx: ARM: SCU timer input frequency update.

Modified the 'xpele.h' configuration such that the timer input
frequency is always half of the CPU core clock frequency from
'xparameters.h' (PERIPHCLK in the TRM) instead of hard-coded
to 5 MHz.

14 years agoXilinx: ARM: QSPI update to use single device.
Andrei Simion [Wed, 9 Nov 2011 23:26:52 +0000 (15:26 -0800)] 
Xilinx: ARM: QSPI update to use single device.

Modified the xpele config header to use single device for QSPI
instead of dual.

14 years agoXilinx: ARM: Use UART1 for silicon.
Andrei Simion [Wed, 9 Nov 2011 02:23:45 +0000 (18:23 -0800)] 
Xilinx: ARM: Use UART1 for silicon.

'xpele.h' configuration header updated so that U-boot uses UART1 if
CONFIG_ZYNQ is defined, UART0 otherwise (conditional compilation).

14 years agoXilinx: ARM: Flexible baud rate calculation.
Andrei Simion [Wed, 9 Nov 2011 02:16:51 +0000 (18:16 -0800)] 
Xilinx: ARM: Flexible baud rate calculation.

Values used in U-boot's baud rate calculation are chosen in such
a way to keep the error between the target and calculated baud
rate under 3%.

The header was changed to avoid hardcoding values such as the ones
used in the baud rate calculation. The UART input frequency uses
the value defined in 'xparameters.h'.

14 years agoXilinx: ARM: Changed environment to load device trees
John Linn [Fri, 23 Sep 2011 18:05:11 +0000 (12:05 -0600)] 
Xilinx: ARM: Changed environment to load device trees

The Linux kernel is now defaulting to device tree mode such
that a device tree blob is to be loaded into memory when
loading Linux from each of the flash memory types.

This only changed the commands in the environment for
each flash to also load the device tree blob.

I found that the commands can get too long such that
u-boot gives an error so they are not as verbose as
previously.

14 years agoXilinx: ARM: SD: reset interrupt status after operation
John Linn [Mon, 25 Jul 2011 21:05:46 +0000 (15:05 -0600)] 
Xilinx: ARM: SD: reset interrupt status after operation

The interrupt status of the SD was not being cleared after the
operation was completed which was causing problems for other
applications that were loaded.

14 years agoXilinx: ARM: Support new boot rom header.
Brian Hill [Fri, 1 Jul 2011 16:51:11 +0000 (10:51 -0600)] 
Xilinx: ARM: Support new boot rom header.