From 3f18ff07c81b80337bbe72c0b3a2d36a76b6a9e0 Mon Sep 17 00:00:00 2001 From: Vignesh R Date: Wed, 8 Mar 2017 13:58:17 +0530 Subject: 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 --- include/environment/ti/spi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/environment/ti/spi.h (limited to 'include/environment') diff --git a/include/environment/ti/spi.h b/include/environment/ti/spi.h new file mode 100644 index 00000000000..18c857c47dc --- /dev/null +++ b/include/environment/ti/spi.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com + * + * Environment variable definitions for SPI on TI boards. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __TI_SPI_H +#define __TI_SPI_H + +#define KEYSTONE_SPI0_MTD_PARTS "spi0.0:1m(u-boot-spl)ro,-(misc);\0" +#define KEYSTONE_SPI1_MTD_PARTS "spi1.0:1m(u-boot-spl)ro,-(misc);\0" + +#endif -- cgit v1.2.3