diff options
author | Vignesh R <vigneshr@ti.com> | 2017-03-08 13:58:17 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-08 09:26:47 -0400 |
commit | 3f18ff07c81b80337bbe72c0b3a2d36a76b6a9e0 (patch) | |
tree | 54daf6ad4d60986f2ea9cd52c37b41f3fe90417b /include/configs/k2l_evm.h | |
parent | 4b0d506ed3b4f77649346d45b349169a60a2b233 (diff) | |
download | u-boot-3f18ff07c81b80337bbe72c0b3a2d36a76b6a9e0.tar.gz |
ARM: keystone: Pass SPI MTD partition table via kernel command line
SPI U-Boot image for K2 boards have now exceeded 512K partition
allocated to it and no longer fit the partitions defined in kernel DTS
file. Therefore, pass an updated MTD partition table from U-Boot as
kernel command line arguments to avoid kernel from accidentally
modifying boot loader image that has overflowed to next user partition.
To do is, introduce a common environment file for declaring SPI
partition so that each individual boards need not repeat the same.
Choose appropriate SPI bus from board config file and pass it as command
line argument to kernel.
Signed-off-by: Vignesh R <vigneshr@ti.com>
Diffstat (limited to 'include/configs/k2l_evm.h')
-rw-r--r-- | include/configs/k2l_evm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h index 9bdd56570b..a7ccdd117c 100644 --- a/include/configs/k2l_evm.h +++ b/include/configs/k2l_evm.h @@ -10,6 +10,8 @@ #ifndef __CONFIG_K2L_EVM_H #define __CONFIG_K2L_EVM_H +#include <environment/ti/spi.h> + /* Platform type */ #define CONFIG_SOC_K2L @@ -30,6 +32,8 @@ /* SPL SPI Loader Configuration */ #define CONFIG_SPL_TEXT_BASE 0x0c100000 +#define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS + /* NAND Configuration */ #define CONFIG_SYS_NAND_PAGE_4K |