mbox series

[v2,0/3] omap: Provide fastboot variables for fastboot.sh

Message ID 20170522161642.13058-1-semen.protsenko@linaro.org
Headers show
Series omap: Provide fastboot variables for fastboot.sh | expand

Message

Sam Protsenko May 22, 2017, 4:16 p.m. UTC
fastboot.sh is a script used for flashing Android images for TI boards
(and can be found in corresponding AOSP sources). This script relies on
some fastboot variables, which can be accessed with "fastboot getvar"
command.

This patch series exports those variables, which fastboot.sh script
relies on. The list of added variables:
 - "cpu": CPU type (string, like "DRA752")
 - "secure": CPU security index (string, like "GP")
 - "board_rev": board revision (string, like "A.30")
 - "userdata_size": size of userdata partition (number, in KiB)

Variables are enabled for AM57x EVM and DRA7 EVM boards, which are
mainly supported TI boards, capable of Android running.

Changes in v2:
 - use get_device_type() instead of omap_get_cpu_type()
 - guard omap_set_fastboot_vars() with CONFIG_FASTBOOT_FLASH
 - use correct board names

Sam Protsenko (3):
  omap: Add routine for setting fastboot variables
  arm: am57xx: Set fastboot variables in environment
  arm: dra7: Set fastboot variables in environment

 arch/arm/include/asm/omap_common.h |   6 ++
 arch/arm/mach-omap2/utils.c        | 115 +++++++++++++++++++++++++++++++++++++
 board/ti/am57xx/board.c            |   1 +
 board/ti/dra7xx/evm.c              |   1 +
 4 files changed, 123 insertions(+)