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 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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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'.
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.
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.
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).
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.
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.
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
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.
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).
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.
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>