Commit Graph

22021 Commits

Author SHA1 Message Date
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
Lokesh Vutla 32a54952e4 ARM: AM43xx: Fix the dtb file name for GP EVM in findfdt
DTB file name for AM4372 GP EVM is "am437x-gp-evm.dtb".
But in findfdt it is populated as "am43x-gp-evm.dtb".
Fixing the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-11-11 08:31:54 -05:00
Tom Rini df561c5e68 am43xx: Re-sync emif4d5 for changes to support HW leveling on OMAP5
Cc: Sricharan R <r.sricharan@ti.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2013-11-07 14:46:17 -05:00
Tom Rini 6d64d17394 am33xx: Stop modifying certain EMIF4D registers
Based on the definitive guide to EMIF configuration[1] certain registers
that we have been modifying (and are documented registers) should be
left in their reset values rather than modified.  This has been tested
on AM335x GP EVM and Beaglebone White.

[1]: http://processors.wiki.ti.com/index.php/AM335x_EMIF_Configuration_tips
Cc: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Cc: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Matt Porter <matt.porter@linaro.org>
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Tom Rini <trini@ti.com>
2013-11-07 12:16:41 -05:00
Sricharan R 633195f687 ARM: DRA7/OMAP5: EMIF: Add workaround for bug 0039
When core power domain hits oswr, then DDR3 memories does not come back
while resuming. This is because when EMIF registers are lost, then the
controller takes care of copying the values from the shadow registers.
If the shadow registers are not updated with the right values, then this
results in incorrect settings while resuming. So updating the shadow registers
with the corresponding status registers here during the boot.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2013-11-07 12:16:35 -05:00
Sricharan R cac86c8843 ARM: DRA: EMIF: Change DDR3 settings to use hw leveling
Currently the DDR3 memory on DRA7 ES1.0 evm board is enabled using
software leveling. This was done since hardware leveling was not
working. Now that the right sequence to do hw leveling is identified,
use it. This is required for EMIF clockdomain to idle and come back
during lowpower usecases.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2013-11-07 12:16:35 -05:00
Dan Murphy 7df64382ae ARM: fdt support: Add usbethaddr as an acceptable MAC
A board that has a USB ethernet device only may set the usbetheraddr
and not the ethaddr.
ethaddr will be the default MAC address that is chosen and if that
is not populated then the usbethaddr is looked at.  If neither are set
then then device tree blob is not modified.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-10-31 22:10:44 -04:00
Tom Rini 452aa9a90e Revert "am335x_evm: Add check for non-0 profile on GP EVM, update fdtfile"
On further review, this change isn't helpful as our test environment
will likely blow away this information as part of ensuring an otherwise
known development environment, so just let them load the correct device
tree as needed.

This reverts commit bf9a9b6889.

Signed-off-by: Tom Rini <trini@ti.com>
2013-10-29 17:07:16 -04:00
Mugunthan V N 4cb60128f5 ARM: DRA7xx: add support for reading cpsw 2nd mac from efuse
Adding support for reading cpsw 2nd mac address from efuse and pass it
to kernel via dtb which will be used in dual emac mode of cpsw.
Also correct the bit masking of mac id read from the efuse.

Acked-by: Tom Rini <trini@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-10-28 10:13:11 -04:00
Mugunthan V N cbd62b2105 ARM: AM335x: add support for reading cpsw 2nd mac address from efuse
Adding support for reading cpsw 2nd mac address from efuse and pass it
to kernel via dtb which will be used in dual emac mode of cpsw.
Also adding mii command support to am335x common config.

Acked-by: Tom Rini <trini@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-10-28 10:13:11 -04:00
Tom Rini 000f7056ac TI:am33xx: Adapt the Siemens boards to phy_id -> phy_addr CPSW change
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2013-10-28 09:29:56 -04:00
Mugunthan V N 4c977151f6 ARM: AM43xx: Add CPSW support to AM43xx EPOS and GP EVM
Adding support for CPSW to AM43xx EPOS nad GP EVM which is connected
to RMII and RGMII phy respectively and enable cpsw in config.

Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-10-28 09:02:19 -04:00
Mugunthan V N 688b8fb116 ARM: AM43xx: clocks: Enable CPGMAC clock control
Enable CPGMAC clock control for AM43xx to use ethernet in U-Boot

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-10-28 09:01:48 -04: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
Sourav Poddar a738830956 am43xx: add delay before xfer
Without this delay, write/read is failing.
Looks like, the WIP always remain set and hence a timeout
occurs leading to the error.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-10-25 15:43:16 -04:00
Sourav Poddar b80cf113e9 qspi/spi: Add AM43xx specifics changes
Add AM43xx specific changes.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-10-25 15:43:15 -04:00
Jagannadha Sutradharudu Teki 1219319973 sf: macronix: Add support for MX25L51235F
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-10-25 15:43:15 -04:00
Sourav Poddar ab8574fa04 am437x_epos_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: Sourav Poddar <sourav.poddar@ti.com>
2013-10-25 15:43:15 -04:00
Sourav Poddar ec73dcb1e1 am43xx: add qspi support
Add QSPI definitions and clock configuration support.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2013-10-25 15:43:15 -04:00
Lokesh Vutla 03b7431a38 ARM: AM43xx: Add Maintainer
Adding Maintainer for AM43xx.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla ddd9666cfc ARM: AM43xx: GP_EVM: Add support for DDR3
GP EVM has 1GB DDR3 attached(Part no: MT47H128M16RT-187E:C).
Adding details for the same.
Below is the brief description of DDR3 init sequence(SW leveling):
-> Enable VTT regulator
-> Configure VTP
-> Configure DDR IO settings
-> Disable initialization and refreshes until EMIF registers are programmed.
-> Program Timing registers
-> Program leveling registers
-> Program PHY control and Temp alert and ZQ config registers.
-> Enable initialization and refreshes and configure SDRAM CONFIG register

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 2cde21e0ce ARM: AM43xx: EPOS_EVM: Add support for LPDDR2
AM4372 EPOS EVM has 1GB LPDDR2(Part no: MT42L256M32D2LG-25 WT:A)
Adding LPDDR2 init sequence and register details for the same.
Below is the brief description of LPDDR2 init sequence:
-> Configure VTP
-> Configure DDR IO settings
-> Disable initialization and refreshes until EMIF registers are programmed.
-> Program Timing registers
-> Program PHY control and Temp alert and ZQ config registers.
-> Enable initialization and refreshes and configure SDRAM CONFIG register
-> Wait till initialization is complete and the configure MR registers.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 8142c3171d ARM: AM4372: Enable caches at starting of u-boot
This is a known issue on AM4372 that when there is a burst read to a
non-cacheable EMIF address space and the burst crosses 1K address boundary will
result in a hang. Since U-boot runs from DDR, there is a possibility that above
case occurs. So enable caches at the beginning of U-boot.
*This is a temporary fix and not meant for mainline.*

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla dd19de4192 ARM: AM43xx: Do not enable RTC for AM4372 SoC
Commit "am335x: Enable RTC 32K OSC clock" describes the dependency
to enable RTC clks in bootloader. This is not true for AM4372.
In EPOS EVM RTC is not powered (VDDS_RTC grounded to 0). In GP EVM no
need to enble RTC in bootloader. So moving RTC enbling to its respective clock file.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 21107e0067 ARM: AM43xx: clocks: Add DPLL data for GP EVM
Adding DPLLs Multiplier and DIvider values for GP EVM
Following are the DPLL locking frequencies at OPP NOM
MPU locks at 600MHz
Core locks at 1000MHz
Per locks at 960MHz
DDR locks at 400MHz

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 54f05c7eaa ARM: AM43xx: clocks: Update DPLL details for EPOS EVM
Updating the Multiplier and Dividers values for all DPLLs for EPOS EVM.
Following are the DPLL locking frequencies at OPP NOM:
MPU locks at 600MHz
Core locks at 1000MHz
Per locks at 960MHz
DDR locks at 266MHz

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 796a0c3ac1 ARM: AM43xx: mux: Update mux data
Updating the mux data for UART, and adding data for i2c0 and mmc.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 18e777e59e ARM: AM43xx: Update Current Booting devices list
Current Booting devices list is different from that of AM33xx.
Updating the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Lokesh Vutla 7b089dde4e ARM: AM43xx: Select clk source for Timer2
Selecting the Master osc clk as Timer2 clock source.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:42 -04:00
Sekhar Nori aa3e3c9812 ARM: AM43XX: Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support
CONFIG_ENV_VARS_UBOOT_CONFIG, CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG and
CONFIG_BOARD_LATE_INIT is already set. Adding support to detect the
board. These variables are used by findfdt.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Sekhar Nori fcc9b1f737 ARM: AM43XX: board: add support for reading onboard EEPROM
Add support for reading onboard EEPROM to enable
board detection.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Lokesh Vutla a7120da1c3 ARM: AM43xx: Add extra ENV settings
Add Extra env settings.
This is derived from am335x Extra ENV settings.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Lokesh Vutla 149ce00d64 ARM: AM43xx: Add L2 Support
AM4372 uses PL310 L2 Cache. Enable the configs for the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Tom Rini c1d2794eb3 ARM: AM33xx+: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF
Test on Beaglebone white over cpsw, usb ether and SD card (read and
write), performance increased, crc32 of data matches.

And also removing enable_caches definition from board/siemens file.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Lokesh Vutla f53b6ae038 ARM: AM43xx: Adapt to ti_armv7_common.h config file
Use ti_armv7_common.h config file to inclde the common
configs.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Lokesh Vutla 48a86471a0 ARM: AM43xx: Update the base addresses of modules
PRCM, timer base addresses and offsets are different from
AM33xx. Updating the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-10-21 13:10:41 -04:00
Tom Rini aed686c116 TI:omap5: Add rdaddr, use consistent loadaddr values
rdaddr was missing which is a common location for loading ramdisks to.
loadaddr was higher than it needs to be, so use the same value other TI
platforms use.

Signed-off-by: Tom Rini <trini@ti.com>
2013-10-18 18:04:33 -04:00
Tom Rini bf9a9b6889 am335x_evm: Add check for non-0 profile on GP EVM, update fdtfile
Until we have device tree overlay support or something similar we need to
pass profile-specific device trees to the kernel.  Update the logic to
expose a profile_number variable and update findfdt to use
am335x-evm-profileN.dtb.  This is a TI SDK specific change as the answer
for upstream is to work towards device tree overlays or a similar
concept.

Signed-off-by: Tom Rini <trini@ti.com>
2013-10-18 11:44:00 -04:00
Tom Rini 3548753d69 TI:armv7/am43xx: Set CONFIG_BOOTDELAY to 3
This is TI SDK specific change (we use 3 second boot delay to ensure
sufficient time to stop autoboot in all cases).

Signed-off-by: Tom Rini <trini@ti.com>
2013-10-18 10:19:17 -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
SRICHARAN R b51b9bf139 ARM: OMAP5: DDR3: Change io settings
The DDR DQ lines are enabled with weak pull. So the DQ line was not staying at Vref
when IDLE (retreats to ground) and because of this there were extra transitions
and noise. So change from 0x64656465 to 0x64646464 to remove the weak pull.

Also internal VREF_DQOUT is set to 0. This has to enabled as well.

With the above two changes better memory stability was observed with extended
temperature ranges around 100C

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2013-10-16 16:43:08 -04:00
Tom Rini 070127ecc9 Makefile: Introduce ARCH_PLATFORM_LIBGCC variable
In some cases, such as arm multi-lib hardfloat (hf) toolchains, we will
have multiple libgcc.a's available, and the arch needs to provide
additional logic to determine the right file to use
(-print-libgcc-file-name contains no CFLAG parsing logic).

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Tom Rini <trini@ti.com>
2013-10-16 16:43:08 -04:00
Tom Rini 183acb7003 Prepare v2013.10
Signed-off-by: Tom Rini <trini@ti.com>
2013-10-16 13:08:12 -04:00
Michal Simek 8c4dba1a5e microblaze: Fix watchdog initialization
The patch:
"blackfin: Move blackfin watchdog driver out of the blackfin arch folder."
(sha1: e9a389a184)
changed hw_watchdog_init() prototype which didn't match
with Microblaze one.
This patch fixes the driver and Microblaze initialization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2013-10-16 09:24:38 -04:00
Michal Simek 100ea07e33 common: fsl: Fix broken SPDX-License-Identifier change
This bug was introduced by:
"Add GPL-2.0+ SPDX-License-Identifier to source files"
(sha1: 1a4596601f)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2013-10-16 09:24:38 -04:00
Scott Wood 06503f16c3 mtd: fix warnings due to 64-bit partition support
commit 39ac34473f ("cmd_mtdparts: use 64
bits for flash size, partition size & offset") introduced warnings
in a couple places due to printf formats or pointer casting.

This patch fixes the warnings pointed out here:
http://lists.denx.de/pipermail/u-boot/2013-October/164981.html

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: York Sun <yorksun@freescale.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Tom Rini <trini@ti.com>
2013-10-15 20:03:59 -04:00
Timo Herbrecher 6d5ce1bd00 spi: mxc_spi: Fix double incrementing read pointer for unaligned buffers
If dout buffer is not 32 bit-aligned or data to transmit is not multiple
of 32 bit the read data pointer is already incremented on single byte reads.

Signed-off-by: Timo Herbrecher <t.herbrecher@gateware.de>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2013-10-16 00:14:30 +05:30
Bo Shen 21497ded5d sf: probe: Add missing Atmel at25df321 flash
As the spi flash transfer to multiple parts, it is forgot to add
Atmel AT25DF321 spi flash support, which broken several Atmel EK
boards which this chip. So, add it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
2013-10-16 00:14:03 +05:30
Jagannadha Sutradharudu Teki e7b1e452ff spi: Add GPL-2.0+ SPDX-License-Identifier for missing files
Added GPL-2.0+ SPDX-License-Identifier for missed spi
source files.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2013-10-16 00:14:01 +05:30
Jagannadha Sutradharudu Teki 0c88a84ac6 sf: Add GPL-2.0+ SPDX-License-Identifier for missing ones
Added GPL-2.0+ SPDX-License-Identifier for missed sf
source files.

Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Signed-off-by: Bo Shen <voice.shen@atmel.com>
2013-10-16 00:14:01 +05:30