Xilinx: ARM: sf: stmicro: Support for numonyx ID table
This patch resolved the conflict between Numonyx and
Micron based flash devices. Added two bytes instead of
one byte for full device ID detection through idcode member.
Now JEDEC standard two-byte signature is used for id detection.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: drop XILINX_PSS_QSPI_USE_DUAL_FLASH references for zynq
Now the dual qspi flash memory detection is done at runtime
based on the MIO's configurations.
So there is no much point to check this macro on zynq qspi and
board code hence removed the references.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: winbond: Update the flash memory size at runtime
This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: stmicro: Update the flash memory size at runtime
This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: spansion: Update the flash memory size at runtime
This patch adds support to update the flash memory size based on
the runtime detection of dual qspi flash.
So removed the conditional compilation for dual qspi flash.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: winbond: Add support to program using dual qspi
This patch enables programming of winbond flash devices
using dual qspi. winbond flash driver is updated to detect
the size of the flash based on the board header macro.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: Removed DDR init code in low level initialization
Initialization of DDR is added to support XIP case in u-boot.
As this code should be generated by tools based on DDR used on board.
Hence, removed the references.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: spansion: Add support to program using dual qspi
This patch enables programming of spansion flash devices
using dual qspi. spansion flash driver is updated to detect
the size of the flash based on the board header macro.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: sf: stmicro: Add support to program using dual qspi
This patch enables programming of stmicro flash devices
using dual qspi. stmicro flash driver is updated to detect
the size of the flash based on the board header macro.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Xilinx: ARM: punt unused clean/distclean targets on board
The top level Makefile does not do any recursion into subdirs when
cleaning, so these clean/distclean targets in random arch or board
directories never get used.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Shawn Guo [Mon, 9 Jan 2012 21:54:08 +0000 (21:54 +0000)]
common/image.c: align usage of fdt_high with initrd_high
The commit message of a28afca (Add uboot "fdt_high" enviroment variable)
states that fdt_high behaves similarly to the existing initrd_high.
But fdt_high actually has an outstanding difference from initrd_high.
The former specifies the start address, while the later specifies the
end address.
As fdt_high and initrd_high will likely be used together, it'd be nice
to have them behave same. The patch changes the behavior of fdt_high
to have it aligned with initrd_high.
The document of fdt_high in README is updated with an example to
demonstrate the usage of this environment variable.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Simon Glass <sjg@chromium.org>
John Linn [Wed, 1 Aug 2012 23:46:07 +0000 (16:46 -0700)]
Xilinx: ARM: update upper memory limit for dt and ramdisk
By default u-boot will try to load the device tree and
the ramdisk into high memory. This sets up the limits
to reserve some high memory (above 512MB) so that the
items are not loaded higher than that.
The Xilinx TRD uses video memory up high for one example
and if these items are loaded up high the Linux kernel
would not be able to access it.
Xilinx: ARM: Removed device tree booting dependency on CONFIG_SYS_BOOTMAPSZ
boot_relocate_fdt() has been changed to support relocation
for device tree memory. so CONFIG_SYS_BOOTMAPSZ is not required
to hotcode the device tree address and on other wards it's not useful
incase of relocating fdt.
David A. Long [Fri, 13 Jul 2012 08:22:45 +0000 (13:52 +0530)]
Add a new "fdt_high" enviroment variable. This can be used to control (or prevent) the
relocation of the flattened device tree on boot. It can be used to prevent relocation
of the fdt into highmem. The variable behaves similarly to the existing "initrd_high"
variable.
Signed-off-by: David A. Long <dave.long at linaro.org>
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>
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>
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>
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>
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>
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.
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.
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.
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>
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>
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.
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.
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>
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>
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>