]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/u-boot.git/log
android-sdk/u-boot.git
7 years agoDRA7XX - Late Attach - Use reserved memory for IOUMM table rvc-3.0
Subash Lakkimsetti [Tue, 17 Jan 2017 20:48:29 +0000 (14:48 -0600)]
DRA7XX - Late Attach - Use reserved memory for IOUMM table

IOMMU Table memory for remote cores is carved out. With page table
allocation from end of CMA-POOL from u-boot, kernel treats this region
as free memory. This causes an MMU faults on remote cores in low memory
situations.

IOMMU table region 0xbfc00000 - 0xbfd00000 has to carved out with
reserved_mem in kernel.

Kernel commit details: 41a8818d9675804bd3054395ca893c99bfce88be
http://review.omapzoom.org/#/c/38093/

Change-Id: I09ec250f3a8ec4a934ad73437981c5dea8930a34
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
7 years agoFW MPU: Configuring the MA_MPU MA FW
Subash Lakkimsetti [Sun, 5 Feb 2017 16:51:45 +0000 (10:51 -0600)]
FW MPU: Configuring the MA_MPU MA FW

Configured the MA_MPU FW for the RVC pool1 region.
Firwall configuration disabled for IPU2 and DSP2 CMA pool
as MPU tries to acces these regions while late attach

Change-Id: Ifb5d7ee01722c9fbe6c6da47734f7fd16e02f986
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
7 years agoEMIF FW: Configuring the EMIF firewall regions
Subash Lakkimsetti [Sun, 5 Feb 2017 16:50:43 +0000 (10:50 -0600)]
EMIF FW: Configuring the EMIF firewall regions

EMIF FW configured for protecting these regions from L3 access from
initiators which are not defined

Change-Id: Ia2e92d21abdb2d824637480c0fac66fd39eeec61
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
7 years agoFW: Functionality for firewall configuration using secure HAL API's
Subash Lakkimsetti [Tue, 7 Feb 2017 00:07:22 +0000 (18:07 -0600)]
FW: Functionality for firewall configuration using secure HAL API's

For HS devices, secure API's are added to configure firewall for
EMIF, MPU, IPU and L4Per3 cfg using the PPA HAL API's.

Change-Id: Ifd323b3af4f24428efd1af63947b989e332df587
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
7 years agohs boot: enabling late attach for robust rvc
Subash Lakkimsetti [Fri, 3 Feb 2017 21:30:30 +0000 (15:30 -0600)]
hs boot: enabling late attach for robust rvc

Change-Id: I32b7a8eb232327d646e9f1f647eb3aca5b3a9d23
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
7 years agoRVC: Enable display of RVC
Buddy Liong [Fri, 20 Jan 2017 18:08:09 +0000 (12:08 -0600)]
RVC: Enable display of RVC

Prior to this change, LCD display is powered on by vision SDK
on IPU (M4). When single stage boot is used, there is a conflict
of I2C because Linux Kernel will reset I2C while RVC is still trying
to perform configuration. On dual stage boot, this issue is not
happening because RVC would have done the LCD configuration prior
to Linux kernel reset to happen.

This commit move the LCD power on configuration from IPU to u-boot.
There is a dependency commit id on vision sdk along with this commit.
The change in vision sdk is to disable to call Lcd_turnOn() in
\vision_sdk\examples\tda2xx\src\usecases\common\chains_common.c::
ChainsCommon_StartDisplayDevice().

Ported from http://review.omapzoom.org/37778 -
    spl: Enable display of splash screen

Change-Id: I7c2a48fb236e5713f782520efca3a8a50f5f5758
Signed-off-by: Buddy Liong <a0270631@ti.com>
7 years agoRVC: Enable RVC late attach IPU2 and DSP2
Buddy Liong [Tue, 17 Jan 2017 19:07:26 +0000 (13:07 -0600)]
RVC: Enable RVC late attach IPU2 and DSP2

Enabling late attach for IPU2 and DSP2.
Reducing IPU2 partition to 7MB from 8MB.
Reducing DSP2 partition to 1MB from 8MB.

Change-Id: I9765dd94f7bc02cdb4a7f2f49b35a1ffd814b316
Signed-off-by: Buddy Liong <a0270631@ti.com>
7 years agoMerge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti... p-ti-u-boot-2016.05
Praneeth Bajjuri [Tue, 7 Feb 2017 21:46:21 +0000 (15:46 -0600)]
Merge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti-u-boot-2016.05

* 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot:
  spl: sqpi: boot: Fix u-boot loading when SPL_OS_BOOT is not set
  am57xx: config: enable USB mass storage
  dra7: config: enable USB mass storage
  boot: fdt: fixup the memory dt nodes falcon boot
  spl: fdt: support for fdt fixup for spl-boot
  usb: fastboot: remove the debug prints
  mmc: Increase delay between mmc power off and power up
  board: ti: beagle_x15: enable input on mmc clock
  ARM: k2g: add a workaround to reset the phy
  ARML dts: k2g-ice: change phy address to work with production boards

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agospl: sqpi: boot: Fix u-boot loading when SPL_OS_BOOT is not set
Misael Lopez Cruz [Tue, 31 Jan 2017 03:36:57 +0000 (21:36 -0600)]
spl: sqpi: boot: Fix u-boot loading when SPL_OS_BOOT is not set

It's assumed that SPL should load the u-boot image when the
CONFIG_SPL_OS_BOOT option is not set.

The spl_spi_load_image() function uses the same variable to
check the returned value of function calls as well as to
determine if the u-boot image is to be loaded.  This variable
was initialized to 0, which isn't right because 0 means that
the u-boot image is not going to be loaded.

This problem caused HS boot to be broken.  GP boot was not
affected because CONFIG_SPL_OS_BOOT is defined non HS devices.

Change-Id: I00c3790c31618a8ab25cbb4f3cc848b5166f274a
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agoam57xx: config: enable USB mass storage
Vishal Mahaveer [Thu, 19 Jan 2017 00:02:59 +0000 (19:02 -0500)]
am57xx: config: enable USB mass storage

Enable USB mass storage option in u-boot via 'ums'
command.

Change-Id: Idda4cbe6fa58ec7aa3dd0149d1a2faa270730004
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agodra7: config: enable USB mass storage
Vishal Mahaveer [Wed, 18 Jan 2017 23:47:05 +0000 (18:47 -0500)]
dra7: config: enable USB mass storage

Enable USB mass storage option in u-boot via 'ums'
command.

Change-Id: Id3da2a88750446860270552766e055c17846cb2b
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoboot: fdt: fixup the memory dt nodes falcon boot
Ravi Babu [Fri, 13 Jan 2017 08:10:15 +0000 (13:40 +0530)]
boot: fdt: fixup the memory dt nodes falcon boot

In single stage bootmode or falcon boot mode,
the SPL shall update the memory dt nodes based
on DDR configuration for specific platform.

This patch fixes kernel crash observed during
single stage qspi boot mode.

Change-Id: Ie7b52c9cf1f8dc2deb006be10ab8a18c53a88db7
Signed-off-by: Ravi Babu <ravibabu@ti.com>
7 years agospl: fdt: support for fdt fixup for spl-boot
Ravi Babu [Thu, 29 Dec 2016 13:54:29 +0000 (19:24 +0530)]
spl: fdt: support for fdt fixup for spl-boot

Adding support for fdt fixup to update the
memory node in device tree for spl-boot.

This is needed for single stage or falcon
bootmode, to pass memory configuration to
kernel through DT memory node, without this
single stage boot will not work.

Change-Id: I62cf398b581823dab87d36484243e9c473459f0b
Signed-off-by: Ravi Babu <ravibabu@ti.com>
7 years agousb: fastboot: remove the debug prints
Ravi Babu [Fri, 13 Jan 2017 08:07:55 +0000 (13:37 +0530)]
usb: fastboot: remove the debug prints

Removing the debug print in fastboot as this
will not not affect the functionality of
fastboot.

Change-Id: I44ae13d76045283ed717d60e909e1af9fc4ea18d
Signed-off-by: Ravi Babu <ravibabu@ti.com>
7 years agoMerge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti...
Praneeth Bajjuri [Wed, 18 Jan 2017 04:59:21 +0000 (22:59 -0600)]
Merge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti-u-boot-2016.05

* 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot: (26 commits)
  fastboot: qspi: fix for dual stage qspi u-boot failure
  drivers: mmc: omap_hsmmc: update phase delay value per latest TRM
  drivers: block: Fixed capacity message
  regulator: fixed: Add support to handle enable-active-high DT property
  mmc: disable the mmc clock during power off
  mmc: Enable mmc clock before sending init stream
  ti_armv7_common: env: Add NFS loading support for PMMC and MON
  defconfigs: am57xx_hs_evm: Add default OPTEE load address
  defconfigs: dra7xx_hs_evm: Add default OPTEE load address
  TI: Rework SRAM definitions and maximums
  spl: usb: dfu: adding configuration for non-FIT image
  TI: Rework SRAM definitions and maximums for dra7xx platform
  omap3: Fix SPI registers on am33xx and am43xx
  dra7: config: enable dynamic dt loading
  Revert "power: regulator: pbias: Add pbias regulator support"
  Revert "ARM: dts: dra7xx: Fix broken pbias device creation"
  Revert "mmc: power off the IO regulator during power cycle"
  Revert "drivers: mmc: omap_hsmmc: use regulator APIs to program pbias"
  Revert "configs: enable misc and pbias options on configs for dra7 based boards"
  Revert "mmc: disable the mmc clock during power off"
  ...

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Tue, 17 Jan 2017 16:34:50 +0000 (10:34 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  mmc: Increase delay between mmc power off and power up
  board: ti: beagle_x15: enable input on mmc clock
  ARM: k2g: add a workaround to reset the phy
  ARML dts: k2g-ice: change phy address to work with production boards

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agommc: Increase delay between mmc power off and power up
Vignesh R [Fri, 6 Jan 2017 12:08:57 +0000 (17:38 +0530)]
mmc: Increase delay between mmc power off and power up

According to SD card Physical Layer Specification, there should be at
least 1ms delay between power off and power up sequence during mmc power
cycle. It is seen that certain SD cards like Kingston 4G card require
little more than 1ms delay else, cards fail to enumerate sometimes.
Therefore, increase the delay to 2ms so that there is some leeway.

Reported-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoboard: ti: beagle_x15: enable input on mmc clock ti2016.06 ti2016.06-rc4
Sekhar Nori [Tue, 3 Jan 2017 12:47:35 +0000 (18:17 +0530)]
board: ti: beagle_x15: enable input on mmc clock

As per the latest pinmux data available for AM572x EVM,
rev A3, input should be enabled on MMC clock lines for
MMC2/2/3 for stable operation.

Further, AM572x TRM, SPRUHZ6, Revised June 2016, in
section 18.4.6.1.1 "Pad Configuration Registers" states
that input should be enabled for MMC 2/3/4 clock lines.

Enable input on MMC1 and MMC3 clock to match the latest
pinmux data. Input is already enabled on MMC2 clock for
BeagleBoard x15. Further, input is already enabled on all
MMCx clocks for other AM57xx boards (AM572x and AM571x
IDK).

Tested with HS and UHS SD card on AM572x EVM Rev A3.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
7 years agofastboot: qspi: fix for dual stage qspi u-boot failure
Ravi Babu [Mon, 26 Dec 2016 11:40:54 +0000 (17:10 +0530)]
fastboot: qspi: fix for dual stage qspi u-boot failure

The u-boot region was not erased correctly in
fastboot qspi erase command, which leads to failed
to boot to u-boot in qspi bootmode.

Change-Id: Ibc6c4d1fb94f3c9ed5c8800398866c1e5337bae6
Signed-off-by: Ravi Babu <ravibabu@ti.com>
[verified android]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoARM: k2g: add a workaround to reset the phy ti2016.06-rc3
Murali Karicheri [Wed, 21 Dec 2016 22:51:33 +0000 (17:51 -0500)]
ARM: k2g: add a workaround to reset the phy

This patch adds a workaround to reset the phy one time during boot
using GPIO0 pin 10 to make sure, the Phy latches the configuration
from the input pins correctly.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
7 years agoARML dts: k2g-ice: change phy address to work with production boards
Murali Karicheri [Wed, 21 Dec 2016 22:51:32 +0000 (17:51 -0500)]
ARML dts: k2g-ice: change phy address to work with production boards

Production boards uses a phy address of 0. So fix this in DTS

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Wed, 21 Dec 2016 23:07:16 +0000 (17:07 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  drivers: mmc: omap_hsmmc: update phase delay value per latest TRM
  drivers: block: Fixed capacity message

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodrivers: mmc: omap_hsmmc: update phase delay value per latest TRM
Kishon Vijay Abraham I [Tue, 20 Dec 2016 08:28:43 +0000 (13:58 +0530)]
drivers: mmc: omap_hsmmc: update phase delay value per latest TRM

While performing tuning, known data pattern is sent and received
with different phase delay values and the centered DLL ratio
of the largest passing window is selected as the final DLL ratio.
However The 3/4th DLL ratio value of the largest passing window
has better reliability and is more stable. So use the
3/4th DLL ratio value instead of the centered DLL ratio suggested
in earlier TRMs.

Newer TRMs have been updated to reflect this.
25.5.1.2.4 SDR104/HS200 DLL Tuning Procedure of TRM vAE
(SPRUHI2AE–November 2012–Revised November 2016)

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
7 years agodrivers: block: Fixed capacity message
Jean-Jacques Hiblot [Fri, 16 Dec 2016 15:38:51 +0000 (16:38 +0100)]
drivers: block: Fixed capacity message

With capacities getting bigger, we can see see messages with negative
numbers like "Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)".
Here the printed LBA is -387938128 when it should have been 3907029168.
To fix this, use the right format when displaying the unsigned integers.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reported-by: Yan Liu <yan-liu@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Mon, 12 Dec 2016 23:52:11 +0000 (17:52 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  regulator: fixed: Add support to handle enable-active-high DT property
  mmc: disable the mmc clock during power off
  mmc: Enable mmc clock before sending init stream
  ti_armv7_common: env: Add NFS loading support for PMMC and MON

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoregulator: fixed: Add support to handle enable-active-high DT property ti2016.06-rc2
Vignesh R [Wed, 7 Dec 2016 11:27:39 +0000 (16:57 +0530)]
regulator: fixed: Add support to handle enable-active-high DT property

Add support to handle enable-active-high DT property. This property is
used to drive the gpio controlling fixed regulator as active high when
claiming gpio line.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agommc: disable the mmc clock during power off
Kishon Vijay Abraham I [Fri, 9 Dec 2016 08:17:21 +0000 (13:47 +0530)]
mmc: disable the mmc clock during power off

There is no point in having the mmc clock enabled during
power off. Disable the mmc clock. This is similar to how it's
programmed in Linux Kernel.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agommc: Enable mmc clock before sending init stream
Vignesh R [Fri, 9 Dec 2016 08:17:20 +0000 (13:47 +0530)]
mmc: Enable mmc clock before sending init stream

mmc_set_vdd() requests controller to send  initialization stream to
card. This operation needs to be done with mmc clocks enabled. mmc
clocks are enabled by mmc_set_initial_state(). Therefore, move
mmc_set_vdd() call after mmc_set_initial_state().

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoti_armv7_common: env: Add NFS loading support for PMMC and MON ti2016.06-rc1
Andrew F. Davis [Mon, 5 Dec 2016 19:57:37 +0000 (13:57 -0600)]
ti_armv7_common: env: Add NFS loading support for PMMC and MON

commit 979a1f8b21aded450d34bddbc99804f7e6489622 upstream.

NFS loading support has been added to the default environment for
most boot components, as PMMC and MON loading were added later they
did not originally get the NFS commands added, add these now.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Wed, 7 Dec 2016 23:05:09 +0000 (17:05 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  defconfigs: am57xx_hs_evm: Add default OPTEE load address
  defconfigs: dra7xx_hs_evm: Add default OPTEE load address
  TI: Rework SRAM definitions and maximums

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agodefconfigs: am57xx_hs_evm: Add default OPTEE load address
Andrew F. Davis [Wed, 16 Nov 2016 22:51:40 +0000 (16:51 -0600)]
defconfigs: am57xx_hs_evm: Add default OPTEE load address

Currently we let U-Boot find a spot at the end of DRAM at runtime, this
forces us to build an OPTEE image based on the size of DRAM for an EVM.
Add a default address that works across all current AM57xx EVMs.

Signed-off-by: Andrew F. Davis <afd@ti.com>
7 years agodefconfigs: dra7xx_hs_evm: Add default OPTEE load address
Andrew F. Davis [Wed, 16 Nov 2016 22:51:39 +0000 (16:51 -0600)]
defconfigs: dra7xx_hs_evm: Add default OPTEE load address

Currently we let U-Boot find a spot at the end of DRAM at runtime, this
forces us to build an OPTEE image based on the size of DRAM for an EVM.
Add a default address that works across all current DRA7xx EVMs.

Signed-off-by: Andrew F. Davis <afd@ti.com>
7 years agoTI: Rework SRAM definitions and maximums
Ravi Babu [Wed, 30 Nov 2016 07:24:35 +0000 (12:54 +0530)]
TI: Rework SRAM definitions and maximums

commit fa2f81b06f666710c756d25297d7a9ca48c65935 upstream

On all TI platforms the ROM defines a "downloaded image" area at or near
the start of SRAM which is followed by a reserved area.  As it is at
best bad form and at worst possibly harmful in corner cases to write in
this reserved area, we stop doing that by adding in the define
NON_SECURE_SRAM_IMG_END to say where the end of the downloaded image
area is and make SRAM_SCRATCH_SPACE_ADDR be one kilobyte before this.
At current we define the end of scratch space at 0x228 bytes past the
start of scratch space this this gives us a lot of room to grow.  As
these scratch uses are non-optional today, all targets are modified to
respect this boundary.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Tue, 29 Nov 2016 21:50:16 +0000 (15:50 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  spl: usb: dfu: adding configuration for non-FIT image
  TI: Rework SRAM definitions and maximums for dra7xx platform
  omap3: Fix SPI registers on am33xx and am43xx

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agospl: usb: dfu: adding configuration for non-FIT image
Ravi Babu [Thu, 17 Nov 2016 07:54:26 +0000 (13:24 +0530)]
spl: usb: dfu: adding configuration for non-FIT image

When CONFIG_SPL_LOAD_FIT is not selected, the image
load address shall be CONFIG_SYS_TEXT_BASE.
Adding saperate dfu_alt_info configuration for non-FIT
images with correct load address.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
7 years agoTI: Rework SRAM definitions and maximums for dra7xx platform
Tom Rini [Thu, 17 Nov 2016 07:54:25 +0000 (13:24 +0530)]
TI: Rework SRAM definitions and maximums for dra7xx platform

commit fa2f81b06f666710c756d25297d7a9ca48c65935 upstream.

On all TI platforms the ROM defines a "downloaded image" area at or near
the start of SRAM which is followed by a reserved area.  As it is at
best bad form and at worst possibly harmful in corner cases to write in
this reserved area, we stop doing that by adding in the define
NON_SECURE_SRAM_IMG_END to say where the end of the downloaded image
area is and make SRAM_SCRATCH_SPACE_ADDR be one kilobyte before this.
At current we define the end of scratch space at 0x228 bytes past the
start of scratch space this this gives us a lot of room to grow.  As
these scratch uses are non-optional today, all targets are modified to
respect this boundary.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoomap3: Fix SPI registers on am33xx and am43xx
Martin Hejnfelt [Wed, 23 Nov 2016 05:22:43 +0000 (10:52 +0530)]
omap3: Fix SPI registers on am33xx and am43xx

commit 5f89a15e1630e9050c8b1b5307ccd800e4596ce5 upstream.

When the base registers are read from device tree the base is not
0x48030100 as the driver expects, but 0x48030000, resulting in
non functioning SPI. To deal with this, use same idea as how this
is done in the linux kernel (drivers/spi/spi-omap2-mcspi.c) and
add a structure with a field that is used to shift the registers
on these systems.

v2: Fixed commit subject line to correct cpu

Signed-off-by: Martin Hejnfelt <mh@newtec.dk>
Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agodra7: config: enable dynamic dt loading
Ravikumar Kattekola [Tue, 22 Nov 2016 09:09:09 +0000 (14:39 +0530)]
dra7: config: enable dynamic dt loading

This commit fixes c8daf57ae0f7c53a5f8c292d53472985a4521ca1

Change-Id: I5f19fb742c8ccf4693a2bd8ad5a3b5fd85f5fbc4
Signed-off-by: Ravikumar Kattekola <rk@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Tue, 22 Nov 2016 20:25:50 +0000 (14:25 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  Revert "power: regulator: pbias: Add pbias regulator support"
  Revert "ARM: dts: dra7xx: Fix broken pbias device creation"
  Revert "mmc: power off the IO regulator during power cycle"
  Revert "drivers: mmc: omap_hsmmc: use regulator APIs to program pbias"
  Revert "configs: enable misc and pbias options on configs for dra7 based boards"
  Revert "mmc: disable the mmc clock during power off"

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoRevert "power: regulator: pbias: Add pbias regulator support" ti2016.05 ti2016.05-rc5
Vignesh R [Fri, 18 Nov 2016 13:52:30 +0000 (19:22 +0530)]
Revert "power: regulator: pbias: Add pbias regulator support"

Remove pbias regulator driver. this patch causes normal HS cards to fail
to enumerate sometimes (enumeration is inconsistent) on dra7 evm. Hence
revert it.

This reverts commit c094e1c1547327e1d7871104138d2385ee24b85f.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoRevert "ARM: dts: dra7xx: Fix broken pbias device creation"
Vignesh R [Fri, 18 Nov 2016 13:52:29 +0000 (19:22 +0530)]
Revert "ARM: dts: dra7xx: Fix broken pbias device creation"

This change alone has no benefit as the pbias driver will be removed.
Hence revert it.

This reverts commit b297b2a30584b8712ec4d360b148e45416344e7e.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoRevert "mmc: power off the IO regulator during power cycle"
Vignesh R [Fri, 18 Nov 2016 13:52:28 +0000 (19:22 +0530)]
Revert "mmc: power off the IO regulator during power cycle"

This patch causes normal cards to fail to enumerate sometimes
(enumeration is inconsistent) on dra7 evm. Also, this sequence is
different from that of Linux Kernel. Hence revert it.

This reverts commit 2c2be1cf8760fc3589d90de644902352f9f518a4.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoRevert "drivers: mmc: omap_hsmmc: use regulator APIs to program pbias"
Vignesh R [Fri, 18 Nov 2016 13:52:27 +0000 (19:22 +0530)]
Revert "drivers: mmc: omap_hsmmc: use regulator APIs to program pbias"

This patch causes normal HS cards to fail to enumerate sometimes
(enumeration is inconsistent) on dra7 evm. Hence revert it.

This reverts commit ac81e5372aeac9152367bbee589ff9668d55de9b.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoRevert "configs: enable misc and pbias options on configs for dra7 based boards"
Vignesh R [Fri, 18 Nov 2016 13:52:26 +0000 (19:22 +0530)]
Revert "configs: enable misc and pbias options on configs for dra7 based boards"

This patch causes normal HS cards to fail to enumerate sometimes
(enumeration is inconsistent) on dra7 evm. Hence revert it.

This reverts commit 90dd10434b75c827b2ad75d54b37b647f153e17d.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoRevert "mmc: disable the mmc clock during power off"
Vignesh R [Fri, 18 Nov 2016 13:52:25 +0000 (19:22 +0530)]
Revert "mmc: disable the mmc clock during power off"

This patch causes AM57x-evm to popup below error message when U-Boot
comes up when using SDR104 card. Hence revert it.

Card did not respond to voltage select!
** Bad device mmc 0 **

This reverts commit 96d42df4e7cb700bde4bdf5106cfd2753749c4e7.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Thu, 17 Nov 2016 19:27:34 +0000 (13:27 -0600)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  mmc: disable the mmc clock during power off
  configs: enable misc and pbias options on configs for dra7 based boards
  drivers: mmc: omap_hsmmc: use regulator APIs to program pbias
  mmc: power off the IO regulator during power cycle
  ARM: dts: dra7xx: Fix broken pbias device creation
  power: regulator: pbias: Add pbias regulator support

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agommc: disable the mmc clock during power off ti2016.05-rc4
Kishon Vijay Abraham I [Fri, 11 Nov 2016 14:29:22 +0000 (19:59 +0530)]
mmc: disable the mmc clock during power off

There is no point in having the mmc clock enabled during
power off. Disable the mmc clock. This is similar to how it's
programmed in Linux Kernel.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agoconfigs: enable misc and pbias options on configs for dra7 based boards
Kishon Vijay Abraham I [Fri, 11 Nov 2016 12:01:02 +0000 (17:31 +0530)]
configs: enable misc and pbias options on configs for dra7 based boards

Enable MISC and DM_REGULATOR_PBIAS options in am57xx_evm_defconfig,
am57xx_hs_evm_defconfig, dra7xx_evm_defconfig and
dra7xx_hs_evm_defconfig.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agodrivers: mmc: omap_hsmmc: use regulator APIs to program pbias
Kishon Vijay Abraham I [Fri, 11 Nov 2016 12:01:01 +0000 (17:31 +0530)]
drivers: mmc: omap_hsmmc: use regulator APIs to program pbias

pbias was not programmed if CONFIG_DM_REGULATOR is not set. Now
that pbias driver is added as a regulator driver, use regulator APIs
to program the pbias.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agommc: power off the IO regulator during power cycle
Kishon Vijay Abraham I [Fri, 11 Nov 2016 12:01:00 +0000 (17:31 +0530)]
mmc: power off the IO regulator during power cycle

Only the Vdd is turned off during power cycle of the MMC module.
Power off the IO regulator here. Some inconsistencies w.r.t SD card
enumeration have been observed without powering off the IO regulators
during power cycle.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agoARM: dts: dra7xx: Fix broken pbias device creation
Kishon Vijay Abraham I [Fri, 11 Nov 2016 12:00:59 +0000 (17:30 +0530)]
ARM: dts: dra7xx: Fix broken pbias device creation

This commit is based on the following linux kernel commit
used to create pbias device.

commit cd4556733b30cc363adc7b1cea3bffa7e2dd0c7c
Author: Kishon Vijay Abraham I <kishon@ti.com>
Date:   Mon Jul 27 17:46:41 2015 +0530

    ARM: dts: dra7: Fix broken pbias device creation

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agopower: regulator: pbias: Add pbias regulator support
Kishon Vijay Abraham I [Fri, 11 Nov 2016 12:00:58 +0000 (17:30 +0530)]
power: regulator: pbias: Add pbias regulator support

Model pbias as a regulator and add pbias regulator driver here.
Now pbias can be programmed (enable/disable/set voltate)
using the regulator APIs. This is similar to how pbias is
programmed in the linux kernel.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agoMerge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti...
Praneeth Bajjuri [Tue, 8 Nov 2016 22:23:58 +0000 (16:23 -0600)]
Merge branch 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot into p-ti-u-boot-2016.05

* 'p-ti-u-boot-2016.05' of git://git.omapzoom.org/repo/u-boot: (115 commits)
  arm: Set TTB XN bit in case DCACHE_OFF for LPAE mode
  arm: print the cache config option in hex instead of decimal
  ARM: dts: k2g-ice: fix typo in dt property
  ARM: dts: k2g-ice: change rx-internal-delay to recommended value
  HACK: ARM: k2g: Program PadConfig_202 before locking RSTMUX8
  ARM: k2g: setup PRU ethernet MAC addresses
  ti: common: board_detect: commodify ethaddr environment setting code
  ARM: k2g: Add board detection supprt
  ti_armv7_keystone2: Define scratch space in SRAM
  ti: common: board_detect: Rename EEPROM scratch start macro
  ARM: dts: k2g-ice: add dt node for netcp
  ARM: dts: k2g-evm: remove unused phy-mode property from phy node
  k2g: config enable ti phy dp83867 for k2g
  net: netcp: add support for phy with rgmii ids
  ARM: k2g: Add pinmux support for K2G RGMII interface
  ARM: dts: keystone-k2g-ice: Add support for QSPI
  ARM: k2g: Add QSPI pinmux data for K2G ICE evm
  spi: cadence_qspi_apb: Improve indirect write transaction
  board: ti: am572x-evm: Update pinmux using latest PMT
  board: ti: am572x-idk: Update pinmux using latest PMT
  ...

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
Praneeth Bajjuri [Wed, 2 Nov 2016 19:18:58 +0000 (14:18 -0500)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot: (73 commits)
  arm: Set TTB XN bit in case DCACHE_OFF for LPAE mode
  arm: print the cache config option in hex instead of decimal
  ARM: dts: k2g-ice: fix typo in dt property
  ARM: dts: k2g-ice: change rx-internal-delay to recommended value
  HACK: ARM: k2g: Program PadConfig_202 before locking RSTMUX8
  ARM: k2g: setup PRU ethernet MAC addresses
  ti: common: board_detect: commodify ethaddr environment setting code
  ARM: k2g: Add board detection supprt
  ti_armv7_keystone2: Define scratch space in SRAM
  ti: common: board_detect: Rename EEPROM scratch start macro
  ARM: dts: k2g-ice: add dt node for netcp
  ARM: dts: k2g-evm: remove unused phy-mode property from phy node
  k2g: config enable ti phy dp83867 for k2g
  net: netcp: add support for phy with rgmii ids
  ARM: k2g: Add pinmux support for K2G RGMII interface
  ARM: dts: keystone-k2g-ice: Add support for QSPI
  ARM: k2g: Add QSPI pinmux data for K2G ICE evm
  spi: cadence_qspi_apb: Improve indirect write transaction
  board: ti: am572x-evm: Update pinmux using latest PMT
  board: ti: am572x-idk: Update pinmux using latest PMT
  ...

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Conflicts:
configs/dra7xx_evm_defconfig

7 years agoarm: Set TTB XN bit in case DCACHE_OFF for LPAE mode ti2016.05-rc3
Keerthy [Sat, 29 Oct 2016 09:49:10 +0000 (15:19 +0530)]
arm: Set TTB XN bit in case DCACHE_OFF for LPAE mode

While we setup the mmu initially we mark set_section_dcache with
DCACHE_OFF flag. In case of non-LPAE mode the DCACHE_OFF macro
is rightly defined with TTB_SECT_XN_MASK set so as to mark all the
4GB XN. In case of LPAE mode  XN(Execute-never) bit is not set with
DCACHE_OFF. Hence XN bit is not set by default for DCACHE_OFF which
keeps all the regions execute okay and this leads to random speculative
fetches in random memory regions which was eventually caught by kernel
omap-l3-noc driver.

Fix this to mark the regions as XN by default.

Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoarm: print the cache config option in hex instead of decimal
Keerthy [Sat, 29 Oct 2016 09:49:09 +0000 (15:19 +0530)]
arm: print the cache config option in hex instead of decimal

Printing the option value in hex makes it more comprehensible.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoARM: dts: k2g-ice: fix typo in dt property ti2016.05-rc2
Murali Karicheri [Wed, 26 Oct 2016 18:32:16 +0000 (14:32 -0400)]
ARM: dts: k2g-ice: fix typo in dt property

fix the spelling of ti,min-output-impedance in the dts file to
match with the driver code which got fixed recently.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
7 years agoARM: dts: k2g-ice: change rx-internal-delay to recommended value
Murali Karicheri [Wed, 26 Oct 2016 18:32:15 +0000 (14:32 -0400)]
ARM: dts: k2g-ice: change rx-internal-delay to recommended value

Change the rx-internal-delay to 2.25 nsec per recommendations.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
7 years agoHACK: ARM: k2g: Program PadConfig_202 before locking RSTMUX8 ti2016.05-rc1
Suman Anna [Mon, 24 Oct 2016 05:36:55 +0000 (00:36 -0500)]
HACK: ARM: k2g: Program PadConfig_202 before locking RSTMUX8

The PADCONFIG_202 register (0x02621328) seems to be affected
by the locking of the RSTMUX8 register (0x02620328), and so
cannot be configured in kernel. Setup the pinmux for this pin
before locking the RSTMUX8 register to allow the ICSS1 PRU1
Ethernet PHY port to work properly.

Signed-off-by: Suman Anna <s-anna@ti.com>
7 years agoARM: k2g: setup PRU ethernet MAC addresses
Roger Quadros [Thu, 20 Oct 2016 09:59:24 +0000 (15:29 +0530)]
ARM: k2g: setup PRU ethernet MAC addresses

PRU ethernet MAC address range is present in the
board EEPROM. Parse it and setup eth?addr
environment variables.

Signed-off-by: Roger Quadros <rogerq@ti.com>
7 years agoti: common: board_detect: commodify ethaddr environment setting code
Roger Quadros [Thu, 20 Oct 2016 09:59:23 +0000 (15:29 +0530)]
ti: common: board_detect: commodify ethaddr environment setting code

As Keystone platforms also need this let's move this function
to the common board_detect code.

Signed-off-by: Roger Quadros <rogerq@ti.com>
7 years agoARM: k2g: Add board detection supprt
Franklin S Cooper Jr [Thu, 20 Oct 2016 09:59:22 +0000 (15:29 +0530)]
ARM: k2g: Add board detection supprt

To support multiple K2G evms enable support for board detection
currently used by OMAP based SOCs.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
7 years agoti_armv7_keystone2: Define scratch space in SRAM
Franklin S Cooper Jr [Thu, 20 Oct 2016 09:59:21 +0000 (15:29 +0530)]
ti_armv7_keystone2: Define scratch space in SRAM

Scratch space can be used for features such as board detection. Define
an area within SRAM that can be used for this purpose.

[rogerq@ti.com] Rename EEPROM macro

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
7 years agoti: common: board_detect: Rename EEPROM scratch start macro
Lokesh Vutla [Thu, 20 Oct 2016 09:59:20 +0000 (15:29 +0530)]
ti: common: board_detect: Rename EEPROM scratch start macro

Non OMAP platforms i.e. Keystone will also need to use the board
EEPROM helpers so let's make the macro platform independent.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: dts: k2g-ice: add dt node for netcp
Murali Karicheri [Fri, 21 Oct 2016 16:00:44 +0000 (12:00 -0400)]
ARM: dts: k2g-ice: add dt node for netcp

This patch adds dt node for DP83867 phy used on K2G ICE boards. And
also enable netcp device nodes for K2G ICE boards.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: dts: k2g-evm: remove unused phy-mode property from phy node
Murali Karicheri [Fri, 21 Oct 2016 16:00:43 +0000 (12:00 -0400)]
ARM: dts: k2g-evm: remove unused phy-mode property from phy node

This patch removes the unused phy-mode property from the phy dt node. On
K2G, currently link-interface determines if phy is used or not and is
already set to use rgmii. So this is not needed. Besides phy-mode should
be added to slave interface configuration of the cpsw driver, not in the
phy node.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agok2g: config enable ti phy dp83867 for k2g
Murali Karicheri [Fri, 21 Oct 2016 16:00:42 +0000 (12:00 -0400)]
k2g: config enable ti phy dp83867 for k2g

Enable ti phy driver dp83867 for k2g based boards.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agonet: netcp: add support for phy with rgmii ids
Murali Karicheri [Fri, 21 Oct 2016 16:00:41 +0000 (12:00 -0400)]
net: netcp: add support for phy with rgmii ids

Enhance the netcp driver to support phys that can be configured
for internal delay (rgmii-id, rgmii-rxid, rgmii-txid)

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: k2g: Add pinmux support for K2G RGMII interface
Murali Karicheri [Fri, 21 Oct 2016 16:00:40 +0000 (12:00 -0400)]
ARM: k2g: Add pinmux support for K2G RGMII interface

This add pinmux configuration for RGMII interface so that network driver
can be supported on ICE boards.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: dts: keystone-k2g-ice: Add support for QSPI
Vignesh R [Fri, 21 Oct 2016 06:30:34 +0000 (12:00 +0530)]
ARM: dts: keystone-k2g-ice: Add support for QSPI

K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT
entries for the same.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoARM: k2g: Add QSPI pinmux data for K2G ICE evm
Vignesh R [Fri, 21 Oct 2016 06:30:33 +0000 (12:00 +0530)]
ARM: k2g: Add QSPI pinmux data for K2G ICE evm

This patch adds QSPI pinmux data for K2G ICE EVM.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agospi: cadence_qspi_apb: Improve indirect write transaction
Vignesh R [Fri, 21 Oct 2016 06:30:32 +0000 (12:00 +0530)]
spi: cadence_qspi_apb: Improve indirect write transaction

If the write transaction size(write_bytes) is not a multiple of word
length, then issue word length writes till the we reach the dangling
bytes. On the final write, issue byte by byte write to complete the
transaction. This marginally improves write throughput when performing
random sized writes to the flash.

Signed-off-by: Vignesh R <vigneshr@ti.com>
7 years agoboard: ti: am572x-evm: Update pinmux using latest PMT
Lokesh Vutla [Wed, 19 Oct 2016 14:06:00 +0000 (19:36 +0530)]
board: ti: am572x-evm: Update pinmux using latest PMT

Update the board pinmux for AM572x-IDK board using latest PMT[1] and the
board files named am572x_gp_evm_A3a_sr2p0 that were autogenerated on
19th October, 2016.

[1] https://dev.ti.com/pinmux/app.html#/default/

Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoboard: ti: am572x-idk: Update pinmux using latest PMT
Lokesh Vutla [Wed, 19 Oct 2016 14:05:59 +0000 (19:35 +0530)]
board: ti: am572x-idk: Update pinmux using latest PMT

Update the board pinmux for AM572x-IDK board using latest PMT[1] and the
board files named am572x_idk_v1p3b_sr2p0 that were autogenerated on
20th October, 2016.

[1] https://dev.ti.com/pinmux/app.html#/default/

Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoHACK: keystone2: k2g-ice: Update MAINTAINERS file.
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:40 +0000 (13:13 -0500)]
HACK: keystone2: k2g-ice: Update MAINTAINERS file.

Add information regarding the addition of the K2G ICE evm specific
defconfig.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoHACK: defconfig: k2g_ice_evm: Create board specific defconfig
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:39 +0000 (13:13 -0500)]
HACK: defconfig: k2g_ice_evm: Create board specific defconfig

Currently U-boot for 66AK2Gx isn't able to differentiate between
the general purpose evm and industrial communications engine evm
at runtime. Therefore, a unique defconfig for each evm must be
created to differentiate between the boards at build time.

This config is specific to the industrial communications engine evm.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: dts: k2g: Add DT support for K2G ICE evm
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:38 +0000 (13:13 -0500)]
ARM: dts: k2g: Add DT support for K2G ICE evm

Add basic DT support for K2G ICE evm. Support is primarily for UART
support and MMC.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: dts: k2g: Disable netcp by default
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:37 +0000 (13:13 -0500)]
ARM: dts: k2g: Disable netcp by default

Disable netcp by default like all other peripherals in the dtsi file.
Enable the peripheral explicitly in the board specific dts file.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Update board_name u-boot env variable at runtime
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:36 +0000 (13:13 -0500)]
ARM: k2g: Update board_name u-boot env variable at runtime

Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG and CONFIG_BOARD_LATE_INIT
to allow "board_name" to be set depending on the board it is being ran on.

Update findfdt to use this new dynamic board_name value to determine
which dtb should be used.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Use board detection to wrap K2G GP specific calls
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:35 +0000 (13:13 -0500)]
ARM: k2g: Use board detection to wrap K2G GP specific calls

Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or
configuration is slightly different. Therefore, use board detection to
deal with these variations.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoboard: ks2: Use board detection to wrap K2G GP specific code
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:34 +0000 (13:13 -0500)]
board: ks2: Use board detection to wrap K2G GP specific code

Some K2G specific code is only true on the GP evm. Therefore, use board
detection to wrap these calls.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Add DDR3 configuration for K2G ICE evm
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:33 +0000 (13:13 -0500)]
ARM: k2g: Add DDR3 configuration for K2G ICE evm

Add configuration settings used by the K2G ICE evm. Also use board
detection to determine which DDR3 configuration to use.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Add pinmux support for K2G ICE evm
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:32 +0000 (13:13 -0500)]
ARM: k2g: Add pinmux support for K2G ICE evm

Add pinmux data for new K2G ICE evm

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoHACK: ks2_evm: Add k2g ice evm detection
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:31 +0000 (13:13 -0500)]
HACK: ks2_evm: Add k2g ice evm detection

Add a function that can be used to determine if the board being ran on
is a K2G Industrial Communication Engine EVM. Currently this is
handled by configs which means board detection is handled at build time
rather than at runtime.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoHACK: ks2_evm: Add k2g gp evm detection
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:30 +0000 (13:13 -0500)]
HACK: ks2_evm: Add k2g gp evm detection

Add a function that can be used to determine if the board being ran on
is a K2G general purpose evm. Currently this is handled by configs which
means board detection is handled at build time rather than at runtime.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoHACK: defconfig: k2g_gp_evm: Make config board specific
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:29 +0000 (13:13 -0500)]
HACK: defconfig: k2g_gp_evm: Make config board specific

Currently U-boot for 66AK2Gx isn't able to differentiate between
the general purpose evm and industrial communications engine evm
at runtime. Therefore, a unique defconfig for each evm must be
created to differentiate between the boards at build time.

An additional config option is added to this defconfig to aid in
build time board detection. Thus making this config specific to
the general purpose evm.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoHACK: ARM: k2g: Add K2G GP EVM Kconfig option
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:28 +0000 (13:13 -0500)]
HACK: ARM: k2g: Add K2G GP EVM Kconfig option

To enable build time configuration for the various 66AK2G evms a
new config must be created. This config will be used to determine if
the current board is the K2G general purpose evm rather than the
industrial evm.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:27 +0000 (13:13 -0500)]
ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables

Different K2G evms may need to program the various
KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use
the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to
properly program the register.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: k2g: Program DDR PHY MR2 register with the default value
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:26 +0000 (13:13 -0500)]
ARM: k2g: Program DDR PHY MR2 register with the default value

K2G GP doesn't require the MR2 register to be programed since the
default is good enough. However, newer K2G boards do need to change
this register value. Therefore, instead of not writing this register if
ran on a K2G board just program the value to be written to match the
default/reset value.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agoARM: keystone2: Add additional fields used for DDR3 configuration
Franklin S Cooper Jr [Tue, 18 Oct 2016 18:13:25 +0000 (13:13 -0500)]
ARM: keystone2: Add additional fields used for DDR3 configuration

Future boards will need to configure DDR3 registers in a slightly
different manner. Support this by defining additional variables and
defines that will be utilized later.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
7 years agodrivers: mmc: omap_hsmmc: use regulator APIs to set IO voltage
Kishon Vijay Abraham I [Tue, 18 Oct 2016 13:03:17 +0000 (18:33 +0530)]
drivers: mmc: omap_hsmmc: use regulator APIs to set IO voltage

Now that palmas/gpio regulator drivers are converted to DM model
(both being used by MMC to drive IO lines), use regulator APIs
to set the IO voltage. These APIs provides a uniform way for the
omap_hsmmc driver to enable the regulators without actually knowing
if a PMIC regulator or gpio regulator is used underneath.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
7 years agoconfigs: am57xx_hs_evm_defconfig: Enable PALMAS pmic/regulator config options
Keerthy [Mon, 17 Oct 2016 09:10:19 +0000 (14:40 +0530)]
configs: am57xx_hs_evm_defconfig: Enable PALMAS pmic/regulator config options

Enable palmas PMIC config options.

Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoconfigs: dra7xx_hs_evm_defconfig: Enable pmic/regulator options
Keerthy [Mon, 17 Oct 2016 09:10:18 +0000 (14:40 +0530)]
configs: dra7xx_hs_evm_defconfig: Enable pmic/regulator options

Enable pmic/regulator config options.

Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoarm: dts: dra71-evm: lp873x: Remove the unwanted individual compatibles
Keerthy [Mon, 17 Oct 2016 09:10:17 +0000 (14:40 +0530)]
arm: dts: dra71-evm: lp873x: Remove the unwanted individual compatibles

Remove the unwanted individual regulator compatibles.

Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoconfigs: dra7xx_evm_defconfig: Enable GPIO REGULATOR config option
Keerthy [Mon, 17 Oct 2016 09:10:16 +0000 (14:40 +0530)]
configs: dra7xx_evm_defconfig: Enable GPIO REGULATOR config option

Enable GPIO REGULATOR config options.

Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agoconfigs: dra7xx_evm_defconfig: Enable lp873x options
Keerthy [Mon, 17 Oct 2016 09:10:15 +0000 (14:40 +0530)]
configs: dra7xx_evm_defconfig: Enable lp873x options

Enable lp873x PMIC config options.

Signed-off-by: Keerthy <j-keerthy@ti.com>
7 years agopower: regulator: lp873x: Add regulator support
Keerthy [Mon, 17 Oct 2016 09:10:14 +0000 (14:40 +0530)]
power: regulator: lp873x: Add regulator support

commit 99785de83e8198b5d5468453d49a8735b048983d

The driver provides regulator set/get voltage
enable/disable functions for lp873x family of PMICs.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agopower: pmic: lp873x: Add the base pmic support
Keerthy [Mon, 17 Oct 2016 09:10:13 +0000 (14:40 +0530)]
power: pmic: lp873x: Add the base pmic support

commit ca1de0b5456e630522c0afe5a556e6851b8afe1e upstream

Add support to bind the regulators/child nodes with the pmic.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agoconfigs: am57xx_evm_defconfig: Enable CMD_REG option
Keerthy [Mon, 17 Oct 2016 09:10:12 +0000 (14:40 +0530)]
configs: am57xx_evm_defconfig: Enable CMD_REG option

commit 08941bb99d0f668273cda13283e43e7ee227474d upstream

Enable CMD_REG option.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoconfigs: am57xx_evm_defconfig: Enable ERRNO_STR config
Keerthy [Mon, 17 Oct 2016 09:10:11 +0000 (14:40 +0530)]
configs: am57xx_evm_defconfig: Enable ERRNO_STR config

This is needed for compiling with CMD_REG option enabled.

Signed-off-by: Keerthy <j-keerthy@ti.com>