glsdk/infoadas-u-boot.git
3 years agoboard: dra7xx: Pin-mux changes for Vin2a and Vin3a in TDA2px infoadas-on-psdkla3.03 REL_VISION_SDK_03_02_00_00 VISION_SDK_03_02_00_03
Jithin K S [Thu, 23 Nov 2017 11:02:30 +0000 (16:32 +0530)]
board: dra7xx: Pin-mux changes for Vin2a and Vin3a in TDA2px

VIP capture based use-cases are now enabled on J6-Plus, Set-up pin-mux from
boot-loader.

Signed-off-by: Jithin K S <x0272999@bangvideoapps02>
3 years agoboard: dra7xx: Board-mux changes to enable VIN2A and VIN3A in TDA2px
Jithin K S [Mon, 20 Nov 2017 11:06:10 +0000 (16:36 +0530)]
board: dra7xx: Board-mux changes to enable VIN2A and VIN3A in TDA2px

With sensor init migrated to M4, bootloader needs to setup board-muxes needed
to enable VIN2A and VIN3A in J6-Plus

Signed-off-by: Jithin K S <x0272999@bangvideoapps02>
3 years agospl: Read correct registers while setting up vsdk clocks VISION_SDK_03_02_00_02
Shravan Karthik [Fri, 15 Dec 2017 08:53:39 +0000 (14:23 +0530)]
spl: Read correct registers while setting up vsdk clocks

Ensure CM_EVE3_CLKSTCTRL and CM_CAM_CLKSTCTRL registers are read and then
apply bit-wise operators

Signed-off-by: Shravan Karthik <shravan.karthik@ti.com>
3 years agoti: evm: Enable all peripheral clocks in SPL REL_INFOADAS_03_00_00_01 REL_VISION_SDK_03_01_00_00 REL_VISION_SDK_03_01_00_00_RC3
Nikhil Devshatwar [Thu, 5 Oct 2017 08:30:06 +0000 (14:00 +0530)]
ti: evm: Enable all peripheral clocks in SPL

All peripherals used by Vision SDK are getting configured **only**
in the late attach path. Otherwise there is a dependency on kernel
to setup clocks for some of the peripherals.

To partition devices in a clean way, all PRCM for Vision SDK should
happen from bootloader SPL.

Move the peripheral clock initialization sequence before the
spl_load_cores

Also fixed i2c5 clock enable issue by configuring IPU clock domain

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
3 years agospl: dra7xx: Add support to decompress lzop compressed images
Shravan Karthik [Fri, 8 Sep 2017 06:24:09 +0000 (11:54 +0530)]
spl: dra7xx: Add support to decompress lzop compressed images

Lzop compressed image reduce  the binary size by ~75% subsequently decreasing
the time needed to load image from permanent storage. The compressed image is
read from storage as part of loading the remote-core binary and is decompressed
to the load-address specified for each core

Change-Id: I7607575f6f43480b913580b525d12573edd6be9e

3 years agolate-attach: Config pheripherals needed by remote-procs
Shravan Karthik [Fri, 28 Apr 2017 05:31:18 +0000 (11:01 +0530)]
late-attach: Config pheripherals needed by remote-procs

Enable timers for remote-cores. For IPU-2 (primary IPU-core), enable I2C and
VIP clocks which is necessary for video-capture

late-attach: Modify CMA address of RCs and update load address from storage

include: configs: Increase the size of the RC binaries loaded to 12MB from 8MB

include: configs: set dtb name to default dra7-evm.dtb

Change-Id: I202fc8be29012eb96a6f95e91d212b917532f064

3 years agospl: Setup clocks and board muxes based on board
Shravan Karthik [Mon, 21 Aug 2017 09:33:58 +0000 (15:03 +0530)]
spl: Setup clocks and board muxes based on board

With i2c devices partitioned between Linux and RTOS, there
are common board muxes that need to be setup by uboot before
any of Linux or RTOS runs.
Setup board muxes for ethernet and camera for J6eco

Also, for some peripherals used by Vision SDK, clocks for them
needs to be enabled by bootloader.
Add support for enabling I2C5 and ISS clocks

Change-Id: I8d258419244686b46ea93b2907d1c3043f9c4ad1
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
3 years agoconfig: sync from dra7xx_evm_defconfig
Nikhil Devshatwar [Tue, 29 Aug 2017 14:06:06 +0000 (19:36 +0530)]
config: sync from dra7xx_evm_defconfig

Sync with dra7xx_evm_defconfig
Add support for J6Plus DTB in 2nd stage

Add late-attach support for dra7xx_evm_vision_defconfig

Change-Id: Iac09daed65cf3119f7479c7ef17d8df1f539186c
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
3 years agoti: dra71: Add J6entry vision pinmux processor-sdk-linux-automotive-3.03.00.03
Nikhil Devshatwar [Tue, 22 Aug 2017 08:12:01 +0000 (13:42 +0530)]
ti: dra71: Add J6entry vision pinmux

Add pinmux data for J6entry when used with vision board.
This enables all vin1a, vin1b, vin2a, vin2b ports in 8bit mode
and sets up the required iodelay configuration.

Change-Id: I9c749e8274a9f7335fc0d713ec4b19cc1e13f3b7
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
3 years agoti: dra72: mux_data: Fix vision pinmux
Nikhil Devshatwar [Tue, 22 Aug 2017 08:11:33 +0000 (13:41 +0530)]
ti: dra72: mux_data: Fix vision pinmux

On DRA72x platform, adding vision pinmux would disable
one of the ethernet port
But in RevC onwards boards, another ethernet port can be used
as an alternative.

For this, the vision pinmux needs to be done after the ethernet
pads are configured (Some of the vision pads will overwrite ethernet pads)

Change-Id: Icb4ee461ff9a82b2a2edb53c2ad043b70ed22be9
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
3 years agoam57x: android: add vendor partition
Praneeth Bajjuri [Wed, 23 Aug 2017 20:56:52 +0000 (15:56 -0500)]
am57x: android: add vendor partition

Add a new vendor parition for Android

Change-Id: Ib63926fe6a6423fc97a49306bb927225003c5827
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
3 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti... processor-sdk-linux-automotive-3.03.00.01
Praneeth Bajjuri [Mon, 28 Aug 2017 06:07:30 +0000 (01:07 -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:
  arm: omap: enable high speed mode support in SPL for the eMMC on DRA76x
  ARM: dts: dra76-evm: add higher speed MMC/SD modes
  ARM: dts: dra76-evm: shift to using common IOdelay data
  ARM: dts: dra76x: create a common file with MMC/SD IOdelay data
  ARM: DRA72x: Add support for detection of DRA71x SR 2.1

Change-Id: I6e100695a70d55683a66bf8c8430e5245831e6dc
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
3 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Fri, 25 Aug 2017 17:04:58 +0000 (12:04 -0500)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  arm: omap: enable high speed mode support in SPL for the eMMC on DRA76x
  ARM: dts: dra76-evm: add higher speed MMC/SD modes
  ARM: dts: dra76-evm: shift to using common IOdelay data
  ARM: dts: dra76x: create a common file with MMC/SD IOdelay data
  ARM: DRA72x: Add support for detection of DRA71x SR 2.1

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
3 years agoarm: omap: enable high speed mode support in SPL for the eMMC on DRA76x
Jean-Jacques Hiblot [Thu, 15 Jun 2017 14:00:02 +0000 (16:00 +0200)]
arm: omap: enable high speed mode support in SPL for the eMMC on DRA76x

commit 8fbc46c73738 ("arm: omap: enable high speed mode support in SPL for the eMMC on DRA76x") branch ti-u-boot-2017.01

Supporting DDR52 and HS200 modes requires that the pinmux and iodelays are
properly programmed with platform specific values. This commit provides the
same information as the dts does but in a manner that's usable by the SPL.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: dts: dra76-evm: add higher speed MMC/SD modes
Jean-Jacques Hiblot [Thu, 24 Aug 2017 14:09:57 +0000 (16:09 +0200)]
ARM: dts: dra76-evm: add higher speed MMC/SD modes

commit 2f4f581cb1a0 ("ARM: dts: dra76-evm: add higher speed MMC/SD modes") branch ti-u-boot-2017.01

The SD card interface on DRA76x EVM can support
high speed SD cards. The eMMC onboard can support
up to HS200 mode.

Enable support for these higher speed modes in the
device-tree file.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: dts: dra76-evm: shift to using common IOdelay data
Jean-Jacques Hiblot [Thu, 24 Aug 2017 14:09:18 +0000 (16:09 +0200)]
ARM: dts: dra76-evm: shift to using common IOdelay data

commit e685f74757bb ("ARM: dts: dra76-evm: shift to using common IOdelay data") branch ti-u-boot-2017.01

Now that we have a device-tree include file with common
MMC/SD IOdelay data for DRA76x SoC, shift the EVM device-tree
file to using that.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: dts: dra76x: create a common file with MMC/SD IOdelay data
Jean-Jacques Hiblot [Thu, 24 Aug 2017 14:08:36 +0000 (16:08 +0200)]
ARM: dts: dra76x: create a common file with MMC/SD IOdelay data

commit 0651917fe691 ("ARM: dts: dra76x: create a common file with MMC/SD IOdelay data") branch ti-u-boot-2017.01

Add a common device-tree include file with MMC/SD IOdelay data
for DRA76x SoC based on the linux DTSI file.

In the most common case, IOdelay data available in datamanual
can directly be used. This file caters to that common case.

Data is based on DRA76x datamanual, SPRS993A, revised July 2017.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: DRA72x: Add support for detection of DRA71x SR 2.1
Vishal Mahaveer [Tue, 15 Aug 2017 16:37:35 +0000 (11:37 -0500)]
ARM: DRA72x: Add support for detection of DRA71x SR 2.1

commit c130009298ef6503e906a2bfed150dbb5f0ff381 branch ti-u-boot-2017.01

DRA71x processors are reduced pin and software compatible
derivative of DRA72 processors. Add support for detection
of SR2.1 version of DRA71x family of processors.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agodra7xx: android: add vendor partition
Vishal Mahaveer [Tue, 22 Aug 2017 21:47:34 +0000 (16:47 -0500)]
dra7xx: android: add vendor partition

Add a new vendor parition for Android

Change-Id: Ib77ad4ee5582a128c802628df58d85b975eab5f9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agofastboot: sparse: remove session-id logic
Steve Rae [Tue, 7 Jun 2016 18:19:35 +0000 (11:19 -0700)]
fastboot: sparse: remove session-id logic

commit 64ece84854ae49f40e9b9d4d88502247774f9d2f upstream.

This "session-id" alogrithm is not required, and currently corrupts
the stored image whenever more the one "session" is required.

Conflicts:
common/fb_mmc.c

Change-Id: Icd660c17515e885a00a4cf1d48acab1d84e688f7
Signed-off-by: Steve Rae <srae@broadcom.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 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, 7 Aug 2017 15:28:23 +0000 (10:28 -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:
  ARM: dts: dra76-evm: Add initial support
  ARM: dts: dra7-evm: sync DT with Linux
  configs: ti_omap5_common: Select dtb name for dra76
  board: ti: dra76-evm: Add support for powering on mmc ldo
  board: ti: dra76-evm: Add the pinmux data
  board: ti: dra76-evm: Add DDR data
  board: ti: dra76-evm: Add the pmic data
  board: ti: dra76-evm: Add epprom support
  arm: dra76: Add support for ES1.0 detection
  configs: dra7xx: Enable LP87565 related configs
  power: regulator: palmas: Add smps12 dual regulator for tps65917
  power: regulator: lp87565: add regulator support
  power: pmic: lp87565: Add the basic pmic support
  palmas: Add support for powering different ldos
  arm: omap5+: Add board specific ldo powering
  spi: ti_qspi: Fix baudrate divider calculation

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

Change-Id: I05447e3e5dab5bcad0dd0469579d95f293563c97

3 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Fri, 4 Aug 2017 02:13:35 +0000 (21:13 -0500)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  ARM: dts: dra76-evm: Add initial support
  ARM: dts: dra7-evm: sync DT with Linux
  configs: ti_omap5_common: Select dtb name for dra76
  board: ti: dra76-evm: Add support for powering on mmc ldo
  board: ti: dra76-evm: Add the pinmux data
  board: ti: dra76-evm: Add DDR data
  board: ti: dra76-evm: Add the pmic data
  board: ti: dra76-evm: Add epprom support
  arm: dra76: Add support for ES1.0 detection
  configs: dra7xx: Enable LP87565 related configs
  power: regulator: palmas: Add smps12 dual regulator for tps65917
  power: regulator: lp87565: add regulator support
  power: pmic: lp87565: Add the basic pmic support
  palmas: Add support for powering different ldos
  arm: omap5+: Add board specific ldo powering
  spi: ti_qspi: Fix baudrate divider calculation

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
3 years agoARM: dts: dra76-evm: Add initial support
Lokesh Vutla [Mon, 31 Jul 2017 11:28:15 +0000 (13:28 +0200)]
ARM: dts: dra76-evm: Add initial support

Add initial dts support for dra76-evm.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: dts: dra7-evm: sync DT with Linux
Jean-Jacques Hiblot [Mon, 24 Jul 2017 15:12:03 +0000 (15:12 +0000)]
ARM: dts: dra7-evm: sync DT with Linux

Syncrhonized dts with 4.4 Linux

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoconfigs: ti_omap5_common: Select dtb name for dra76
Lokesh Vutla [Mon, 24 Jul 2017 15:12:02 +0000 (15:12 +0000)]
configs: ti_omap5_common: Select dtb name for dra76

Select dtb name for dra76-evm.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: ti: dra76-evm: Add support for powering on mmc ldo
Lokesh Vutla [Mon, 24 Jul 2017 15:12:01 +0000 (15:12 +0000)]
board: ti: dra76-evm: Add support for powering on mmc ldo

ldo4 is used to poweron mmc on dra76-evm. Enable it.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: ti: dra76-evm: Add the pinmux data
Lokesh Vutla [Mon, 24 Jul 2017 15:12:00 +0000 (15:12 +0000)]
board: ti: dra76-evm: Add the pinmux data

Adding pinmux and IODELAY data for dra76-evm.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: ti: dra76-evm: Add DDR data
Lokesh Vutla [Mon, 24 Jul 2017 15:11:59 +0000 (15:11 +0000)]
board: ti: dra76-evm: Add DDR data

dra76-evm has the ddr parts connectedi running at 666MHz:
EMIF1: MT41K512M16HA-125 AIT:A  x 2
EMIF2: MT41K512M8RH-125-AAT:E x 4
Add support for configuring the above DDR parts.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: ti: dra76-evm: Add the pmic data
Keerthy [Mon, 24 Jul 2017 15:11:58 +0000 (15:11 +0000)]
board: ti: dra76-evm: Add the pmic data

dra76-evm uses lp8736 and tps65917 pmic for powering on
various peripherals. Add data for these pmics and register
for dra76-evm.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: ti: dra76-evm: Add epprom support
Lokesh Vutla [Mon, 24 Jul 2017 15:11:57 +0000 (15:11 +0000)]
board: ti: dra76-evm: Add epprom support

The dra76-evm is a board based on TI's DRA76 processor
Add eeprom support

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoarm: dra76: Add support for ES1.0 detection
Praneeth Bajjuri [Mon, 24 Jul 2017 15:11:56 +0000 (15:11 +0000)]
arm: dra76: Add support for ES1.0 detection

dra76 family is a high-performance, infotainment application
device, based on OMAP architecture on a 28-nm technology.
This contains most of the subsystems, peripherals that are
available on dra74, dra72 family. This SoC mainly features
Subsystems:
- 2 x Cortex-A15 with max speed of 1.8GHz
- 2 X DSP
- 2 X Cortex-M4 IPU
- ISS
- CAL
- DSS
- VPE
- VIP
Connectivity peripherals:
- 1 USB3.0 and 3 USB2.0 subsystems
- 2 x SATA
- 2 x PCI Express Gen2
- 3-port Gigabit ethernet switch
- 2 x CAN
- MCAN
More information can be found here[1].

Adding CPU detection support for the dra76 ES1.0 soc
and update prcm, control module, dplls data.

[1] TBD

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoconfigs: dra7xx: Enable LP87565 related configs
Keerthy [Mon, 24 Jul 2017 15:11:55 +0000 (15:11 +0000)]
configs: dra7xx: Enable LP87565 related configs

Enable LP87565 related configs

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agopower: regulator: palmas: Add smps12 dual regulator for tps65917
Keerthy [Mon, 24 Jul 2017 15:11:54 +0000 (15:11 +0000)]
power: regulator: palmas: Add smps12 dual regulator for tps65917

commit 75bceb22b3ed6882daa5933c3eb353364c7a7c83 upstream

Add smps12 dual regulator for tps65917

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agopower: regulator: lp87565: add regulator support
Keerthy [Mon, 24 Jul 2017 15:11:53 +0000 (15:11 +0000)]
power: regulator: lp87565: add regulator support

commit 2dd9dc02a3fa1f8c244482e180415d19a5ead929 upstream

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

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agopower: pmic: lp87565: Add the basic pmic support
Keerthy [Mon, 24 Jul 2017 15:11:52 +0000 (15:11 +0000)]
power: pmic: lp87565: Add the basic pmic support

commit cdad57a7c1ab7c226f3997245229445b628a5f2a upstream

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

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agopalmas: Add support for powering different ldos
Lokesh Vutla [Mon, 31 Jul 2017 14:00:11 +0000 (16:00 +0200)]
palmas: Add support for powering different ldos

It is not necessary that ldo1 is used to power on mmc.
So, add support for passing ldo registers for powering on mmc.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoarm: omap5+: Add board specific ldo powering
Lokesh Vutla [Mon, 24 Jul 2017 15:11:50 +0000 (15:11 +0000)]
arm: omap5+: Add board specific ldo powering

It is not necessary all omap5+ based uses the same PMIC
to poweron mmc. So add support for enabling mmc based on board.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agospi: ti_qspi: Fix baudrate divider calculation
Vignesh R [Sat, 5 Nov 2016 10:35:16 +0000 (16:05 +0530)]
spi: ti_qspi: Fix baudrate divider calculation

commit 948b8bbd5fc4 ("spi: ti_qspi: Fix baudrate divider calculation") branch ti-u-boot-2017.01

Fix the divider calculation logic to choose a value so that the
resulting baudrate is either equal to or closest possible baudrate less
than the requested value. While at that, cleanup ti_spi_set_speed().

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
David Huang [Tue, 25 Jul 2017 23:39:46 +0000 (18:39 -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

Manual Merge of:

TI-Feature: 2016.05
TI-Tree: git://git.ti.com/ti-u-boot/ti-u-boot.git
TI-Branch: ti-u-boot-2016.05

Signed-off-by: David Huang <d-huang@ti.com>
Conflicts:
include/configs/am57xx_evm.h
include/configs/dra7xx_evm.h

3 years agoRevert "fastboot: flash: add buffer overflow check for cmd"
David Huang [Tue, 25 Jul 2017 23:37:44 +0000 (18:37 -0500)]
Revert "fastboot: flash: add buffer overflow check for cmd"

This change prevents fastboot from flashing u-boot.img
to SPI with normal fastboot flash process.

This reverts commit 3c7d22946028ca84019268f884d112dd89116ce1.

3 years agoRevert "fastboot: erase QSPI boot areas only when necessary"
David Huang [Tue, 25 Jul 2017 23:36:54 +0000 (18:36 -0500)]
Revert "fastboot: erase QSPI boot areas only when necessary"

This change prevents fastboot from flashing u-boot.img
to SPI with normal fastboot flash process.

This reverts commit 3100c1e4fc33d463cba2d0943bf1da43e3dcfce2.

3 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Sat, 22 Jul 2017 02:13:25 +0000 (21:13 -0500)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  dra7xx_evm/am57xx_evm: update the default GPT table for eMMC
  arm: am57xx: Define Android partition table

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
3 years agodra7xx_evm/am57xx_evm: update the default GPT table for eMMC
Jean-Jacques Hiblot [Tue, 18 Jul 2017 15:08:11 +0000 (17:08 +0200)]
dra7xx_evm/am57xx_evm: update the default GPT table for eMMC

commit 6f3f23b50912 ("dra7xx_evm/am57xx_evm: update the default GPT table for eMMC") branch ti-u-boot-2017.01

The layout of the eMMC has been updated in commit 33348a383808
("ARM: ti: Update layout for MMC and eMMC (env and dfu)"). This patch
updates the GPT table for android to match this new layout for the
following items:
 - xloader,
 - u-boot
 - the u-boot environment variables
 - the DTB (aka os args, aka environment)

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoarm: am57xx: Define Android partition table
Semen Protsenko [Mon, 31 Oct 2016 17:53:38 +0000 (19:53 +0200)]
arm: am57xx: Define Android partition table

commit a42cfa4f82ef ("arm: am57xx: Define Android partition table") branch ti-u-boot-2017.01

"fastboot oem format" command reuses "gpt write" command, which in turn
requires correct partitions defined in $partitions variable. This patch
adds such definition of Android partitions for DRA7XX EVM board.

By default $partitions variable contains Linux partition table. In order
to prepare Android environment one can run next commands from U-Boot
shell:

    => env set partitions $partitions_android
    => env save

After those operations one can go to fastboot mode and perform
"fastboot oem format" to create Android partition table.

While at it, enable CONFIG_RANDOM_UUID to spare user from providing
UUIDs for each partition manually.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agofastboot: erase QSPI boot areas only when necessary
Venkateswara Rao Mandela [Wed, 8 Mar 2017 15:15:55 +0000 (20:45 +0530)]
fastboot: erase QSPI boot areas only when necessary

When switching to QSPI in fastboot using "fastboot oem spi" command, the
default was to erase the MLO and u-boot.img regions. This requires us to
flash the binaries each time we use "fastboot oem spi" irrespective of
whether we want to flash the binaries.

1. Instead use "update" command to flash the binaries. This command erases
QSPI sectors only if necessary.

2. Remove the code to always erase QSPI in fastboot.

Change-Id: I59cac981373d23a9a1fcda28e0a0d96802b78197
Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com>
3 years agofastboot: flash: add buffer overflow check for cmd
Venkateswara Rao Mandela [Wed, 8 Mar 2017 15:14:34 +0000 (20:44 +0530)]
fastboot: flash: add buffer overflow check for cmd

As the sf flash commands are generated using sprintf, there is
possibilty of buffer overflow between commands. To avoid this issue, we
define a macro for the length of the command buffer and use snprintf to
prevent buffer overflow.

Change-Id: I2ea0a9113067238cdca9d2015c6e8b11602b1b01
Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com>
3 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
David Huang [Tue, 18 Jul 2017 10:01:51 +0000 (05:01 -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

Auto Merge of:

TI-Feature: 2016.05
TI-Tree: git://git.ti.com/ti-u-boot/ti-u-boot.git
TI-Branch: ti-u-boot-2016.05

* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
  arm: omap: enable high speed mode support in SPL for the eMMC on AM572 and AM571
  arm: omap: enable high speed mode support in SPL for the eMMC on DRA7x and DRA72.
  drivers: omap_hsmmc: Add debug information about the selected timing
  drivers: omap_hsmmc: If DM_MMC is not used, get the iodelays and the pinmux from the platform code
  mmc: omap_hsmmc: support for HS200 and DDR52 modes without DM_MMC
  mmc: omap_hsmmc: re-arrange code layout.
  mmc: omap_hsmmc: Configure PBIAS only for MMC1
  mmc: omap_hsmmc: Enable ADMA support even if DM_MMC is not used
  omap: Update the base address of the MMC controllers
  drivers: mmc: fall back to lower performance modes if HS200 or DDR52 fail during the initialization

Signed-off-by: David Huang <d-huang@ti.com>
3 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Tue, 18 Jul 2017 02:13:23 +0000 (21:13 -0500)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  arm: omap: enable high speed mode support in SPL for the eMMC on AM572 and AM571
  arm: omap: enable high speed mode support in SPL for the eMMC on DRA7x and DRA72.
  drivers: omap_hsmmc: Add debug information about the selected timing
  drivers: omap_hsmmc: If DM_MMC is not used, get the iodelays and the pinmux from the platform code
  mmc: omap_hsmmc: support for HS200 and DDR52 modes without DM_MMC
  mmc: omap_hsmmc: re-arrange code layout.
  mmc: omap_hsmmc: Configure PBIAS only for MMC1
  mmc: omap_hsmmc: Enable ADMA support even if DM_MMC is not used
  omap: Update the base address of the MMC controllers
  drivers: mmc: fall back to lower performance modes if HS200 or DDR52 fail during the initialization

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
3 years agoarm: omap: enable high speed mode support in SPL for the eMMC on AM572 and AM571
Jean-Jacques Hiblot [Thu, 13 Jul 2017 08:04:24 +0000 (10:04 +0200)]
arm: omap: enable high speed mode support in SPL for the eMMC on AM572 and AM571

commit e70996a45ef2 ("arm: omap: enable high speed mode support in SPL for the eMMC on AM572 and AM571") branch ti-u-boot-2017.01

Supporting DDR52 and HS200 modes requires that the pinmux and iodelays are
properly programmed with platform specific values. This commit provides the
same information as the dts does but in a manner that's usable by the SPL.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoarm: omap: enable high speed mode support in SPL for the eMMC on DRA7x and DRA72.
Jean-Jacques Hiblot [Thu, 13 Jul 2017 08:05:30 +0000 (10:05 +0200)]
arm: omap: enable high speed mode support in SPL for the eMMC on DRA7x and DRA72.

commit a8a6b928d03f ("arm: omap: enable high speed mode support in SPL for the eMMC on DRA7x and DRA72.") branch ti-u-boot-2017.01

Supporting DDR52 and HS200 modes requires that the pinmux and iodelays are
properly programmed with platform specific values. This commit provides the
same information as the dts does but in a manner that's usable by the SPL.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agodrivers: omap_hsmmc: Add debug information about the selected timing
Jean-Jacques Hiblot [Tue, 18 Apr 2017 08:36:12 +0000 (10:36 +0200)]
drivers: omap_hsmmc: Add debug information about the selected timing

commit 63d2902ff6da ("drivers: omap_hsmmc: Add debug information about the selected timing") branch ti-u-boot-2017.01

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agodrivers: omap_hsmmc: If DM_MMC is not used, get the iodelays and the pinmux from...
Jean-Jacques Hiblot [Thu, 13 Jul 2017 09:17:15 +0000 (11:17 +0200)]
drivers: omap_hsmmc: If DM_MMC is not used, get the iodelays and the pinmux from the platform code

based on commit e762451dbcc2 ("drivers: omap_hsmmc: In SPL get the iodelays
and the pinmux from the platform code") branch ti-u-boot-2017.01

The iodelays and pinmux information is platform specific. Since the SPL
can embed only one dts, getting this information from it would mean to have
one SPL binary for each platform.
In order to keep the ability to run the same SPL binary on several
platforms, the iodelays and pinmux configurations used by the SPL are
provided by the platform code.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: support for HS200 and DDR52 modes without DM_MMC
Jean-Jacques Hiblot [Mon, 3 Jul 2017 13:34:11 +0000 (15:34 +0200)]
mmc: omap_hsmmc: support for HS200 and DDR52 modes without DM_MMC

In order to support HS200 and DDR52 modes in the SPL, we need to make them
available even when DM_MMC is not used.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: re-arrange code layout.
Jean-Jacques Hiblot [Mon, 26 Jun 2017 14:35:04 +0000 (16:35 +0200)]
mmc: omap_hsmmc: re-arrange code layout.

This a a preparatory work before introducing support for high speed modes
without DM_MMC. There is no functional change. Some functions are moved
out of a big "#ifdef CONFIG_DM_MMC" block and before omap_mmc_init().

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: Configure PBIAS only for MMC1
Jean-Jacques Hiblot [Mon, 26 Jun 2017 14:31:26 +0000 (16:31 +0200)]
mmc: omap_hsmmc: Configure PBIAS only for MMC1

PBIAS only applies to MMC1.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: Enable ADMA support even if DM_MMC is not used
Jean-Jacques Hiblot [Mon, 26 Jun 2017 14:26:47 +0000 (16:26 +0200)]
mmc: omap_hsmmc: Enable ADMA support even if DM_MMC is not used

This allows to use ADMA in the SPL and when building with no DT support.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoomap: Update the base address of the MMC controllers
Jean-Jacques Hiblot [Fri, 12 May 2017 15:55:44 +0000 (17:55 +0200)]
omap: Update the base address of the MMC controllers

Align the base address defined in header files with the base address used
in the DTS. This will facilitate the introduction of the DMA support.

Of all HSMMC users, only omap3 doesn't have the 0x100 reserved region at
the top. This region will be used to determine if the controller supports
DMA transfers

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agodrivers: mmc: fall back to lower performance modes if HS200 or DDR52 fail during...
Jean-Jacques Hiblot [Thu, 20 Apr 2017 15:54:25 +0000 (17:54 +0200)]
drivers: mmc: fall back to lower performance modes if HS200 or DDR52 fail during the initialization

commit e14ac74b66e3 ("drivers: mmc: fall back to lower performance modes if HS200 or DDR52 fail during the initialization") branch ti-u-boot-2017.01

If the initialization fails when trying to use HS200 or DDR52, then remove
the failing capability for the capabilities supported by the host and
restart the whole initialization process.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/maint-ti-u-boot into...
David Huang [Thu, 6 Jul 2017 21:49:10 +0000 (16:49 -0500)]
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/maint-ti-u-boot into p-ti-u-boot-2016.05

Manual Merge of:

TI-Feature: 2016.05
TI-Tree: git://git.git.com/ti-u-boot/ti-u-boot.git
TI-Branch: ti-u-boot-2016.05

* 'ti-u-boot-2016.05_07-06-17_temporary' of git://git.ti.com/ti-u-boot/ti-u-boot:
  dra7xx_evm/am57xx_evm: update the default GPT table for eMMC
  ti_armv7_common.h: Fix U-Boot location on eMMC
  ARM: OMAP5+: Remove unsed dpll structures
  ARM: ti: Update layout for MMC and eMMC (env and dfu)
  ARM: ti: consolidate dfu environment variables
  mmc: omap_hsmmc: fix indexing of padconf and iodelay
  dts: dra7: Add pinctrl-cells property to pinmux core
  mmc: omap_hsmmc: use fdt api to get pinctrl entry size
  lib: fdt: add an api to read pinctrl entry size
  boot: fdt: Perform arch_fixup_fdt() on the given device tree for falcon boot
  spl: fdt: support for fdt fixup for falcon boot
  board: dra71: Fix selection of OPPs
  mmc: omap_hsmmc: configure the regulators even when not using DM MMC
  mmc: omap_hsmmc: indicates which mmc controller failed to get the chosen pinctrl
  env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it
  ti: boot: Register the MMC controllers in SPL in the same way as in u-boot
  env_mmc: Allow SPL to use any MMC device to load/save the environment
  common: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx

Signed-off-by: David Huang <d-huang@ti.com>
3 years agodra7xx_evm/am57xx_evm: update the default GPT table for eMMC
Jean-Jacques Hiblot [Thu, 6 Jul 2017 11:44:55 +0000 (13:44 +0200)]
dra7xx_evm/am57xx_evm: update the default GPT table for eMMC

The layout of the eMMC has been updated in commit 28d231055303
("ti_armv7_common.h: Fix U-Boot location on eMMC").

This patch update the GPT table so that xloader (MLO), u-boot and the
environment are in the right locations.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoti_armv7_common.h: Fix U-Boot location on eMMC
Jean-Jacques Hiblot [Thu, 6 Jul 2017 11:41:58 +0000 (13:41 +0200)]
ti_armv7_common.h: Fix U-Boot location on eMMC

The layout of the eMMC has been updated in commit 28d231055303
("ti_armv7_common.h: Fix U-Boot location on eMMC").

This patch fixes CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR constant so that
it points to correct address of "bootloader" partition and SPL is able to
read, parse and run u-boot.img correctly.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoMerge branch 'ti-u-boot-2016.05' into p-ti-u-boot-2016.05
Jean-Jacques Hiblot [Thu, 6 Jul 2017 08:30:55 +0000 (10:30 +0200)]
Merge branch 'ti-u-boot-2016.05' into p-ti-u-boot-2016.05

Conflicts:
arch/arm/cpu/armv7/omap-common/boot-common.c
common/env_mmc.c
common/spl/spl.c
include/configs/dra7xx_evm.h

3 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Mon, 26 Jun 2017 16:42:17 +0000 (11:42 -0500)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  ARM: OMAP5+: Remove unsed dpll structures
  ARM: ti: Update layout for MMC and eMMC (env and dfu)
  ARM: ti: consolidate dfu environment variables
  mmc: omap_hsmmc: fix indexing of padconf and iodelay
  dts: dra7: Add pinctrl-cells property to pinmux core
  mmc: omap_hsmmc: use fdt api to get pinctrl entry size
  lib: fdt: add an api to read pinctrl entry size
  boot: fdt: Perform arch_fixup_fdt() on the given device tree for falcon boot
  spl: fdt: support for fdt fixup for falcon boot
  board: dra71: Fix selection of OPPs
  mmc: omap_hsmmc: configure the regulators even when not using DM MMC
  mmc: omap_hsmmc: indicates which mmc controller failed to get the chosen pinctrl
  env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it
  ti: boot: Register the MMC controllers in SPL in the same way as in u-boot
  env_mmc: Allow SPL to use any MMC device to load/save the environment
  common: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
3 years agoARM: OMAP5+: Remove unsed dpll structures
Lokesh Vutla [Mon, 16 Jan 2017 06:34:49 +0000 (12:04 +0530)]
ARM: OMAP5+: Remove unsed dpll structures

commit 16b5a886b5a174b3d17e70e499fa04abf141eee9 branch ti-u-boot-2017.01

Latest gcc compile strted complaining about defined structure definition
that are not used. Remove the unused sturctures.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoARM: ti: Update layout for MMC and eMMC (env and dfu)
Jean-Jacques Hiblot [Wed, 24 May 2017 10:08:27 +0000 (12:08 +0200)]
ARM: ti: Update layout for MMC and eMMC (env and dfu)

commit 7a53a1a8115beb53b47a758c1a6e527420d8a43e  upstream

The problems with the current DFU layout are:
MMC: The space allocated for u-boot is too small for the latest u-boot
     (>750KB). We need to increase it. eMMC uses a much bigger area (2MB).
eMMC: region "u-boot.img.raw" overlaps the environment area and the region
      "spl-os-image.raw".
both: region "spl-os-image.raw" is quite small and can't handle android
      kernels

Fixing this requires growing some regions and moving others.
Care has been taken to leave some room for further growth of
"spl-os-args.raw".
Also the "env" now appears in the dfu so that it's apparent that the
region is not free space that can be used to grow "u-boot.img.raw".
The MLO region is 0x100 sectors wide but the 0x100 are unused in case the
MLO comes too overflow this areas.
The total space allocated for those raw binaries is 16MB, of which 13+MB
are reserved for the kernel image.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
3 years agoARM: ti: consolidate dfu environment variables
Jean-Jacques Hiblot [Thu, 2 Feb 2017 10:37:40 +0000 (11:37 +0100)]
ARM: ti: consolidate dfu environment variables

commit f843770a6aef83bb981becf10a5a3f93b9bf599b branch ti-u-boot-2017.01

Introduce include/environment/ti/dfu.h that
consolidates environment variable definitions
for various TI boards that support DFU today.

Tested on AM335x EVM, AM437x SK EVM and DRA74x
EVM by using DFU to write to SD card.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: fix indexing of padconf and iodelay
Ravikumar Kattekola [Tue, 6 Jun 2017 13:55:00 +0000 (13:55 +0000)]
mmc: omap_hsmmc: fix indexing of padconf and iodelay

Fixes: c791e6c2d574 ("drivers: mmc: omap_hsmmc: Add support to set IODELAY values")

Indexing of padconf entries and iodelay entries
was wrong, corrected it.

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agodts: dra7: Add pinctrl-cells property to pinmux core
Ravikumar Kattekola [Tue, 6 Jun 2017 13:54:59 +0000 (13:54 +0000)]
dts: dra7: Add pinctrl-cells property to pinmux core

Pinctrl-cells property tells the number of values in each pinctrl
entry in addition to the index. This can be used by drivers to
appropriately allocate an array to hold the entries.

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agommc: omap_hsmmc: use fdt api to get pinctrl entry size
Ravikumar Kattekola [Tue, 6 Jun 2017 13:54:58 +0000 (13:54 +0000)]
mmc: omap_hsmmc: use fdt api to get pinctrl entry size

Use fdt_pinctrl_cells() api to get the pinctrl entry size from
device tree instead of hard coding it in the driver.

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agolib: fdt: add an api to read pinctrl entry size
Ravikumar Kattekola [Tue, 6 Jun 2017 13:54:57 +0000 (13:54 +0000)]
lib: fdt: add an api to read pinctrl entry size

Drivers that configure pinmux at runtime need to parse device tree
entries and store them in an array.Provide an api to get the size
of each entry, size here means the number of individual values in
the entry, so that driver can appropriately allocate memory to store
the entries.

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboot: fdt: Perform arch_fixup_fdt() on the given device tree for falcon boot
Jean-Jacques Hiblot [Wed, 31 May 2017 20:09:59 +0000 (22:09 +0200)]
boot: fdt: Perform arch_fixup_fdt() on the given device tree for falcon boot

commit 6e7585bb64b12 upstream

In single stage bootmode or falcon boot mode, the SPL shall update the
device tree that we load with the normal fixups done via
arch_fixup_fdt(), when possible (ie we have enough information in this
restricted environment to be able to do that still).  This will include
for example updating them memory nodes.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
[trini: Reword commit message]
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agospl: fdt: support for fdt fixup for falcon boot
B, Ravi [Tue, 18 Apr 2017 11:57:26 +0000 (17:27 +0530)]
spl: fdt: support for fdt fixup for falcon boot

commit 984a3c877707 upstream

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

This is needed for single stage or falcon
bootmode, to pass memory configuration to
kernel through DT memory node.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
3 years agoboard: dra71: Fix selection of OPPs
Lokesh Vutla [Thu, 20 Apr 2017 08:37:52 +0000 (14:07 +0530)]
board: dra71: Fix selection of OPPs

commit 6cc96bc upstream

As per the DM[1] Dated June 2016–Revised February 2017, Table 5-3,
DRA71 supports the following OPPs for various voltage domains:

VDD_MPU: OPP_NOM
VDD_CORE: OPP_NOM
VDD_GPU: OPP_NOM
VDD_DSPEVE: OPP_NOM, OPP_HIGH
VDD_IVA: OPP_NOM, OPP_HIGH

This patch add support for selection of the above OPPs instead of
using OPP_NOM for all voltage domains.

[1] http://www.ti.com/lit/ds/symlink/dra718.pdf

Reported-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoMerge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti...
David Huang [Thu, 6 Apr 2017 19:27:58 +0000 (14:27 -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:
  fs: fat: use debug() for buffer misalignment warnings

Signed-off-by: David Huang <d-huang@ti.com>
4 years agodefconfigs: dra7xx_hs_evm: Move OPTEE load address to avoid overlaps 6AM.1.3
Misael Lopez Cruz [Tue, 14 Feb 2017 06:29:09 +0000 (00:29 -0600)]
defconfigs: dra7xx_hs_evm: Move OPTEE load address to avoid overlaps

Move the OPTEE load address to 0xbdb00000 in order to avoid
overlap with the memory regions used in radio and RVC usecases.

Change-Id: Ia941a0a65a748353bd05a65914ae6e3e7ffe23a1
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
4 years agoDRA7XX - Late Attach - Use reserved memory for IOUMM table processor-sdk-linux-automotive-3.02.00.03
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>
4 years agommc: omap_hsmmc: configure the regulators even when not using DM MMC
Jean-Jacques Hiblot [Wed, 15 Feb 2017 14:17:13 +0000 (15:17 +0100)]
mmc: omap_hsmmc: configure the regulators even when not using DM MMC

commit 3e0e1a652d19d6246e67685951241b497296b971 branch ti-u-boot-2017.01

We need to manage the regulators for proper MMC operations even when DM_MMC
and/or DM_REGULATOR are not used.

Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agommc: omap_hsmmc: indicates which mmc controller failed to get the chosen pinctrl
Jean-Jacques Hiblot [Wed, 15 Feb 2017 14:17:12 +0000 (15:17 +0100)]
mmc: omap_hsmmc: indicates which mmc controller failed to get the chosen pinctrl

commit 2a7e353079720145650d47b1775dae5c740d08ef branch ti-u-boot-2017.01

Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoenv: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it
Jean-Jacques Hiblot [Wed, 15 Feb 2017 14:17:11 +0000 (15:17 +0100)]
env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

commit 9e1e356c715ae9c011b301d47d85821f2a1840f4 branch ti-u-boot-2017.01

When booting from a non-MMC device, the MMC sub-system may not be
initialized when the environment is first accessed.
We need to make sure that the MMC sub-system is ready in even a non-MMC
boot case. env_init() seems like a logical place for this.

Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoti: boot: Register the MMC controllers in SPL in the same way as in u-boot
Jean-Jacques Hiblot [Wed, 15 Feb 2017 14:17:09 +0000 (15:17 +0100)]
ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

commit 3eb68c53ebd8aee9ed2b9b58761856a366c2764f branch ti-u-boot-2017.01

To keep a consistent MMC device mapping in SPL and in u-boot, let's
register the MMC controllers the same way in u-boot and in the SPL.
In terms of boot time, it doesn't hurt to register more controllers than
needed because the MMC device is initialized only prior being accessed for
the first time.
Having the same device mapping in SPL and u-boot allows us to use the
environment in SPL whatever the MMC boot device.

Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoenv_mmc: Allow SPL to use any MMC device to load/save the environment
Jean-Jacques Hiblot [Wed, 15 Feb 2017 14:17:08 +0000 (15:17 +0100)]
env_mmc: Allow SPL to use any MMC device to load/save the environment

commit 62ded97d65ef6ad98f89cb23125997fcf2434b65 branch ti-u-boot-2017.01

SPL has been restricted to use only dev 0 based on the assumption that only
one MMC device is registered. This is not always the case and many
platforms now register several devices as expected by the spl mmc boot code
For those platform SPL_ENV_SUPPORT is broken if dev is forced to 0.

A word of warning: this commit may break SPL_ENV_SUPPORT on platforms that
do not register the same MMC controllers in SPL and in u-boot (mostly iMX6
based platforms). Fortunately none of those activate SPL_ENV_SUPPORT in
their default configuration.

Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoboard: ti: dra71: Add JAMR board pinmux
Nikhil Devshatwar [Wed, 23 Nov 2016 19:43:32 +0000 (01:13 +0530)]
board: ti: dra71: Add JAMR board pinmux

All values copied from the DRA72x PCT tool and iodelay tool
Add pinmux for i2c4 and mcASP on JAMR board

Change-Id: Iaddd31bd3055648c62dd360bd9b8c597c232f461
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
4 years agocommon: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx
Jean-Jacques Hiblot [Wed, 1 Feb 2017 13:37:28 +0000 (14:37 +0100)]
common: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx

The default values for the configuration defines CONFIG_ENV_SPI_xxx are
arbitrary values. It makes more sense to set them to the values used by
the sf command.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 years agoMerge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into...
LCPD Auto Merger [Fri, 10 Feb 2017 12:53:17 +0000 (06:53 -0600)]
Merge branch 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot into ti-u-boot-2016.05

TI-Feature: maint-uboot-2016
TI-Tree: git@git.ti.com:ti-u-boot/maint-ti-u-boot.git
TI-Branch: maint-ti-u-boot-2016.05

* 'maint-ti-u-boot-2016.05' of git.ti.com:ti-u-boot/maint-ti-u-boot:
  fs: fat: use debug() for buffer misalignment warnings

Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
4 years agofs: fat: use debug() for buffer misalignment warnings
Jean-Jacques Hiblot [Mon, 16 Jan 2017 14:42:07 +0000 (15:42 +0100)]
fs: fat: use debug() for buffer misalignment warnings

commit 62605654f2cda82c1f1f1c1045726edde746d782 branch ti-u-boot-2017.01

functions to get/set the data from/to the block device require buffers
aligned on the cache lines. When the buffers are not aligned, a bounce
buffer is used and a warning message is output. This has been introduced
in commits cc63b25e and 8133f43d1.
As this is only a warning, let's move to using debug().

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agoboard: ti: beagle_x15: enable input on mmc clock
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>
4 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>
4 years agoARM: k2g: add a workaround to reset the phy
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>
4 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>
4 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>
4 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>
4 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>