Commit Graph

21998 Commits

Author SHA1 Message Date
Sourav Poddar 110ea2c838 configs: am43x-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:26:31 -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
Sourav Poddar 70f3a418ba board.cfg: am43xx: Add QSPI boot config.
These add a qspi boot config for am43x board.

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
Nishanth Menon cc11b91920 emif-common: support DRA7XX all versions
commit ef236f2929
(DRA7: Add support for ES1.1 silicon ID code)

from upstream does not contain the TI internal changes necessary.
The missing change for emif is now incorporated

Reported-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
2014-01-21 15:50:09 -05:00
Tom Rini 2fc1125c3c am43xx_evm.h: Correct SPL max size
Upon further inspection of relevant parts of the architecture, the
maximum SPL binary size is 220KiB.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-20 10:10:51 -05:00
Tom Rini ae92bf32bc ti_armv7_common.h: Correct ubi parameters
We do not support sub-page on NAND on any of these parts so we must
always provide the location of the VID header offset and this is always
our page size.

Signed-off-by: Tom Rini <trini@ti.com>
2014-01-17 09:41:18 -05:00
Dan Murphy c322a12578 spl: common: Remove raw image support for spl_usb
Raw image support is not currently supported as a valid
image type so remove the code until it is needed to not confuse
developers.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2014-01-16 16:30:25 -05:00
Dan Murphy 91861598eb arm: am43xx/am335/omap5: Add usb root and args
Adding the usbargs macro for OMAP5, AM43xx and the AM335
As well as add the usbroot to be sda2

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2014-01-16 16:30:25 -05:00
Nishanth Menon ef236f2929 DRA7: Add support for ES1.1 silicon ID code
ES1.1 silicon is a very minor variant of ES1.0. Add priliminary support
for ES1.1 IDCODE change.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
2014-01-16 16:30:25 -05:00
SRICHARAN R c00b09218c ARM: DRA7: Add is_dra7xx cpu check definition
A generic is_dra7xx cpu check is useful for grouping
all the revisions under that. This is used in the
subsequent patches.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2014-01-16 16:30:25 -05:00
Dave Gerlach e2176acbb4 ARM: AM43xx: GP-EVM: Correct GPIO used for VTT regulator control
Schematic indicates GPIO5_7 is to be used for VTT regulator control
rather than GPIO0_21 so modify enable_vtt_regulator to reflect this.
Without this some boards will experience DDR3 corruption and fail to
boot.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2014-01-15 14:50:50 -05:00
Satyanarayana, Sandhya ebd5028336 ARM: AM335x: Enable DDR dynamic IO power down
This patch enables dynamically powering down the
IO receiver when not performing a read.
This optimizes both active and standby power consumption.
This bit is not set on EVM SK and EVM 1.5 and later boards.
Setting the same.

This has been tested on PG2.0 EVM1.5, EVM1.2, EVM-SK, BBB.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
2013-12-20 10:57:09 -05:00
Lokesh Vutla b2b97e8282 ARM: AM43xx: Enable DDR dynamic IO power down
This patch enables dynamically powering down the
IO receiver when not performing a read.
This optimizes both active and standby power consumption.
This is derived from a patch that is done on AM335x[1]

[1] http://arago-project.org/git/projects/?p=u-boot-am33x.git;a=commit;h=6a9ee4bc72ece53fabf01825605fba3d71d5feb2

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-20 10:57:09 -05:00
Afzal Mohammed 562aa88643 ARM: AM43xx: relocate dtb
It has been observed that with default Kernel and dtd load address, if
dtb is not relocated on AM43x, Kernel doesn't boot - probably due to
Kernel image getting overwritten by dtb.

Fix it by relocating dtb as is done for other platforms so that defaults
will make AM43x boot.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
2013-12-17 08:46:43 -05:00
Lokesh Vutla 310aa487aa ARM: OMAP5: clocks: Update MPU settings for OPP_NOM
As per the latest 0.6 version of DM for OMAP5430 ES2.0,
MPU_GCLK is given as 1000MHz. In order to achieve this DPLL_MPU
should be locked at 2000MHz. Fixing the same and cleaning the
previously used dpll values.

Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-12 12:04:04 -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 f5d5782636 arm: am437x: Adopt the am437 config file to boot order
Adopt the am437x evm config to the common boot script.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -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
Dan Murphy 001419954b arm: am437x: Enable the USB boot device
Enable the USB host boot support for the AM437 evm

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -05:00
Dan Murphy e71e70bf45 common: spl: add USB mass storage as a boot device
Add the ability to load a u-boot off a USB mass storage device
from the SPL

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:31 -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 670d917a05 am43xx_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 a4b006efe3 am335x_evm: remove unused MTD partitions
removed u-boot.backup1 and u-boot-os-spl.backup1 partitions

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-10 12:15:26 -05:00
Sourav Poddar 532a80c9a9 spi: ti_qspi: Add delay for successful bulk erase.
Bulk erase is not happening properly on dra7 due to erase timing constraints,
add a delay so that erase timing constraints are properly met.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Yebio Mesfin <ymesfin@ti.com>
2013-12-10 10:09:56 -05:00
Tom Rini 530106aac1 am335x_evm: Fix NOR booting
All parts of the pinmux information must be in the first 4 KiB.  In
order to avoid some rather ugly linker script changes to ensure a
specific data segment was early enough, go back to asm for these pinmux
changes.

Signed-off-by: Tom Rini <trini@ti.com>
2013-12-10 10:08:28 -05:00
Tom Rini b42972acef am335x/omap3_beagle/omap4/omap5: Re-enable fdt_high relocation
The fdt_high variable controls how high into memory the FDT can be moved
as part of booting the kernel.  We had been disabling this feature as by
default we move to the very top of memory which can often be part of
highmem and so not visible to the kernel yet.  However, in other cases
the kernel BSS can overwrite the FDT at the location we use, and we
wouldn't detect this case.  The answer is to re-enable relocation, but
ensure it will be in kernel-visible memory still.

Signed-off-by: Tom Rini <trini@ti.com>
2013-12-10 08:54:47 -05:00
Tom Rini fb5de2bc3d am33xx: Add support for modifying INT_CONFIG/PBBPR in EMIF
In EMIF4 blocks of AM335x/TI81XX there is a register at 0x54 called
INT_CONFIG/PBBPR that has a field called PR_OLD_CONFIG that can be
changed depending on workloads of the system to ensure that accesses to
some areas don't cause accesses to other areas to be "stalled".  This
can be seen for example as screen jitter when playing videos.

Signed-off-by: Tom Rini <trini@ti.com>
2013-12-10 08:54:43 -05:00
Dan Murphy d7bfccba57 arm: am437: Fix offset for USB registers
Fix the offset for the USB clock registers

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-06 15:17:15 -05:00
Pekon Gupta 47f7187754 mtd: nand: omap: fix ecc-layout for HAM1 ecc-scheme
As per OMAP3530 TRM referenced below [1]

For large-page NAND, ROM code expects following ecc-layout for HAM1 ecc-scheme
 - OOB[1] (offset of 1 *byte* from start of OOB) for x8 NAND device
 - OOB[2] (offset of 1 *word* from start of OOB) for x16 NAND device

Thus ecc-layout expected by ROM code for HAM1 ecc-scheme is:
 *for x8 NAND Device*
 +--------+---------+---------+---------+---------+---------+---------+
 | xxxx   | ECC[A0] | ECC[A1] | ECC[A2] | ECC[B0] | ECC[B1] | ECC[B2] | ...
 +--------+---------+---------+---------+---------+---------+---------+

 *for x16 NAND Device*
 +--------+--------+---------+---------+---------+---------+---------+---------+
 | xxxxx  | xxxxx  | ECC[A0] | ECC[A1] | ECC[A2] | ECC[B0] | ECC[B1] | ECC[B2] |
 +--------+--------+---------+---------+---------+---------+---------+---------+

This patch fixes ecc-layout *only* for HAM1, as required by ROM-code
For other ecc-schemes like (BCH8) ecc-layout is same for x8 or x16 devices.

[1] OMAP3530: http://www.ti.com/product/omap3530
    TRM: http://www.ti.com/litv/pdf/spruf98x
		Chapter-25: Initialization Sub-topic: Memory Booting
		Section: 25.4.7.4 NAND
		Figure 25-19. ECC Locations in NAND Spare Areas

Reported-by: Stefan Roese <sr@denx.de>
Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-06 15:17:15 -05:00
Pekon Gupta 49fb9da3ca mtd: nand: omap: fix data-abort while correcting bit-flips using BCH16 ecc-scheme
This patch fixes 'data-abort' while correcting bit-flips in BCH16 ecc-scheme,
when number of bit-flip counts was greater than 8.

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-06 15:17:15 -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
Vladimir Koutny a67b4401d7 am335x: cpsw: optimize cpsw_recv to increase network performance
In 48ec5291, only TX path was optimized; this does the same also for RX
path. This results in huge increase of TFTP throughput on custom am3352
board (from 312KiB/s to 1.8MiB/s) and eliminates occasional transfer
timeouts.

Signed-off-by: Vladimir Koutny <vladimir.koutny@streamunlimited.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Tom Rini <trini@ti.com>
2013-12-04 09:40:43 -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
Pekon Gupta cab134bad2 dra7xx: updated macro used in pin-mux configuration
This patch introduces simple user-friendly macro for configuring pin-mux
- PIN_INPUT_PULLDOWN, PIN_INPUT_PULLUP, PIN_INPUT_NOPULL
- PIN_OUTPUT_PULLDOWN, PIN_OUTPUT_PULLUP, PIN_OUTPUT_NOPULL
- PIN_MUX_MODE(x): x is mode number

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 16:38:10 +05:30
Pekon Gupta 7304e05470 am43xx_evm: add support for parallel NAND
This patch
 - Adds pin-mux for x8 parallel NAND device (MT29F4G08AB) present on AM43xx_EVM

 - As above NAND device has blocksize=256k, pagesize=4k, oobsize=224, so by
   design ROM code expects SPL to be flashed using BCH16 ECC scheme. Hence
   CONFIG_NAND_OMAP_ECCSCHEME = OMAP_ECC_BCH16_CODE_HW is enabled.

 - Specifies MTD partition table which needs same as kernel DTS for AM43xx_EVM.

 - Populates other CONFIG_xx parameters required for NAND Boot on AM43xx

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 16:37:50 +05:30
Pekon Gupta 3ecf32a72c am335x_evm: update NAND related CONFIG_xx and MTD partitions
This patch
 - Groups all CONFIG_xx required for enabling parallel NAND on AM335x_EVM
   into single file include/configs/am335x_evm.h
 - Updates MTD partition table to include backup partitions for
   u-boot, environment and u-boot-spl-os.
 - Aligns MTD partitions (except for SPL partitions) such that partition offsets
   and sizes remain constant for all NAND devices with blocksize=128k or 256k.
   (because MTD partitions need to be aligned with blocksize boundary)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 15:47:01 +05:30
Pekon Gupta f9519b4a1b ARM: omap: merge GPMC initialization code for all platform
Most of TI's SoC platform have in-buit GPMC (General Purpose Memory Controller)
which can be used to interface different types of external memories like:
 - parallel NOR flash
 - parallel NAND flash
 - OneNand flash
 - SDR RAM

This patch:
 - As the GPMC hardware engine is common across all OMAPx and AMxxxx platforms,
   so GPMC initialization code from all platforms is merged into single file:
     arch/arm/cpu/armv7/omap-common/mem-common.c

 - But as different platforms support different operating clock frequencies,
   So, same memory device can have different GPMC configuration values on
   different platforms (like memory signal timing values of same device may
   differ on different platforms). Hence actual GPMC configuration parameters
   are still kept separately in following platform specific header files:
     AM33xx: [unchanged] arch/arm/include/asm/arch-am33xx/mem.h
     OMAP3:  [modified]  arch/arm/include/asm/arch-omap3/mem.h
     OMAP4:  [new] arch/arm/include/asm/arch-omap4/mem.h
     OMAP5:  [new] arch/arm/include/asm/arch-omap5/mem.h

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:45 +05:30
Pekon Gupta 35a50ea51c ARM: omap5: add hardware info for GPMC and ELM controllers
This patch adds OMAP5 platform specific information to enable GPMC controller,
which can interface different types of external memories like:
 - parallel NOR flash
 - parallel NAND flash
 - OneNand flash
 - SDR RAM

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:45 +05:30
Pekon Gupta 1c8e9c5f5d ARM: omap4: add hardware info for GPMC and ELM controllers
This patch adds OMAP4 platform specific information to enable in-built GPMC and
ELM controller, which can interface following types of external memories:
 - parallel NOR flash
 - parallel NAND flash
 - OneNand flash
 - SDR RAM

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:44 +05:30
Pekon Gupta a64b8e9456 mtd: nand: omap: README: how to select NAND ecc-schemes on OMAP devices
Adds explanation on how to select ECC scheme.

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:44 +05:30
Pekon Gupta 7a0845728b mtd: nand: omap: add support for BCH16_ECC - NAND driver updates
With increase in NAND flash densities occurence of bit-flips has increased.
Thus stronger ECC schemes are required for detecting and correcting multiple
simultaneous bit-flips in same NAND page. But stronger ECC schemes have large
ECC syndrome which require more space in OOB/Spare.
This patch add support for BCH16_ECC:
(a) BCH16_ECC can correct 16 bit-flips per 512Bytes of data.
(b) BCH16_ECC generates 26-bytes of ECC syndrome / 512B.

Due to (b) this scheme can only be used with NAND devices which have enough
OOB to satisfy following equation:
OOBsize per page >= 26 * (page-size / 512)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:43 +05:30
Pekon Gupta a72c2ee835 mtd: nand: omap: add support for BCH16_ECC in ELM driver
With increase in NAND flash densities occurence of bit-flips has increased.
Thus stronger ECC schemes are required for detecting and correcting multiple
simultaneous bit-flips in same NAND page. But stronger ECC schemes have large
ECC syndrome which require more space in OOB/Spare.
This patch add support for BCH16_ECC:
(a) BCH16_ECC can correct 16 bit-flips per 512Bytes of data.
(b) BCH16_ECC generates 26-bytes of ECC syndrome / 512B.

Due to (b) this scheme can only be used with NAND devices which have enough
OOB to satisfy following equation:
OOBsize per page >= 26 * (page-size / 512)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-03 14:30:42 +05:30
Mugunthan V N 726c782423 ARM: AM43xx: Add Ethernet boot support to SPL
Add Ethernet Boot support to SPL

Acked-by: Tom Rini <trini@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-12-02 12:02:18 -05:00
Mugunthan V N 5e7ae95a3d ARM: AM43xx: increase ro segment size
Increase read only segment size so that more peheripheral support can be
added to SPL like Ethernet or USB. The OCMC ram size is 256K, so allocating
~220K for read only segment.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
2013-12-02 12:02:18 -05:00
Lokesh Vutla 6f45e53060 ARM: DRA7xx: Change clk divider setting
Commit "armv7: hw_data: change clock divider setting"
updates the setting for m6 divider for 20MHz sys_clk frequency.
But missed to update for other sys_clk frequencies. Doing the same.

Reported-by: Rajendran, Vinothkumar <vinothr@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-02 12:02:17 -05:00
Lokesh Vutla 56d8c207de ARM: AM4372: Update EMIF registers for DDR3
Updating EMIF_PHY_CTRL and adding EMIF_READ_WRITE_EXECUTION_THRESHOLD
registers.
In EMIF_PHY_CTRL:
Updating [4:0]READ_LATENCY to 8, because at higher frequencies like 400MHz the
read latency expected will be CL+3 as per tests from HW folks.
Clearing [19]PHY_DIS_CALIB_RST bit as this is used onl for debug
purpose. With out this resume is not working(Still waiting for PHY team to
come back for better explanation).

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-02 12:02:16 -05:00
Lokesh Vutla 3e4115e182 ARM: OMAP4: Fix build break
Commit "ARM: DRA7/OMAP5: EMIF: Add workaround for bug 0039"
introduces the following build error.

arch/arm/cpu/armv7/omap-common/libomap-common.o: In function `do_bug0039_workaround':
/home/lokesh/exp/mainline/u-boot/arch/arm/cpu/armv7/omap-common/emif-common.c:1284: undefined reference to `get_bug_regs'

This is because of missing function call in OMAP4. Adding a weak function
for this.

Reported-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-02 12:02:16 -05:00
Lokesh Vutla 1e64752dae ARM: OMAP4/5: Fix build warning
Commit "ARM: OMAP5: DRA7xx: Add workaround for ARM errata 798870"
introduces the follwoing build warning for OMAP5 and build break for OMAP4.

hwinit-common.c: In function 's_init':
hwinit-common.c:132:2: warning: implicit declaration of function 'arm_errata_798870' [-Wimplicit-function-declaration]

As this function is called for both OMAP5 and OMAP4 and defined only for OMAP5
causing a build error for OMAP4
Fixing by moving this function common to OMAP4/5.
This will not break any functionality on OMAP4 as it checks for A15.

Reported-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-02 12:02:16 -05:00