Commit Graph

31 Commits

Author SHA1 Message Date
Sourav Poddar f2dcae2f9e configs: dra7_evm: Resize qspi uboot and kernel partition size
Resize the uboot to 1 MB, as that will be sufficient.
Increase the kernel size from 5MB to 8MB, as android kernel build images
are more than 5MB.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-02-10 15:43:13 -05:00
Pekon Gupta 81cd7dba60 configs: dra7_evm: fix NAND.u-boot-spl-os partition size
NAND.u-boot-spl-os partition is sized for 2 x NAND_BLOCK_SIZE, so that
in future it can:
 - split into redundant partitions "u-boot-spl-os" and "u-boot-spl-os.backup1"
 - store large DTB(s)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-06 12:02:03 -05:00
Pekon Gupta dfc47eb54a configs: dra7xx_evm: match NAND MTD partition table with linux-kernel
- update NAND partition offsets and relevant CONFIG_xx
 - prefix NAND partition names with "NAND."

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-04 09:00:26 -05:00
Tom Rini 848e2404de am335x/am43xx/dra7xx: Change mtdparts name for consistency with kernel
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-31 09:45:50 -05:00
Sourav Poddar 9769033b54 configs: dra7-evm: change uboot offset
Change uboot offset in accordance with the partition formed.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:20:18 -05:00
Sourav Poddar 9ed700b15b configs: dra7-evm: Add mtd parts info for qspi.
Add MTD partition info for qspi on am43x epos evm

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:20:18 -05:00
Tom Rini 379e456ee7 dra7xx/am335x_evm/am43xx_evm: Enable GPT support by default
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-21 16:14:29 -05:00
Dan Murphy 4c677486ec arm: ti-armv7-common: Fix NAND and MMC boot command
When porting the NAND and MMC boot CMD it was developer
error not porting over the contents of the NAND and MMC
boot commands as they existed in the tree.

Therefore need to update the common boot commands to what
was already available for the platforms.

Also removed the NANDARGS from the platform files so that
they do not cause confusion.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
[trini: Add omap5_common.h change]
Signed-off-by: Tom Rini <trini@ti.com>
2013-12-11 10:23:39 -05:00
Dan Murphy 1ef9df10b7 TI: configs: Commonize the boot of different devices
Commonize in the ti_armv7_common.h the boot scripts for
USB, MMC and NAND.

Each board file can then select which BOOT_TARGETS are applicable
for the target board.
And any parameters based on that.

Finally removed the findfdt from the common file and made this more board
specific as omap4_common should not reference panda.

This implemenation was adopted from the tegra-common-post.h file.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -05:00
Pekon Gupta 8e636ad2a2 dra7xx_evm: remove unused MTD partitions
removed u-boot.backup1 and u-boot-spl-os.backup1 partitions

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-10 12:15:26 -05:00
Pekon Gupta 9e6155b923 mtd: nand: omap: add CONFIG_SPL_NAND_DEVICE_WIDTH to determine NAND device bus-width
This patch adds CONFIG_SPL_NAND_DEVICE_WIDTH to specify bus-width of NAND device
  CONFIG_SPL_NAND_DEVICE_WIDTH == 16: NAND device with x16 bus-width
  CONFIG_SPL_NAND_DEVICE_WIDTH == 8:  NAND device with x8 bus-width

Need for a separate CONFIG_xx arise from following situations.
(1) SPL NAND drivers does not have framework to parse ONFI parameter page.

(2) if !defined(CONFIG_SYS_NAND_SELF_INIT)
         |- board_nand_init()
         |- nand_scan()
               |- nand_scan_ident()
               |- nand_scan_tail()
   This means board_nand_init() is called before nand_scan_ident(). So NAND
   controller is initialized before the actual probing of NAND device.
   However some controller (like GPMC) need to be specifically configured for
   bus-width of NAND device.
   In such cases, bus-width of the NAND device should be known in advance
   of actual device probing. Hence, CONFIG_SPL_NAND_DEVICE_WIDTH is useful.

(3) Non-ONFI compliant devices need some mechanism to specify device bus-width
   to driver.

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-06 15:17:15 -05:00
Pekon Gupta 1a59ceb159 dra7xx_evm: add support for parallel NAND
This patch
 - Adds pin-mux for x16 parallel NAND device (MT29F2G16AAD) present on DRA7xx_EVM
 - Populate MTD partition table which needs same as kernel DTS for DRA7xx_EVM.
 - Populate other CONFIG_xx parameters required for NAND Boot on DRA7xx

Important: NAND device on DRA7xx_EVM board (MT29F2G16AAD) is a x16 device.
  To support NAND device with bus-width=16 bits, GPMC driver needs additional
  hack as following

diff --git a/arch/arm/cpu/armv7/omap-common/mem-common.c b/arch/arm/cpu/armv7/omap-common/mem-common.c
index 8e7352b..9b14927 100644
--- a/arch/arm/cpu/armv7/omap-common/mem-common.c
+++ b/arch/arm/cpu/armv7/omap-common/mem-common.c
@@ -91,7 +91,7 @@ void gpmc_init(void)
        u32 base = CONFIG_SYS_FLASH_BASE;
 #elif defined(CONFIG_NAND)
 /* configure GPMC for NAND */
-       const u32  gpmc_regs[GPMC_MAX_REG] = {  M_NAND_GPMC_CONFIG1,
+       const u32  gpmc_regs[GPMC_MAX_REG] = {  M_NAND_GPMC_CONFIG1 | 0x1000,
                                                M_NAND_GPMC_CONFIG2,
                                                M_NAND_GPMC_CONFIG3,
                                                M_NAND_GPMC_CONFIG4,

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 23:01:56 +05:30
Carlos Leija c3a7f32060 omapimage: Add QSPI CH support for DRA7xx
Introduce the usage of QSPI CH for DRA7xx instead of the default and
dummy CHSETTINGS. This CH is only valid for DRA7xx based devices and
is intended to speed up the boot for QSPI_1 device.

Change-Id: I9ab902f0597a758a48732b4dac18adc2e840f7ab
Signed-off-by: Carlos Leija <cileija@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-11-25 12:54:05 -05:00
Roger Quadros eef40eae2d ARM: dra7_evm: Add SATA support
The evm has a SATA port. Enable SATA configuration and
inititialize the SATA controller.

Signed-off-by: Roger Quadros <rogerq@ti.com>
2013-11-15 09:08:48 -05:00
Sourav Poddar 51ec66c154 config: dra7_evm: Add Bank Address Register(BAR) config
Add config to support bank address register.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-11-14 10:05:29 -05:00
Mugunthan V N 168cac21de drivers: net: cpsw: add support to have phy address from cpsw platform data
Some platforms like AM437x have different EVMs with different phy addresses,
so this patch adds support for passing phy address via cpsw plaform data.
Also renamed phy_id to phy_addr so better understanding of the code.

Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-10-28 09:01:47 -04:00
Tom Rini 979fac76b9 Merge branch 'next' of git://git.denx.de/u-boot-usb into ti-u-boot-2013.10 2013-10-16 17:39:00 -04:00
Wolfgang Denk 3765b3e7bd Coding Style cleanup: remove trailing white space
Signed-off-by: Wolfgang Denk <wd@denx.de>
2013-10-14 16:06:53 -04:00
Dan Murphy 2dd9c82fdf usb: dra7xx: Add support for dra7xx xhci USB host
Add the support for the dra7xx xhci usb host.
dra7xx does not contain an EHCI controller so the headers
can be removed from the board file.

The xHCI host on dra7xx is connected to a usb2 phy so need to
add support to enable those clocks.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-10-12 03:14:36 +02:00
Matt Porter 247cdf0413 dra7xx_evm: add SPL API, QSPI, and serial flash support
Enables support for SPI SPL, QSPI and Spansion serial flash device
on the EVM. Configures pin muxes for QSPI mode.

Signed-off-by: Matt Porter <matt.porter@linaro.org>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
2013-10-07 17:55:52 +05:30
Lokesh Vutla d3d33daf11 ARM: DRA7: Enable saveenv command
dra7xx_evm has eMMC and the default environment can be stored in it.
So enabling saveenv command and the configs to store environment in eMMC.

Tested on DRA752 ES1.0

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-09-20 16:57:40 -04:00
Tom Rini 457bb50560 dra7xx_evm: Re-order and comment the networking related config options
Signed-off-by: Tom Rini <trini@ti.com>
2013-08-28 11:44:59 -04:00
Tom Rini a801757480 TI:omap5/dra7xx: Convert to ti_armv7_common.h
Update omap5_common.h to use ti_armv7_common.h, and in turn update
dra7xx_evm.h and omap5_uevm.h slightly.  The biggest changes here are
that IP blocks which exist on the platform, and had clocks enabled,
now have the drivers being built as well.

Signed-off-by: Tom Rini <trini@ti.com>
2013-08-15 18:38:36 -04:00
Mugunthan V N c9be62caba ARM: DRA7xx: Enable CPSW Ethernet support
Enabling CPSW Ethernet support in DRA7xx EVM.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-07-26 16:39:11 -04:00
Wolfgang Denk 1a4596601f Add GPL-2.0+ SPDX-License-Identifier to source files
Signed-off-by: Wolfgang Denk <wd@denx.de>
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini <trini@ti.com>
2013-07-24 09:44:38 -04:00
Dan Murphy 45dbbf29bb arm: dra7xx: Update the EXTRA_ENV_SETTINGS
Update the EXTRA_ENV_SETTING for the dra7xx.
The console needs to be set to ttyO0 and the
findfdt needs to be updated to load the
dra7xx-evm.dtb file.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
2013-06-18 10:43:29 -04:00
Lokesh Vutla 97405d843e ARM: DRA7xx: clocks: Update PLL values
Update PLL values.
SYS_CLKSEL value for 20MHz is changed to 2. In other platforms
SYS_CLKSEL value 2 represents reserved. But in sys_clk array
ind 1 is used for 13Mhz. Since other platforms are not using
13Mhz, reusing index 1 for 20MHz.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
2013-06-10 08:43:10 -04:00
Sricharan R 378bd1fb4e ARM: DRA7xx: Change the Debug UART to UART1
Serial UART is connected to UART1. So add the change
for the same.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2013-06-10 08:43:10 -04:00
Lokesh Vutla 4de28d7921 ARM: DRA7xx: Add control id code for DRA7xx
The registers that are used for device identification
are changed from OMAP5 to DRA7xx.
Using the correct registers for DRA7xx.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-06-10 08:43:09 -04:00
Tom Rini 9552ee3ea9 omap5_uevm.h: Move uEVM-specific choices to omap5_uevm.h
The omap5_uevm platform has eMMC, and it makes sense to say that our
default env storage shall reside there.  Other platforms may not, so
move this choice to the EVM config.  In addition, we should provide some
way to partition the flash for later usage, so take advantage of the GPT
partition table support code and allow that to be setup with some
reasonable defaults.

Cc: Sricharan R <r.sricharan@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2013-04-08 11:40:56 -04:00
Lokesh Vutla 3ef5ebeb86 arm: dra7xx: Add dra7xx_evm build support
Adding the build support for dra7xx_evm.
Reusing omap5_evm.h config by moving it to omap5_common.h

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: R Sricharan <r.sricharan@ti.com>
2013-03-11 11:39:57 -04:00