configs: k2g_evm: Add TI power processor support
authorNishanth Menon <nm@ti.com>
Thu, 25 Feb 2016 18:53:47 +0000 (12:53 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 14 Mar 2016 23:18:39 +0000 (19:18 -0400)
Enable support for PMMC the TI power processor on K2G. This processor
manages all power management related activities on the SoC and and
allows the Operating Systems on compute processors such as ARM, DSP to
offload the power logic away into the power processor.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/k2g_evm_defconfig
include/configs/k2g_evm.h
include/configs/ti_armv7_keystone2.h

index 46952f78e3500997087a66be63748a9fc4875c80..b721a1c91d65f4b1afcd94dc1a827d379cfeea92 100644 (file)
@@ -5,6 +5,8 @@ CONFIG_DM_SERIAL=y
 CONFIG_DEFAULT_DEVICE_TREE="k2g-evm"
 CONFIG_SPL=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_CMD_REMOTEPROC=y
+CONFIG_REMOTEPROC_TI_POWER=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
index d9ad8cf4b4d8b6b36c32f5b8de3899957fcb1cfc..ca1e368aa0109ce8c4174ddb950b4a02e3cfd768 100644 (file)
@@ -17,6 +17,7 @@
 /* U-Boot general configuration */
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS                            \
        DEFAULT_MMC_TI_ARGS                                             \
+       DEFAULT_PMMC_BOOT_ENV                                           \
        "console=ttyS0,115200n8\0"                                      \
        "bootpart=0:2\0"                                                \
        "bootdir=/boot\0"                                               \
        "name_ubi=k2g-evm-ubifs.ubi\0"                                  \
        "name_uboot=u-boot-spi-k2g-evm.gph\0"                           \
        "init_mmc=run args_all args_mmc\0"                              \
+       "soc_variant=k2g\0"                                             \
        "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0"\
        "get_kern_mmc=load mmc ${bootpart} ${loadaddr} "                \
                "${bootdir}/${name_kern}\0"                             \
        "get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}\0"\
 
+#define CONFIG_BOOTCOMMAND                                             \
+       "run set_name_pmmc init_${boot} get_pmmc_${boot} run_pmmc "     \
+       "get_fdt_${boot} get_mon_${boot} get_kern_${boot} "             \
+       "run_mon run_kern"
+
 #include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
index 1f9325351bdc927a892da6f94e3deb84a84e4b93..6f30c77d7d9f15d832d7268862c66e1844e81e5f 100644 (file)
 /* EDMA3 */
 #define CONFIG_TI_EDMA3
 
+#define DEFAULT_PMMC_BOOT_ENV                                          \
+       "set_name_pmmc=setenv name_pmmc ti-sci-firmware-${soc_variant}.bin\0" \
+       "dev_pmmc=0\0"                                                  \
+       "get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}\0"     \
+       "get_pmmc_ramfs=run get_pmmc_net\0"                             \
+       "get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} "                \
+                       "${bootdir}/${name_pmmc}\0"                     \
+       "get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}\0"  \
+       "run_pmmc=rproc init; rproc list; "                             \
+               "rproc load ${dev_pmmc} ${loadaddr} 0x${filesize}; "    \
+               "rproc start ${dev_pmmc}\0"                             \
+
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        DEFAULT_LINUX_BOOT_ENV                                          \
        CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS                             \
        "mtdparts=mtdparts=davinci_nand.0:"                             \
                "1024k(bootloader)ro,512k(params)ro,-(ubifs)\0"
 
+#ifndef CONFIG_BOOTCOMMAND
 #define CONFIG_BOOTCOMMAND                                             \
        "run init_${boot} get_fdt_${boot} get_mon_${boot} "             \
                "get_kern_${boot} run_mon run_kern"
+#endif
 
 #define CONFIG_BOOTARGS                                                        \