]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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: 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.

14 years agoXilinx: ARM: Added support for Dual Die NAND
Naveen Mamindlapalli [Fri, 24 Jun 2011 11:11:21 +0000 (16:41 +0530)] 
Xilinx: ARM: Added support for Dual Die NAND

Added support for detecting Dual Die NAND with OnDie ECC support.

Signed-Off-by: Naveen Mamindlapalli<naveenm@xilinx.com>
14 years agoXilinx: ARM: Increased malloc size
Naveen Mamindlapalli [Thu, 16 Jun 2011 13:44:29 +0000 (19:14 +0530)] 
Xilinx: ARM: Increased malloc size

Increased malloc size while testing Clear NAND flash.

Signed-Off-by: Naveen Mamindlapalli<naveenm@xilinx.com>
14 years agoXilinx: ARM: Added ClearNAND ECC support
Naveen Mamindlapalli [Fri, 3 Jun 2011 13:11:05 +0000 (18:41 +0530)] 
Xilinx: ARM: Added ClearNAND ECC support

14 years agoXilinx: ARM: Update modeboot to match Boot ROM (yet again)
Brian Hill [Tue, 21 Jun 2011 17:40:04 +0000 (11:40 -0600)] 
Xilinx: ARM: Update modeboot to match Boot ROM (yet again)

14 years agoXilinx: ARM: DT 614252 Set baudrate from command line.
Brian Hill [Fri, 17 Jun 2011 19:50:02 +0000 (13:50 -0600)] 
Xilinx: ARM: DT 614252 Set baudrate from command line.

14 years agoXilinx: ARM: Update modeboot to match the latest changes to Boot ROM
Brian Hill [Fri, 17 Jun 2011 18:51:57 +0000 (12:51 -0600)] 
Xilinx: ARM: Update modeboot to match the latest changes to Boot ROM

14 years agoXilinx: ARM: Adjust CONFIG_SYS_HZ to 1000.
Brian Hill [Tue, 24 May 2011 19:00:37 +0000 (13:00 -0600)] 
Xilinx: ARM: Adjust CONFIG_SYS_HZ to 1000.

Adjust CONFIG_SYS_HZ to 1000. Parts of the networking code assume that
the clock tick is natively expressed in milliseconds (and don't adjust
the values by using CONFIG_SYS_HZ).

14 years agoXilinx: ARM: Default baud rate set to 115200.
Brian Hill [Mon, 23 May 2011 16:08:29 +0000 (10:08 -0600)] 
Xilinx: ARM: Default baud rate set to 115200.

14 years agoXilinx: ARM: Correct timekeeping (DT 584643)
Brian Hill [Thu, 19 May 2011 20:24:55 +0000 (14:24 -0600)] 
Xilinx: ARM: Correct timekeeping (DT 584643)

14 years agoXilinx: U-boot: Added support for On-Die ECC
Naveen Mamindlapalli [Wed, 11 May 2011 15:07:53 +0000 (20:37 +0530)] 
Xilinx: U-boot: Added support for On-Die ECC

Added support for On-Die ECC supported by Micron flash.

Signed-off-by: Naveen Mamindlapalli<naveenm@xilinx.com>
14 years agoXilinx: ARM: Modify serial driver so that putc(\n) will actually output \r\n
Brian Hill [Tue, 10 May 2011 20:50:08 +0000 (14:50 -0600)] 
Xilinx: ARM: Modify serial driver so that putc(\n) will actually output \r\n

14 years agoXilinx: ARM: Update DDR initialization to PEEP11.
Brian Hill [Tue, 10 May 2011 18:52:44 +0000 (12:52 -0600)] 
Xilinx: ARM: Update DDR initialization to PEEP11.

14 years agoXilinx: ARM: Include EXT2 support in Pele build.
Brian Hill [Thu, 28 Apr 2011 21:37:42 +0000 (15:37 -0600)] 
Xilinx: ARM: Include EXT2 support in Pele build.

14 years agoXilinx: ARM: Make use of boot mode register possible with u-boot
Brian Hill [Tue, 26 Apr 2011 14:54:27 +0000 (08:54 -0600)] 
Xilinx: ARM: Make use of boot mode register possible with u-boot

The environment variable modeboot is set to something appropriate
based on the contents of the boot mode register.
EXAMPLE:
For bootmode 2, modeboot will be set to "run norboot".
This method of booting can be utilized via bootcmd = "run modeboot"
or not, if the user prefers that u-boot and the kernel come from
separate storage devices.

14 years agoXilinx: ARM: Update SD driver to handle MMC_RSP_R2 properly.
Brian Hill [Thu, 21 Apr 2011 15:34:46 +0000 (09:34 -0600)] 
Xilinx: ARM: Update SD driver to handle MMC_RSP_R2 properly.

 Update SD driver to handle MMC_RSP_R2 properly. 136 bit response was
 not being copied properly.  This prevented some SD cards from being
 detected correctly.

14 years agoXilinx: ARM: Update DDR initialization for peep10
Brian Hill [Tue, 5 Apr 2011 14:38:26 +0000 (08:38 -0600)] 
Xilinx: ARM: Update DDR initialization for peep10

14 years agoXilinx: ARM: Update to support PEEP 9 NOR flash changes.
Brian Hill [Thu, 31 Mar 2011 21:34:48 +0000 (15:34 -0600)] 
Xilinx: ARM: Update to support PEEP 9 NOR flash changes.

 NOR flash is now at 0xE2000000, not 0xE4000000.

14 years agoMerge /home/bhill/work/u-boot/u-boot-xarm
GIT Repo [Mon, 21 Mar 2011 22:15:20 +0000 (16:15 -0600)] 
Merge /home/bhill/work/u-boot/u-boot-xarm

14 years agoXilinx: ARM: Add QSPIx2 support
Brian Hill [Mon, 21 Mar 2011 15:04:55 +0000 (09:04 -0600)] 
Xilinx: ARM: Add QSPIx2 support

 Add QSPIx2 support.
 Note that update Boot ROM requred to boot from images programmed in this
 manner.

 (common) flash driver modifed to lie about total number of sectors, and
 to use 4 byte addressing for memories > 16MB.

14 years agoXilinx: ARM: Introduce Device Tree support.
Brian Hill [Thu, 10 Mar 2011 19:39:06 +0000 (12:39 -0700)] 
Xilinx: ARM: Introduce Device Tree support.

Add support for fdt and bootm commands.
Use of bootm requires a proper uImage, which may be built by:
mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n 'Linux' -d arch/arm/boot/Image uImage

EXAMPLE USAGE:

tftp 0x1000000 linux-2.6-xarm/arch/arm/boot/uImage
tftp 0x900000 arm-support/ramdisks/ramdisk8M-amp.image.gz
tftp 0x2000000 xilinx.dtb

fdt addr 0x2000000
fdt print

setenv bootargs console=ttyDF0,9600 root=/dev/ram rw initrd=0x900000,8M earlyprintk debug
fdt chosen

fdt list /chosen

bootm 0x1000000 - 0x2000000

The uImage CRC is verified, and it is copied to the load location.  The device
tree location is set in r2 for the kernel.

14 years agoXilinx: ARM: Add initial SecureDigital support.
Brian Hill [Thu, 9 Dec 2010 16:29:25 +0000 (09:29 -0700)] 
Xilinx: ARM: Add initial SecureDigital support.

Usage:
pele-boot> mmc rescan 0
pele-boot> fatls mmc 0
  3025088   vmlinux.bin
  1048576   ramdisk1m.image
  3145728   ramdisk3m.image
  7340032   ramdisk7m.test.image

4 file(s), 0 dir(s)

pele-boot> fatload mmc 0 0x8000 vmlinux.bin
pele-boot> fatload mmc 0 0x800000 ramdisk3m.image
pele-boot> go 0x8000

14 years agoMerge /home/linnj/u-boot/u-boot-xarm
GIT Repo [Mon, 31 Jan 2011 21:47:40 +0000 (14:47 -0700)] 
Merge /home/linnj/u-boot/u-boot-xarm

14 years agoXilinx: ARM: fixed resets on AXI fabric ports
John Linn [Mon, 31 Jan 2011 21:18:39 +0000 (14:18 -0700)] 
Xilinx: ARM: fixed resets on AXI fabric ports

All the resets were not being cleared such that AXI DMA was not
working under Linux. The boot rom clears them all also.

14 years agoXilinx: ARM: Initial QSPI support
Brian Hill [Fri, 28 Jan 2011 20:40:04 +0000 (13:40 -0700)] 
Xilinx: ARM: Initial QSPI support

Initial support of QSPI.  Driver ported directly from Linux - primary
operational change is the use of polling rather than interrupts.

Commands:
sf probe 0 0 0

sf erase <offset> <length>
Where <length> must exactly fall on a sector boundary (N25Q128 = 1k)

sf write <mem addr> <flash offset> <len>
sf read <mem addr> <flash offset> <len>

Common file
drivers/mtd/spi/stmicro.c
modified to recognized N25Q128 device.

Example session:
sf probe 0 0 0
sf erase 0x100000 0x140000
tftp 0x8000 vmlinux.bin
sf write 0x8000 0x100000 0x140000

sf read 0x800000 0x100000 0x140000

NOTE: Use of SF commands disables linear flash. QSPI not avalable at 0xFC000000
until again set up by boot ROM (post reset).

14 years agoXilinx: ARM: Added DDR initialization for PEEP8 with 256 MB
John Linn [Fri, 21 Jan 2011 15:56:57 +0000 (08:56 -0700)] 
Xilinx: ARM: Added DDR initialization for PEEP8 with 256 MB

Linux needs to test with more memory.  This will probably not run
with previous PEEP designs. Conditional compilation was added to
deal with that.

14 years agoXilinx: ARM: updated size of kernel in environment for NAND
John Linn [Sat, 11 Dec 2010 00:43:19 +0000 (17:43 -0700)] 
Xilinx: ARM: updated size of kernel in environment for NAND

The kernel was crashing because not all of it was being copied after
we added more drivers (USB).

15 years agoXilinx: ARM: changed back to NOR as default flash
John Linn [Thu, 2 Dec 2010 15:38:09 +0000 (08:38 -0700)] 
Xilinx: ARM: changed back to NOR as default flash

15 years agoMerge branch 'master' of /home/bhill/work/u-boot/u-boot-xarm
GIT Repo [Wed, 1 Dec 2010 23:29:52 +0000 (16:29 -0700)] 
Merge branch 'master' of /home/bhill/work/u-boot/u-boot-xarm

15 years agoXilinx: ARM: Add script xromhdr.pl to generate Xilinx Boot ROM Header.
Brian Hill [Wed, 1 Dec 2010 22:56:32 +0000 (15:56 -0700)] 
Xilinx: ARM: Add script xromhdr.pl to generate Xilinx Boot ROM Header.

EXAMPLE:
./xromhdr.pl build/u-boot.bin NOR
./xromhdr.pl build/u-boot.bin QSPI

15 years agoXilinx: ARM: NAND: Merge latest Linux NAND driver mods to u-boot.
Brian Hill [Wed, 1 Dec 2010 17:18:10 +0000 (10:18 -0700)] 
Xilinx: ARM: NAND: Merge latest Linux NAND driver mods to u-boot.

15 years agoXilinx: ARM: Updated NAND addresses for new partitions
John Linn [Tue, 30 Nov 2010 00:37:11 +0000 (17:37 -0700)] 
Xilinx: ARM: Updated NAND addresses for new partitions

Due to some issues with bad blocks, we decided to move the partitions
some so that the Nand boot env var needed to be updated.

15 years agoXilinx: ARM: Updating boot commands for all flash types
John Linn [Thu, 25 Nov 2010 00:06:58 +0000 (17:06 -0700)] 
Xilinx: ARM: Updating boot commands for all flash types

Now that NAND, QSPI and NOR are all working, the boot command is
less clear.

This commit adds environment vars norboot, nandboot, and qspiboot
which can be used with the run command (run <env var>) to boot
from any of the memories.

The default auto boot is still NOR.

15 years agoXilinx: ARM: Updated boot command to use QSPI
John Linn [Mon, 15 Nov 2010 19:46:32 +0000 (12:46 -0700)] 
Xilinx: ARM: Updated boot command to use QSPI

U-boot has to be built differently when it is to be written to
QSPI vs NOR flash. Since both use execute in place mode, the header
in u-boot has to have the address to jump to in flash for the boot
rom to use.

The boot command copies the kernel and root file system from flash
to ram and it has to know which addresses for flash (QSPI or NOR).

15 years agoXilinx: ARM: Provide a mechanism to specify the XIP header addres in xpele.h.
Brian Hill [Mon, 15 Nov 2010 17:37:05 +0000 (10:37 -0700)] 
Xilinx: ARM:  Provide a mechanism to specify the XIP header addres in xpele.h.

CONFIG_PELE_XIP_START in include/configs/xpele.h is used to specify the XIP
address in the boot rom flash header.

15 years agoXilinx: ARM: Update header expected by Xilinx boot ROM to launch u-boot.
Brian Hill [Fri, 12 Nov 2010 18:01:21 +0000 (11:01 -0700)] 
Xilinx: ARM: Update header expected by Xilinx boot ROM to launch u-boot.

15 years agoXilinx: ARM: reapply Xilinx Boot ROM XIP header; removed during v2010.9 update.
Brian Hill [Tue, 9 Nov 2010 17:50:14 +0000 (10:50 -0700)] 
Xilinx: ARM: reapply Xilinx Boot ROM XIP header; removed during v2010.9 update.

15 years agoMerge branch 'v2010.09' of /home/bhill/work/u-boot/u-boot into pele-peep6
Brian Hill [Mon, 8 Nov 2010 22:30:55 +0000 (15:30 -0700)] 
Merge branch 'v2010.09' of /home/bhill/work/u-boot/u-boot into pele-peep6

Conflicts:
Makefile
cpu/arm_cortexa8/start.S
cpu/arm_cortexa8/u-boot.lds

15 years agoXilinx: ARM: Add initial NAND flash support.
Brian Hill [Thu, 28 Oct 2010 19:42:50 +0000 (13:42 -0600)] 
Xilinx: ARM: Add initial NAND flash support.

Exmaple usage:
pele-boot> nand device 0
pele-boot> nand erase

pele-boot> tftpboot 0x8000 linux-2.6-xlnx/vmlinux.bin
nand write <mem> <flash offset> <bytes>
pele-boot> nand write 0x8000 0 0x2d2000

pele-boot> tftpboot 0x800000 ramdisk3M.image.gz
pele-boot> nand write 0x800000 0x500000 0xef000

nand read <mem> <flash offset> <bytes>
pele-boot> nand read 0x8000 0 0x2d2000
pele-boot> nand read 0x800000 0x500000 0xef000
pele-boot> go 0x8000

15 years agoPrepare v2010.09 v2010.09
Wolfgang Denk [Tue, 28 Sep 2010 21:20:55 +0000 (23:20 +0200)] 
Prepare v2010.09

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agompc512x: fix build issues
Wolfgang Denk [Tue, 28 Sep 2010 21:02:05 +0000 (23:02 +0200)] 
mpc512x: fix build issues

Commit 800eb0964 "POST cleanup." removed file
arch/powerpc/cpu/mpc512x/common.c but failed to remove the reference
to it from arch/powerpc/cpu/mpc512x/Makefile which causes somewhat
obscure build errors:

make[1]: *** No rule to make target `/work/wd/tmp-ppc/arch/powerpc/cpu/mpc512x/.depend', needed by `_depend'.  Stop.

Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoARMV7: OMAP3: Update Beagle xM pinmux with USB hub and DVI gpio setup
Steve Sakoman [Mon, 20 Sep 2010 16:55:24 +0000 (09:55 -0700)] 
ARMV7: OMAP3: Update Beagle xM pinmux with USB hub and DVI gpio setup

This patch adds missing pinmux setup for 4 GPIO signals used on the Beagle xM:
 - USB hub reset (gpio_56)
 - P8 USB hub reset (gpio_63)
 - DVI enable (gpio_129)
 - P8 DVI enable (gpio_170)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
15 years agoARMV7: OMAP4: Calculate SDRAM size
Aneesh V [Sun, 12 Sep 2010 05:02:55 +0000 (10:32 +0530)] 
ARMV7: OMAP4: Calculate SDRAM size

Calculate the SDRAM size from DMM configuration registers instead of using
hard-coded values. This gives correct values for all different boards.

It's assumed that DMM sections do not overlap memory areas.

Signed-off-by: Aneesh V <aneesh@ti.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
15 years agoARMV7: OMAP4: Fix Panda pinmux setting to enable Wifi/BT Module
Steve Sakoman [Wed, 22 Sep 2010 14:30:11 +0000 (07:30 -0700)] 
ARMV7: OMAP4: Fix Panda pinmux setting to enable Wifi/BT Module

This patch corrects the pinmux settings to enable proper functioning
of the wifi/bluetooth module.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
15 years agoixp/npe: Remove duplicated comment
Thomas Weber [Tue, 28 Sep 2010 12:03:32 +0000 (14:03 +0200)] 
ixp/npe: Remove duplicated comment

Signed-off-by: Thomas Weber <weber@corscience.de>
15 years agobmw: Remove duplicated include of header file
Thomas Weber [Tue, 28 Sep 2010 12:03:33 +0000 (14:03 +0200)] 
bmw: Remove duplicated include of header file

Signed-off-by: Thomas Weber <weber@corscience.de>
15 years agoREADME: Fix description of version numbering scheme
Thomas Weber [Tue, 28 Sep 2010 06:06:25 +0000 (08:06 +0200)] 
README: Fix description of version numbering scheme

The version numbering scheme was changed in Oct, 2008.
This patch brings the documentation to the actual level.
The description is taken from:
http://www.denx.de/wiki/U-Boot/ReleaseCycle

Signed-off-by: Thomas Weber <weber@corscience.de>
Changed text slightly.
Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoFix "ubi part" cmd re-entrancy
Karl Beldan [Thu, 23 Sep 2010 08:46:31 +0000 (10:46 +0200)] 
Fix "ubi part" cmd re-entrancy

Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command)
reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path.

Signed-off-by: Karl Beldan <karl.beldan@gmail.com>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Thu, 23 Sep 2010 19:16:32 +0000 (21:16 +0200)] 
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

15 years agoppc4xx/fdt/flash: Change fdt_fixup_nor_flash_node() to not rely on cs size
Stefan Roese [Thu, 16 Sep 2010 12:01:53 +0000 (14:01 +0200)] 
ppc4xx/fdt/flash: Change fdt_fixup_nor_flash_node() to not rely on cs size

This patch changes the behaviour of the fdt_fixup_nor_flash_node()
function. Now it doesn't patch the size of the "reg" property with the
chip-select size, but with the size returned from the new function
flash_get_bank_size(). This function will return per weak default the
flash size of the bank (bank = chip-select numer) detected by the flash
driver. If this does not fit your needs, this function may be overridden
by a board specific one.

For this the parameters needed to be changed. So I intentionally squashed
the PPC4xx stuff using this routine into this patch. Otherwise it would
not be git-bisectable anymore.

The board specific function for the AMCC/APM Ebony eval board is now
included in this patch version.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Detlev Zundel <dzu@denx.de>
Cc: Gerald Van Baren <vanbaren@cideas.com>
Cc: Wolfgang Denk <wd@denx.de>
15 years agoppc4xx: POST UART: Use in/out_8() io-accessor functions
Stefan Roese [Tue, 14 Sep 2010 07:38:18 +0000 (09:38 +0200)] 
ppc4xx: POST UART: Use in/out_8() io-accessor functions

This patch fixes a problem in the PPC4xx POST UART driver. This driver
incorrectly used the in/out8() io-accessor functions. This could lead to
problems since these functions don't guarantee execution ordering. This
patch now replaces these functions with the correct ones.

Additionally the driver is converted to using the NS16550 struct instead
of macros for the register offsets.

And some common code is factored out for better maintainability.

Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoppc4xx: Fix CATcenter build
Stefan Roese [Fri, 10 Sep 2010 14:29:37 +0000 (16:29 +0200)] 
ppc4xx: Fix CATcenter build

Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Wed, 22 Sep 2010 20:37:49 +0000 (22:37 +0200)] 
Merge branch 'master' of git://git.denx.de/u-boot-video

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 22 Sep 2010 20:36:42 +0000 (22:36 +0200)] 
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

15 years agoMerge branch 'master' of /home/wd/git/u-boot/master
Wolfgang Denk [Wed, 22 Sep 2010 20:35:44 +0000 (22:35 +0200)] 
Merge branch 'master' of /home/wd/git/u-boot/master

15 years agoBlackfin: bfin_spi: use same gpio cs define as Linux
Mike Frysinger [Mon, 20 Sep 2010 21:54:09 +0000 (17:54 -0400)] 
Blackfin: bfin_spi: use same gpio cs define as Linux

Linux uses an offset of 8 to switch from hardware cs to a gpio cs,
so have u-boot use the same value.  Also make sure it is public
for boards to access.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: update some missed board config.mk files
Mike Frysinger [Mon, 20 Sep 2010 18:17:39 +0000 (14:17 -0400)] 
Blackfin: update some missed board config.mk files

Seems these two files were missed during the big lib shuffle.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agovideo: cfb_console: fix definition and usage of CURSOR_xxx macros
Timur Tabi [Fri, 27 Aug 2010 20:45:47 +0000 (15:45 -0500)] 
video: cfb_console: fix definition and usage of CURSOR_xxx macros

The CURSOR_ON, CURSOR_OFF, and CURSOR_SET macros are defined incorrectly.  If
cursor support is disabled, then these macros are defined to nothing, but
then they are used like this:

if (console_col < CONSOLE_COLS)
CURSOR_OFF
console_row++;

which was compiled like this:

if (console_col < CONSOLE_COLS)
console_row++;

This is obviously not what was intended.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
15 years agoPOST cleanup.
Michael Zaidman [Mon, 20 Sep 2010 06:51:53 +0000 (08:51 +0200)] 
POST cleanup.

- Revives POST for blackfin arch;
- Removes redundant code:
     arch/blackfin/lib/post.c
     arch/powerpc/cpu/ppc4xx/commproc.c
     arch/powerpc/cpu/mpc512x/common.c
- fixes up the post_word_{load|store} usage.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
List of the maintainers of the affected by patch boards:
Cc: Stephan Linz <linz@li-pro.net>
Cc: Denis Peter <d.peter@mpl.ch>
Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Niklaus Giger <niklaus.giger@netstal.com>
Cc: Larry Johnson <lrj@acm.org>
Cc: Feng Kan <fkan@amcc.com>
15 years agocmd_mmc: use common usage function
Mike Frysinger [Thu, 29 Jul 2010 17:40:43 +0000 (13:40 -0400)] 
cmd_mmc: use common usage function

Rather than using a custom "Usage:", use the common cmd_usage() function,
and tail into it now that it returns 1 for us.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agosetlocalversion: add some more fallbacks for git describe
Mike Frysinger [Mon, 20 Sep 2010 18:36:18 +0000 (14:36 -0400)] 
setlocalversion: add some more fallbacks for git describe

If working out of a custom git tree that lacks annotated tags, the
'git describe' operation spews "fatal: cannot describe" errors all
over the place.  So add some fallback code in case the best naming
was unable to locate something useful.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoMerge branch 'master' of /home/wd/git/u-boot/master
Wolfgang Denk [Tue, 21 Sep 2010 07:34:16 +0000 (09:34 +0200)] 
Merge branch 'master' of /home/wd/git/u-boot/master

15 years agoPrepare v2010.09-rc2 v2010.09-rc2
Wolfgang Denk [Sun, 19 Sep 2010 15:47:52 +0000 (17:47 +0200)] 
Prepare v2010.09-rc2

Signed-off-by: Wolfgang Denk <wd@denx.de>