All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header
@ 2015-07-16 19:08 Nishanth Menon
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header Nishanth Menon
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Nishanth Menon @ 2015-07-16 19:08 UTC (permalink / raw)
  To: u-boot

For legacy reasons, keystone2 had kind of stayed completely seperated
from the rest of the TI SoC families. This makes no sense since there
are a lot of common definitions that can be reused between all SoC
configuration allowing for a consistent user experience.

So make keystone2 follow the rest of the TI SoCs based on OMAP
architecture as well.

Test log: K2H:  http://pastebin.ubuntu.com/11889270/ (using https://patchwork.ozlabs.org/patch/440665/)
I have no other platform to verify on.

Series based on master 4905dfc65d9a Merge branch 'master' of git://git.denx.de/u-boot-spi


Changes in V2:
	- got rid of the bogus CONFIG_LINUX_BOOT_PARAM_ADDR
	- few additional config cleanups based on off line comment from Tom Rini.

V1:
	http://marc.info/?l=u-boot&m=143706008602124&w=2

Nishanth Menon (4):
  configs: split ti_armv7_common into a omap generic header
  board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR
  configs: rename ks2_evm into ti_armv7_keystone2
  configs: ti_armv7_keystone2: start using armv7_common

 board/ti/ks2_evm/board.c                           |  2 +-
 include/configs/am43xx_evm.h                       |  2 +-
 include/configs/k2e_evm.h                          |  4 +-
 include/configs/k2hk_evm.h                         |  4 +-
 include/configs/k2l_evm.h                          |  4 +-
 include/configs/ti_am335x_common.h                 |  2 +-
 include/configs/ti_armv7_common.h                  | 27 ++---------
 .../configs/{ks2_evm.h => ti_armv7_keystone2.h}    | 53 ++++++----------------
 include/configs/ti_armv7_omap.h                    | 49 ++++++++++++++++++++
 include/configs/ti_omap3_common.h                  |  2 +-
 include/configs/ti_omap4_common.h                  |  2 +-
 include/configs/ti_omap5_common.h                  |  2 +-
 12 files changed, 78 insertions(+), 75 deletions(-)
 rename include/configs/{ks2_evm.h => ti_armv7_keystone2.h} (89%)
 create mode 100644 include/configs/ti_armv7_omap.h

-- 
2.1.4

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header
  2015-07-16 19:08 [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header Nishanth Menon
@ 2015-07-16 19:08 ` Nishanth Menon
  2015-07-17 15:38   ` Murali Karicheri
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR Nishanth Menon
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-16 19:08 UTC (permalink / raw)
  To: u-boot

TI armv7 based SoCs are based on two architectures - one based on OMAP
generation architecture and others based on Keystone architecture.

Many of the options are architecture specific, however a lot are common
with v7 architecture. So, step 1 will be to move out OMAP specific stuff
from ti_armv7_common into a ti_armv7_omap.h header which is then used
by all the relevant architecture headers.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
V2: no change.

V1: https://patchwork.ozlabs.org/patch/496726/
 include/configs/am43xx_evm.h       |  2 +-
 include/configs/ti_am335x_common.h |  2 +-
 include/configs/ti_armv7_common.h  | 21 ----------------
 include/configs/ti_armv7_omap.h    | 49 ++++++++++++++++++++++++++++++++++++++
 include/configs/ti_omap3_common.h  |  2 +-
 include/configs/ti_omap4_common.h  |  2 +-
 include/configs/ti_omap5_common.h  |  2 +-
 7 files changed, 54 insertions(+), 26 deletions(-)
 create mode 100644 include/configs/ti_armv7_omap.h

diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 33e534a76583..65ac8ef34eb8 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -80,7 +80,7 @@
 #endif
 
 /* Now bring in the rest of the common code. */
-#include <configs/ti_armv7_common.h>
+#include <configs/ti_armv7_omap.h>
 
 /* Always 64 KiB env size */
 #define CONFIG_ENV_SIZE			(64 << 10)
diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h
index 4d2ae280e7f1..9697431b4496 100644
--- a/include/configs/ti_am335x_common.h
+++ b/include/configs/ti_am335x_common.h
@@ -94,6 +94,6 @@
 #endif
 
 /* Now bring in the rest of the common code. */
-#include <configs/ti_armv7_common.h>
+#include <configs/ti_armv7_omap.h>
 
 #endif	/* __CONFIG_TI_AM335X_COMMON_H__ */
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index 0aea7d12ec16..63244dbc83ff 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -18,8 +18,6 @@
 #define __CONFIG_TI_ARMV7_COMMON_H__
 
 /* Common define for many platforms. */
-#define CONFIG_OMAP
-#define CONFIG_OMAP_COMMON
 #define CONFIG_SYS_GENERIC_BOARD
 
 /*
@@ -86,39 +84,20 @@
 #define CONFIG_I2C
 #define CONFIG_CMD_I2C
 #define CONFIG_SYS_I2C
-#define CONFIG_SYS_OMAP24_I2C_SPEED	100000
-#define CONFIG_SYS_OMAP24_I2C_SLAVE	1
-#define CONFIG_SYS_I2C_OMAP24XX
 
 /* MMC/SD IP block */
 #define CONFIG_MMC
 #define CONFIG_GENERIC_MMC
-#define CONFIG_OMAP_HSMMC
 #define CONFIG_CMD_MMC
 
 /* McSPI IP block */
 #define CONFIG_SPI
-#define CONFIG_OMAP3_SPI
 #define CONFIG_CMD_SPI
 
 /* GPIO block */
-#define CONFIG_OMAP_GPIO
 #define CONFIG_CMD_GPIO
 
 /*
- * GPMC NAND block.  We support 1 device and the physical address to
- * access CS0 at is 0x8000000.
- */
-#ifdef CONFIG_NAND
-#define CONFIG_NAND_OMAP_GPMC
-#ifndef CONFIG_SYS_NAND_BASE
-#define CONFIG_SYS_NAND_BASE		0x8000000
-#endif
-#define CONFIG_SYS_MAX_NAND_DEVICE	1
-#define CONFIG_CMD_NAND
-#endif
-
-/*
  * The following are general good-enough settings for U-Boot.  We set a
  * large malloc pool as we generally have a lot of DDR, and we opt for
  * function over binary size in the main portion of U-Boot as this is
diff --git a/include/configs/ti_armv7_omap.h b/include/configs/ti_armv7_omap.h
new file mode 100644
index 000000000000..7548170afcf7
--- /dev/null
+++ b/include/configs/ti_armv7_omap.h
@@ -0,0 +1,49 @@
+/*
+ * ti_armv7_omap.h
+ *
+ * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ *
+ * The various ARMv7 SoCs from TI all share a number of IP blocks when
+ * implementing a given feature. This is meant to isolate the features
+ * that are based on OMAP architecture.
+ */
+#ifndef __CONFIG_TI_ARMV7_OMAP_H__
+#define __CONFIG_TI_ARMV7_OMAP_H__
+
+/* Common defines for all OMAP architecture based SoCs */
+#define CONFIG_OMAP
+#define CONFIG_OMAP_COMMON
+
+/* I2C IP block */
+#define CONFIG_SYS_OMAP24_I2C_SPEED	100000
+#define CONFIG_SYS_OMAP24_I2C_SLAVE	1
+#define CONFIG_SYS_I2C_OMAP24XX
+
+/* MMC/SD IP block */
+#define CONFIG_OMAP_HSMMC
+
+/* SPI IP Block */
+#define CONFIG_OMAP3_SPI
+
+/* GPIO block */
+#define CONFIG_OMAP_GPIO
+
+/*
+ * GPMC NAND block.  We support 1 device and the physical address to
+ * access CS0 at is 0x8000000.
+ */
+#ifdef CONFIG_NAND
+#define CONFIG_NAND_OMAP_GPMC
+#ifndef CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_NAND_BASE		0x8000000
+#endif
+#define CONFIG_SYS_MAX_NAND_DEVICE	1
+#define CONFIG_CMD_NAND
+#endif
+
+/* Now for the remaining common defines */
+#include <configs/ti_armv7_common.h>
+
+#endif /* __CONFIG_TI_ARMV7_OMAP_H__ */
diff --git a/include/configs/ti_omap3_common.h b/include/configs/ti_omap3_common.h
index 429b109afa23..be231a551361 100644
--- a/include/configs/ti_omap3_common.h
+++ b/include/configs/ti_omap3_common.h
@@ -84,6 +84,6 @@
 #endif
 
 /* Now bring in the rest of the common code. */
-#include <configs/ti_armv7_common.h>
+#include <configs/ti_armv7_omap.h>
 
 #endif	/* __CONFIG_TI_OMAP3_COMMON_H__ */
diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
index e96613406b3b..959f312edb5b 100644
--- a/include/configs/ti_omap4_common.h
+++ b/include/configs/ti_omap4_common.h
@@ -52,7 +52,7 @@
 #define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
 #endif
 
-#include <configs/ti_armv7_common.h>
+#include <configs/ti_armv7_omap.h>
 
 /*
  * Hardware drivers
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h
index f3e5a7587de9..789542be6710 100644
--- a/include/configs/ti_omap5_common.h
+++ b/include/configs/ti_omap5_common.h
@@ -47,7 +47,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/omap.h>
 
-#include <configs/ti_armv7_common.h>
+#include <configs/ti_armv7_omap.h>
 
 /*
  * Hardware drivers
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR
  2015-07-16 19:08 [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header Nishanth Menon
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header Nishanth Menon
@ 2015-07-16 19:08 ` Nishanth Menon
  2015-07-17 15:44   ` Murali Karicheri
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2 Nishanth Menon
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common Nishanth Menon
  3 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-16 19:08 UTC (permalink / raw)
  To: u-boot

CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do
just like what the rest of the world does.

Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
New patch.

 board/ti/ks2_evm/board.c  | 2 +-
 include/configs/ks2_evm.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index 8892a2843df4..0cefb3404403 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -48,7 +48,7 @@ int dram_init(void)
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_LINUX_BOOT_PARAM_ADDR;
+	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
diff --git a/include/configs/ks2_evm.h b/include/configs/ks2_evm.h
index e05d56cd8262..d838f270018b 100644
--- a/include/configs/ks2_evm.h
+++ b/include/configs/ks2_evm.h
@@ -307,7 +307,6 @@
 #define CONFIG_OF_BOARD_SETUP
 #define CONFIG_SYS_BARGSIZE		1024
 #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x08000000)
-#define CONFIG_LINUX_BOOT_PARAM_ADDR	(CONFIG_SYS_SDRAM_BASE + 0x100)
 
 #define CONFIG_SUPPORT_RAW_INITRD
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2
  2015-07-16 19:08 [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header Nishanth Menon
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header Nishanth Menon
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR Nishanth Menon
@ 2015-07-16 19:08 ` Nishanth Menon
  2015-07-17 15:42   ` Murali Karicheri
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common Nishanth Menon
  3 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-16 19:08 UTC (permalink / raw)
  To: u-boot

rename the keystone2 common header into an keystone2 architecture
specific header which can then reuse the common ti_armv7 config headers.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
no change
V1: https://patchwork.ozlabs.org/patch/496728/

 include/configs/k2e_evm.h                           | 2 +-
 include/configs/k2hk_evm.h                          | 2 +-
 include/configs/k2l_evm.h                           | 2 +-
 include/configs/{ks2_evm.h => ti_armv7_keystone2.h} | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename include/configs/{ks2_evm.h => ti_armv7_keystone2.h} (100%)

diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
index a28ceb7064a7..ac50a01b2980 100644
--- a/include/configs/k2e_evm.h
+++ b/include/configs/k2e_evm.h
@@ -27,7 +27,7 @@
 	"name_uboot=u-boot-spi-k2e-evm.gph\0"				\
 	"name_fs=arago-console-image-k2e-evm.cpio.gz\0"
 
-#include <configs/ks2_evm.h>
+#include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE           0x0c100000
diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
index eae772178338..29e3403aa082 100644
--- a/include/configs/k2hk_evm.h
+++ b/include/configs/k2hk_evm.h
@@ -27,7 +27,7 @@
 	"name_uboot=u-boot-spi-k2hk-evm.gph\0"				\
 	"name_fs=arago-console-image-k2hk-evm.cpio.gz\0"
 
-#include <configs/ks2_evm.h>
+#include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE		0x0c200000
diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h
index 57da0579255a..50d5c991a0bb 100644
--- a/include/configs/k2l_evm.h
+++ b/include/configs/k2l_evm.h
@@ -27,7 +27,7 @@
 	"name_uboot=u-boot-spi-k2l-evm.gph\0"				\
 	"name_fs=arago-console-image-k2l-evm.cpio.gz\0"
 
-#include <configs/ks2_evm.h>
+#include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE		0x0c100000
diff --git a/include/configs/ks2_evm.h b/include/configs/ti_armv7_keystone2.h
similarity index 100%
rename from include/configs/ks2_evm.h
rename to include/configs/ti_armv7_keystone2.h
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-16 19:08 [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header Nishanth Menon
                   ` (2 preceding siblings ...)
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2 Nishanth Menon
@ 2015-07-16 19:08 ` Nishanth Menon
  2015-07-17 16:04   ` Murali Karicheri
  3 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-16 19:08 UTC (permalink / raw)
  To: u-boot

Try to maintain as much commonality by conditionally including stuff
in armv7_common as necessary and removing the common defines from
keystone2 header.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes in V2:
	- common CONFIG_SYS_SDRAM_BASE
	- common CONFIG_SYS_LOAD_ADDR
	- rebased to new series

V1: https://patchwork.ozlabs.org/patch/496730/

 include/configs/k2e_evm.h            |  2 --
 include/configs/k2hk_evm.h           |  2 --
 include/configs/k2l_evm.h            |  2 --
 include/configs/ti_armv7_common.h    |  6 ++++-
 include/configs/ti_armv7_keystone2.h | 52 +++++++++++-------------------------
 5 files changed, 20 insertions(+), 44 deletions(-)

diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
index ac50a01b2980..f1e650141ae1 100644
--- a/include/configs/k2e_evm.h
+++ b/include/configs/k2e_evm.h
@@ -15,8 +15,6 @@
 #define CONFIG_K2E_EVM
 
 /* U-Boot general configuration */
-#define CONFIG_SYS_PROMPT               "K2E EVM # "
-
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
 	"addr_mon=0x0c140000\0"						\
 	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
index 29e3403aa082..f8e83de64b63 100644
--- a/include/configs/k2hk_evm.h
+++ b/include/configs/k2hk_evm.h
@@ -15,8 +15,6 @@
 #define CONFIG_K2HK_EVM
 
 /* U-Boot general configuration */
-#define CONFIG_SYS_PROMPT               "K2HK EVM # "
-
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
 	"addr_mon=0x0c5f0000\0"						\
 	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h
index 50d5c991a0bb..395608a5f6db 100644
--- a/include/configs/k2l_evm.h
+++ b/include/configs/k2l_evm.h
@@ -15,8 +15,6 @@
 #define CONFIG_K2L_EVM
 
 /* U-Boot general configuration */
-#define CONFIG_SYS_PROMPT		"K2L EVM # "
-
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
 	"addr_mon=0x0c140000\0"						\
 	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index 63244dbc83ff..814da3409c46 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -73,9 +73,13 @@
 #ifndef CONFIG_NR_DRAM_BANKS
 #define CONFIG_NR_DRAM_BANKS		1
 #endif
+
 #define CONFIG_SYS_SDRAM_BASE		0x80000000
+
+#ifndef CONFIG_SYS_INIT_SP_ADDR
 #define CONFIG_SYS_INIT_SP_ADDR         (NON_SECURE_SRAM_END - \
 						GENERATED_GBL_DATA_SIZE)
+#endif
 
 /* Timer information. */
 #define CONFIG_SYS_PTV			2	/* Divisor: 2^(PTV+1) => 8 */
@@ -140,7 +144,7 @@
  * mtdparts, both for ease of use in U-Boot and for passing information
  * on to the Linux kernel.
  */
-#if defined(CONFIG_SPI_BOOT) || defined(CONFIG_NOR) || defined(CONFIG_NAND)
+#if defined(CONFIG_SPI_BOOT) || defined(CONFIG_NOR) || defined(CONFIG_NAND) || defined(CONFIG_NAND_DAVINCI)
 #define CONFIG_MTD_DEVICE		/* Required for mtdparts */
 #define CONFIG_CMD_MTDPARTS
 #endif
diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
index d838f270018b..7d89bd78e43b 100644
--- a/include/configs/ti_armv7_keystone2.h
+++ b/include/configs/ti_armv7_keystone2.h
@@ -14,10 +14,7 @@
 
 /* U-Boot Build Configuration */
 #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is a 2nd stage loader */
-#define CONFIG_SYS_NO_FLASH		/* that is, no *NOR* flash */
-#define CONFIG_SYS_CONSOLE_INFO_QUIET
 #define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_SYS_THUMB_BUILD
 
 /* SoC Configuration */
 #define CONFIG_ARCH_CPU_INIT
@@ -28,11 +25,9 @@
 
 /* Memory Configuration */
 #define CONFIG_NR_DRAM_BANKS		2
-#define CONFIG_SYS_SDRAM_BASE		0x80000000
 #define CONFIG_SYS_LPAE_SDRAM_BASE	0x800000000
 #define CONFIG_MAX_RAM_BANK_SIZE	(2 << 30)       /* 2GB */
 #define CONFIG_STACKSIZE		(512 << 10)     /* 512 KiB */
-#define CONFIG_SYS_MALLOC_LEN		(4 << 20)       /* 4 MiB */
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE - \
 					GENERATED_GBL_DATA_SIZE)
 
@@ -49,15 +44,10 @@
 #define CONFIG_SPL_STACK		(CONFIG_SYS_SPL_MALLOC_START + \
 					CONFIG_SYS_SPL_MALLOC_SIZE + \
 					CONFIG_SPL_STACK_SIZE - 4)
-#define CONFIG_SPL_LIBCOMMON_SUPPORT
-#define CONFIG_SPL_LIBGENERIC_SUPPORT
-#define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
 #define CONFIG_SPL_SPI_SUPPORT
-#define CONFIG_SPL_BOARD_INIT
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	CONFIG_SPL_PAD_TO
-#define CONFIG_SPL_FRAMEWORK
 
 /* UART Configuration */
 #define CONFIG_SYS_NS16550
@@ -68,13 +58,10 @@
 #define CONFIG_SYS_NS16550_COM2		KS2_UART1_BASE
 #define CONFIG_SYS_NS16550_CLK		clk_get_rate(KS2_CLK1_6)
 #define CONFIG_CONS_INDEX		1
-#define CONFIG_BAUDRATE			115200
 
 /* SPI Configuration */
-#define CONFIG_SPI
 #define CONFIG_SPI_FLASH_STMICRO
 #define CONFIG_DAVINCI_SPI
-#define CONFIG_CMD_SPI
 #define CONFIG_SYS_SPI_CLK		clk_get_rate(KS2_CLK1_6)
 #define CONFIG_SF_DEFAULT_SPEED		30000000
 #define CONFIG_ENV_SPI_MAX_HZ		CONFIG_SF_DEFAULT_SPEED
@@ -148,7 +135,6 @@
 #define CONFIG_AEMIF_CNTRL_BASE		KS2_AEMIF_CNTRL_BASE
 
 /* I2C Configuration */
-#define CONFIG_SYS_I2C
 #define CONFIG_SYS_I2C_DAVINCI
 #define CONFIG_SYS_DAVINCI_I2C_SPEED	100000
 #define CONFIG_SYS_DAVINCI_I2C_SLAVE	0x10 /* SMBus host address */
@@ -185,7 +171,6 @@
 #define CONFIG_ENV_IS_IN_NAND
 #define CONFIG_ENV_OFFSET			0x100000
 #define CONFIG_MTD_PARTITIONS
-#define CONFIG_MTD_DEVICE
 #define CONFIG_RBTREE
 #define CONFIG_LZO
 #define MTDIDS_DEFAULT			"nand0=davinci_nand.0"
@@ -197,8 +182,6 @@
 #define CONFIG_USB_XHCI
 #define CONFIG_USB_XHCI_KEYSTONE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS	2
-#define CONFIG_USB_STORAGE
-#define CONFIG_DOS_PARTITION
 #define CONFIG_EFI_PARTITION
 #define CONFIG_FS_FAT
 #define CONFIG_SYS_CACHELINE_SIZE		64
@@ -208,39 +191,25 @@
 #define CONFIG_USB_PHY_CFG_BASE			KS2_USB_PHY_CFG_BASE
 
 /* U-Boot command configuration */
-#define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DHCP
-#define CONFIG_CMD_I2C
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_SAVES
-#define CONFIG_CMD_MTDPARTS
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_UBI
 #define CONFIG_CMD_UBIFS
 #define CONFIG_CMD_SF
 #define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_USB
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
 
 /* U-Boot general configuration */
-#define CONFIG_SYS_GENERIC_BOARD
 #define CONFIG_MISC_INIT_R
-#define CONFIG_SYS_CBSIZE		1024
-#define CONFIG_SYS_PBSIZE		2048
-#define CONFIG_SYS_MAXARGS		16
-#define CONFIG_SYS_HUSH_PARSER
-#define CONFIG_SYS_LONGHELP
 #define CONFIG_CRC32_VERIFY
 #define CONFIG_MX_CYCLIC
-#define CONFIG_CMDLINE_EDITING
-#define CONFIG_VERSION_VARIABLE
 #define CONFIG_TIMESTAMP
 
 /* EDMA3 */
 #define CONFIG_TI_EDMA3
 
-#define CONFIG_BOOTDELAY		3
 #define CONFIG_BOOTFILE			"uImage"
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
@@ -301,14 +270,23 @@
 #define CONFIG_BOOTARGS							\
 
 /* Linux interfacing */
-#define CONFIG_CMDLINE_TAG
-#define CONFIG_SETUP_MEMORY_TAGS
-#define CONFIG_OF_LIBFDT		1
 #define CONFIG_OF_BOARD_SETUP
-#define CONFIG_SYS_BARGSIZE		1024
-#define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x08000000)
 
-#define CONFIG_SUPPORT_RAW_INITRD
+
+/* Now for the remaining common defines */
+#include <configs/ti_armv7_common.h>
+
+/* We wont be loading up OS from SPL for now.. */
+#undef CONFIG_SPL_OS_BOOT
+/* We do not have MMC SPL support.. yet.. */
+#undef CONFIG_SPL_LIBDISK_SUPPORT
+#undef CONFIG_SPL_MMC_SUPPORT
+#undef CONFIG_SPL_FAT_SUPPORT
+#undef CONFIG_SPL_EXT_SUPPORT
+
+/* And no support for GPIO, yet.. */
+#undef CONFIG_SPL_GPIO_SUPPORT
+#undef CONFIG_CMD_GPIO
 
 /* we may include files below only after all above definitions */
 #include <asm/arch/hardware.h>
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header Nishanth Menon
@ 2015-07-17 15:38   ` Murali Karicheri
  2015-07-17 16:27     ` Nishanth Menon
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 15:38 UTC (permalink / raw)
  To: u-boot

On 07/16/2015 03:08 PM, Nishanth Menon wrote:
> TI armv7 based SoCs are based on two architectures - one based on OMAP
> generation architecture and others based on Keystone architecture.
>
> Many of the options are architecture specific, however a lot are common
> with v7 architecture. So, step 1 will be to move out OMAP specific stuff
> from ti_armv7_common into a ti_armv7_omap.h header which is then used
> by all the relevant architecture headers.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> V2: no change.
>
> V1: https://patchwork.ozlabs.org/patch/496726/
>   include/configs/am43xx_evm.h       |  2 +-
>   include/configs/ti_am335x_common.h |  2 +-
>   include/configs/ti_armv7_common.h  | 21 ----------------
>   include/configs/ti_armv7_omap.h    | 49 ++++++++++++++++++++++++++++++++++++++
>   include/configs/ti_omap3_common.h  |  2 +-
>   include/configs/ti_omap4_common.h  |  2 +-
>   include/configs/ti_omap5_common.h  |  2 +-
>   7 files changed, 54 insertions(+), 26 deletions(-)
>   create mode 100644 include/configs/ti_armv7_omap.h
>
> diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
> index 33e534a76583..65ac8ef34eb8 100644
> --- a/include/configs/am43xx_evm.h
> +++ b/include/configs/am43xx_evm.h
> @@ -80,7 +80,7 @@
>   #endif
>
>   /* Now bring in the rest of the common code. */
> -#include <configs/ti_armv7_common.h>
> +#include <configs/ti_armv7_omap.h>
>
>   /* Always 64 KiB env size */
>   #define CONFIG_ENV_SIZE			(64 << 10)
> diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h
> index 4d2ae280e7f1..9697431b4496 100644
> --- a/include/configs/ti_am335x_common.h
> +++ b/include/configs/ti_am335x_common.h
> @@ -94,6 +94,6 @@
>   #endif
>
>   /* Now bring in the rest of the common code. */
> -#include <configs/ti_armv7_common.h>
> +#include <configs/ti_armv7_omap.h>
>
>   #endif	/* __CONFIG_TI_AM335X_COMMON_H__ */
> diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
> index 0aea7d12ec16..63244dbc83ff 100644
> --- a/include/configs/ti_armv7_common.h
> +++ b/include/configs/ti_armv7_common.h
> @@ -18,8 +18,6 @@
>   #define __CONFIG_TI_ARMV7_COMMON_H__
>
>   /* Common define for many platforms. */
> -#define CONFIG_OMAP
> -#define CONFIG_OMAP_COMMON
>   #define CONFIG_SYS_GENERIC_BOARD
>
>   /*
> @@ -86,39 +84,20 @@
>   #define CONFIG_I2C
>   #define CONFIG_CMD_I2C
>   #define CONFIG_SYS_I2C
> -#define CONFIG_SYS_OMAP24_I2C_SPEED	100000
> -#define CONFIG_SYS_OMAP24_I2C_SLAVE	1
> -#define CONFIG_SYS_I2C_OMAP24XX
>
>   /* MMC/SD IP block */
>   #define CONFIG_MMC
>   #define CONFIG_GENERIC_MMC

Why do we need MMC options in common? Only keystone device that uses MMC 
is Galileo. This should stay in individual device specific or
board specific config file.

> -#define CONFIG_OMAP_HSMMC
>   #define CONFIG_CMD_MMC

Same here..

>
>   /* McSPI IP block */
>   #define CONFIG_SPI
> -#define CONFIG_OMAP3_SPI
>   #define CONFIG_CMD_SPI
>
>   /* GPIO block */
> -#define CONFIG_OMAP_GPIO
>   #define CONFIG_CMD_GPIO
I believe currently keystone doesn't use GPIO, but this may change.
Probably remove this as well for now and add it when GPIO is supported 
on K2.
>
>   /*
> - * GPMC NAND block.  We support 1 device and the physical address to
> - * access CS0 at is 0x8000000.
> - */
> -#ifdef CONFIG_NAND
> -#define CONFIG_NAND_OMAP_GPMC
> -#ifndef CONFIG_SYS_NAND_BASE
> -#define CONFIG_SYS_NAND_BASE		0x8000000
> -#endif
> -#define CONFIG_SYS_MAX_NAND_DEVICE	1
> -#define CONFIG_CMD_NAND
> -#endif
> -
> -/*
>    * The following are general good-enough settings for U-Boot.  We set a
>    * large malloc pool as we generally have a lot of DDR, and we opt for
>    * function over binary size in the main portion of U-Boot as this is
> diff --git a/include/configs/ti_armv7_omap.h b/include/configs/ti_armv7_omap.h
> new file mode 100644
> index 000000000000..7548170afcf7
> --- /dev/null
> +++ b/include/configs/ti_armv7_omap.h
> @@ -0,0 +1,49 @@
> +/*
> + * ti_armv7_omap.h
> + *
> + * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
> + *
> + * SPDX-License-Identifier:	GPL-2.0+
> + *
> + * The various ARMv7 SoCs from TI all share a number of IP blocks when
> + * implementing a given feature. This is meant to isolate the features
> + * that are based on OMAP architecture.
> + */
> +#ifndef __CONFIG_TI_ARMV7_OMAP_H__
> +#define __CONFIG_TI_ARMV7_OMAP_H__
> +
> +/* Common defines for all OMAP architecture based SoCs */
> +#define CONFIG_OMAP
> +#define CONFIG_OMAP_COMMON
> +
> +/* I2C IP block */
> +#define CONFIG_SYS_OMAP24_I2C_SPEED	100000
> +#define CONFIG_SYS_OMAP24_I2C_SLAVE	1
> +#define CONFIG_SYS_I2C_OMAP24XX
> +
> +/* MMC/SD IP block */
> +#define CONFIG_OMAP_HSMMC
> +
> +/* SPI IP Block */
> +#define CONFIG_OMAP3_SPI
> +
> +/* GPIO block */
> +#define CONFIG_OMAP_GPIO
> +
> +/*
> + * GPMC NAND block.  We support 1 device and the physical address to
> + * access CS0 at is 0x8000000.
> + */
> +#ifdef CONFIG_NAND
> +#define CONFIG_NAND_OMAP_GPMC
> +#ifndef CONFIG_SYS_NAND_BASE
> +#define CONFIG_SYS_NAND_BASE		0x8000000
> +#endif
> +#define CONFIG_SYS_MAX_NAND_DEVICE	1
> +#define CONFIG_CMD_NAND
> +#endif
> +
> +/* Now for the remaining common defines */
> +#include <configs/ti_armv7_common.h>
> +
> +#endif /* __CONFIG_TI_ARMV7_OMAP_H__ */
> diff --git a/include/configs/ti_omap3_common.h b/include/configs/ti_omap3_common.h
> index 429b109afa23..be231a551361 100644
> --- a/include/configs/ti_omap3_common.h
> +++ b/include/configs/ti_omap3_common.h
> @@ -84,6 +84,6 @@
>   #endif
>
>   /* Now bring in the rest of the common code. */
> -#include <configs/ti_armv7_common.h>
> +#include <configs/ti_armv7_omap.h>
>
>   #endif	/* __CONFIG_TI_OMAP3_COMMON_H__ */
> diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
> index e96613406b3b..959f312edb5b 100644
> --- a/include/configs/ti_omap4_common.h
> +++ b/include/configs/ti_omap4_common.h
> @@ -52,7 +52,7 @@
>   #define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
>   #endif
>
> -#include <configs/ti_armv7_common.h>
> +#include <configs/ti_armv7_omap.h>
>
>   /*
>    * Hardware drivers
> diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h
> index f3e5a7587de9..789542be6710 100644
> --- a/include/configs/ti_omap5_common.h
> +++ b/include/configs/ti_omap5_common.h
> @@ -47,7 +47,7 @@
>   #include <asm/arch/cpu.h>
>   #include <asm/arch/omap.h>
>
> -#include <configs/ti_armv7_common.h>
> +#include <configs/ti_armv7_omap.h>
>
>   /*
>    * Hardware drivers
>


-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2 Nishanth Menon
@ 2015-07-17 15:42   ` Murali Karicheri
  2015-07-17 15:49     ` Vitaly Andrianov
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 15:42 UTC (permalink / raw)
  To: u-boot

On 07/16/2015 03:08 PM, Nishanth Menon wrote:
> rename the keystone2 common header into an keystone2 architecture
> specific header which can then reuse the common ti_armv7 config headers.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> no change
> V1: https://patchwork.ozlabs.org/patch/496728/
>
>   include/configs/k2e_evm.h                           | 2 +-
>   include/configs/k2hk_evm.h                          | 2 +-
>   include/configs/k2l_evm.h                           | 2 +-
>   include/configs/{ks2_evm.h => ti_armv7_keystone2.h} | 0
>   4 files changed, 3 insertions(+), 3 deletions(-)
>   rename include/configs/{ks2_evm.h => ti_armv7_keystone2.h} (100%)
>
> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
> index a28ceb7064a7..ac50a01b2980 100644
> --- a/include/configs/k2e_evm.h
> +++ b/include/configs/k2e_evm.h
> @@ -27,7 +27,7 @@
>   	"name_uboot=u-boot-spi-k2e-evm.gph\0"				\
>   	"name_fs=arago-console-image-k2e-evm.cpio.gz\0"
>
> -#include <configs/ks2_evm.h>
> +#include <configs/ti_armv7_keystone2.h>
>
>   /* SPL SPI Loader Configuration */
>   #define CONFIG_SPL_TEXT_BASE           0x0c100000
> diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
> index eae772178338..29e3403aa082 100644
> --- a/include/configs/k2hk_evm.h
> +++ b/include/configs/k2hk_evm.h
> @@ -27,7 +27,7 @@
>   	"name_uboot=u-boot-spi-k2hk-evm.gph\0"				\
>   	"name_fs=arago-console-image-k2hk-evm.cpio.gz\0"
>
> -#include <configs/ks2_evm.h>
> +#include <configs/ti_armv7_keystone2.h>
>
>   /* SPL SPI Loader Configuration */
>   #define CONFIG_SPL_TEXT_BASE		0x0c200000
> diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h
> index 57da0579255a..50d5c991a0bb 100644
> --- a/include/configs/k2l_evm.h
> +++ b/include/configs/k2l_evm.h
> @@ -27,7 +27,7 @@
>   	"name_uboot=u-boot-spi-k2l-evm.gph\0"				\
>   	"name_fs=arago-console-image-k2l-evm.cpio.gz\0"
>
> -#include <configs/ks2_evm.h>
> +#include <configs/ti_armv7_keystone2.h>
>
>   /* SPL SPI Loader Configuration */
>   #define CONFIG_SPL_TEXT_BASE		0x0c100000
> diff --git a/include/configs/ks2_evm.h b/include/configs/ti_armv7_keystone2.h
> similarity index 100%
> rename from include/configs/ks2_evm.h
> rename to include/configs/ti_armv7_keystone2.h
>
Acked-By: Murali Karicheri <m-karicheri2@ti.com>

-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR Nishanth Menon
@ 2015-07-17 15:44   ` Murali Karicheri
  2015-07-17 15:50     ` Vitaly Andrianov
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 15:44 UTC (permalink / raw)
  To: u-boot

On 07/16/2015 03:08 PM, Nishanth Menon wrote:
> CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do
> just like what the rest of the world does.
>
> Suggested-by: Tom Rini <trini@konsulko.com>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> New patch.
>
>   board/ti/ks2_evm/board.c  | 2 +-
>   include/configs/ks2_evm.h | 1 -
>   2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
> index 8892a2843df4..0cefb3404403 100644
> --- a/board/ti/ks2_evm/board.c
> +++ b/board/ti/ks2_evm/board.c
> @@ -48,7 +48,7 @@ int dram_init(void)
>
>   int board_init(void)
>   {
> -	gd->bd->bi_boot_params = CONFIG_LINUX_BOOT_PARAM_ADDR;
> +	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
>
>   	return 0;
>   }
> diff --git a/include/configs/ks2_evm.h b/include/configs/ks2_evm.h
> index e05d56cd8262..d838f270018b 100644
> --- a/include/configs/ks2_evm.h
> +++ b/include/configs/ks2_evm.h
> @@ -307,7 +307,6 @@
>   #define CONFIG_OF_BOARD_SETUP
>   #define CONFIG_SYS_BARGSIZE		1024
>   #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x08000000)
> -#define CONFIG_LINUX_BOOT_PARAM_ADDR	(CONFIG_SYS_SDRAM_BASE + 0x100)
>
>   #define CONFIG_SUPPORT_RAW_INITRD
>
>
Acked-By: Murali Karicheri <m-karicheri2@ti.com>

-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2
  2015-07-17 15:42   ` Murali Karicheri
@ 2015-07-17 15:49     ` Vitaly Andrianov
  0 siblings, 0 replies; 18+ messages in thread
From: Vitaly Andrianov @ 2015-07-17 15:49 UTC (permalink / raw)
  To: u-boot



On 07/17/2015 11:42 AM, Murali Karicheri wrote:
> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>> rename the keystone2 common header into an keystone2 architecture
>> specific header which can then reuse the common ti_armv7 config headers.
>>
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>> no change
>> V1: https://patchwork.ozlabs.org/patch/496728/
>>
>>   include/configs/k2e_evm.h                           | 2 +-
>>   include/configs/k2hk_evm.h                          | 2 +-
>>   include/configs/k2l_evm.h                           | 2 +-
>>   include/configs/{ks2_evm.h => ti_armv7_keystone2.h} | 0
>>   4 files changed, 3 insertions(+), 3 deletions(-)
>>   rename include/configs/{ks2_evm.h => ti_armv7_keystone2.h} (100%)
>>
>> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
>> index a28ceb7064a7..ac50a01b2980 100644
>> --- a/include/configs/k2e_evm.h
>> +++ b/include/configs/k2e_evm.h
>> @@ -27,7 +27,7 @@
>>       "name_uboot=u-boot-spi-k2e-evm.gph\0"                \
>>       "name_fs=arago-console-image-k2e-evm.cpio.gz\0"
>>
>> -#include <configs/ks2_evm.h>
>> +#include <configs/ti_armv7_keystone2.h>
>>
>>   /* SPL SPI Loader Configuration */
>>   #define CONFIG_SPL_TEXT_BASE           0x0c100000
>> diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
>> index eae772178338..29e3403aa082 100644
>> --- a/include/configs/k2hk_evm.h
>> +++ b/include/configs/k2hk_evm.h
>> @@ -27,7 +27,7 @@
>>       "name_uboot=u-boot-spi-k2hk-evm.gph\0"                \
>>       "name_fs=arago-console-image-k2hk-evm.cpio.gz\0"
>>
>> -#include <configs/ks2_evm.h>
>> +#include <configs/ti_armv7_keystone2.h>
>>
>>   /* SPL SPI Loader Configuration */
>>   #define CONFIG_SPL_TEXT_BASE        0x0c200000
>> diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h
>> index 57da0579255a..50d5c991a0bb 100644
>> --- a/include/configs/k2l_evm.h
>> +++ b/include/configs/k2l_evm.h
>> @@ -27,7 +27,7 @@
>>       "name_uboot=u-boot-spi-k2l-evm.gph\0"                \
>>       "name_fs=arago-console-image-k2l-evm.cpio.gz\0"
>>
>> -#include <configs/ks2_evm.h>
>> +#include <configs/ti_armv7_keystone2.h>
>>
>>   /* SPL SPI Loader Configuration */
>>   #define CONFIG_SPL_TEXT_BASE        0x0c100000
>> diff --git a/include/configs/ks2_evm.h
>> b/include/configs/ti_armv7_keystone2.h
>> similarity index 100%
>> rename from include/configs/ks2_evm.h
>> rename to include/configs/ti_armv7_keystone2.h
>>
> Acked-By: Murali Karicheri <m-karicheri2@ti.com>
>
Acked-by: Vitaly Andrianov <vitalya@ti.com>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR
  2015-07-17 15:44   ` Murali Karicheri
@ 2015-07-17 15:50     ` Vitaly Andrianov
  0 siblings, 0 replies; 18+ messages in thread
From: Vitaly Andrianov @ 2015-07-17 15:50 UTC (permalink / raw)
  To: u-boot



On 07/17/2015 11:44 AM, Murali Karicheri wrote:
> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>> CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do
>> just like what the rest of the world does.
>>
>> Suggested-by: Tom Rini <trini@konsulko.com>
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>> New patch.
>>
>>   board/ti/ks2_evm/board.c  | 2 +-
>>   include/configs/ks2_evm.h | 1 -
>>   2 files changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
>> index 8892a2843df4..0cefb3404403 100644
>> --- a/board/ti/ks2_evm/board.c
>> +++ b/board/ti/ks2_evm/board.c
>> @@ -48,7 +48,7 @@ int dram_init(void)
>>
>>   int board_init(void)
>>   {
>> -    gd->bd->bi_boot_params = CONFIG_LINUX_BOOT_PARAM_ADDR;
>> +    gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
>>
>>       return 0;
>>   }
>> diff --git a/include/configs/ks2_evm.h b/include/configs/ks2_evm.h
>> index e05d56cd8262..d838f270018b 100644
>> --- a/include/configs/ks2_evm.h
>> +++ b/include/configs/ks2_evm.h
>> @@ -307,7 +307,6 @@
>>   #define CONFIG_OF_BOARD_SETUP
>>   #define CONFIG_SYS_BARGSIZE        1024
>>   #define CONFIG_SYS_LOAD_ADDR        (CONFIG_SYS_SDRAM_BASE +
>> 0x08000000)
>> -#define CONFIG_LINUX_BOOT_PARAM_ADDR    (CONFIG_SYS_SDRAM_BASE + 0x100)
>>
>>   #define CONFIG_SUPPORT_RAW_INITRD
>>
>>
> Acked-By: Murali Karicheri <m-karicheri2@ti.com>
>
Acked-by: Vitaly Andrianov <vitalya@ti.com>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-16 19:08 ` [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common Nishanth Menon
@ 2015-07-17 16:04   ` Murali Karicheri
  2015-07-17 16:52     ` Nishanth Menon
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 16:04 UTC (permalink / raw)
  To: u-boot

On 07/16/2015 03:08 PM, Nishanth Menon wrote:
> Try to maintain as much commonality by conditionally including stuff
> in armv7_common as necessary and removing the common defines from
> keystone2 header.
>
Including the common ti_armv7_common.h for keystone also add duplication 
of the various addresses

#define DEFAULT_LINUX_BOOT_ENV \
	"loadaddr=0x82000000\0" \
	"kernel_addr_r=0x82000000\0" \
	"fdtaddr=0x88000000\0" \
	"fdt_addr_r=0x88000000\0" \
	"rdaddr=0x88080000\0" \
	"ramdisk_addr_r=0x88080000\0" \
	"bootm_size=0x10000000\0"

Some of these are also defined in keystone common file. The env scripts 
for keystone to be reworked to use the common variable above.

Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as well.

Did you do a test with env default -f -a with this to check if it 
continues to work for Keystone Linux boot.



> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> Changes in V2:
> 	- common CONFIG_SYS_SDRAM_BASE
> 	- common CONFIG_SYS_LOAD_ADDR
> 	- rebased to new series
>
> V1: https://patchwork.ozlabs.org/patch/496730/
>
>   include/configs/k2e_evm.h            |  2 --
>   include/configs/k2hk_evm.h           |  2 --
>   include/configs/k2l_evm.h            |  2 --
>   include/configs/ti_armv7_common.h    |  6 ++++-
>   include/configs/ti_armv7_keystone2.h | 52 +++++++++++-------------------------
>   5 files changed, 20 insertions(+), 44 deletions(-)
>
> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
> index ac50a01b2980..f1e650141ae1 100644
> --- a/include/configs/k2e_evm.h
> +++ b/include/configs/k2e_evm.h
> @@ -15,8 +15,6 @@
>   #define CONFIG_K2E_EVM
>
>   /* U-Boot general configuration */
> -#define CONFIG_SYS_PROMPT               "K2E EVM # "

Why remove this?

> -
>   #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
>   	"addr_mon=0x0c140000\0"						\
>   	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
> diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
> index 29e3403aa082..f8e83de64b63 100644
> --- a/include/configs/k2hk_evm.h
> +++ b/include/configs/k2hk_evm.h
> @@ -15,8 +15,6 @@
>   #define CONFIG_K2HK_EVM
>
>   /* U-Boot general configuration */
> -#define CONFIG_SYS_PROMPT               "K2HK EVM # "
Same here
> -
>   #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
>   	"addr_mon=0x0c5f0000\0"						\
>   	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
> diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h
> index 50d5c991a0bb..395608a5f6db 100644
> --- a/include/configs/k2l_evm.h
> +++ b/include/configs/k2l_evm.h
> @@ -15,8 +15,6 @@
>   #define CONFIG_K2L_EVM
>
>   /* U-Boot general configuration */
> -#define CONFIG_SYS_PROMPT		"K2L EVM # "
> -
Same here

>   #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
>   	"addr_mon=0x0c140000\0"						\
>   	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
> diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
> index 63244dbc83ff..814da3409c46 100644
> --- a/include/configs/ti_armv7_common.h
> +++ b/include/configs/ti_armv7_common.h
> @@ -73,9 +73,13 @@
>   #ifndef CONFIG_NR_DRAM_BANKS
>   #define CONFIG_NR_DRAM_BANKS		1
>   #endif
> +
Why these extra spaces?

>   #define CONFIG_SYS_SDRAM_BASE		0x80000000
> +
> +#ifndef CONFIG_SYS_INIT_SP_ADDR
>   #define CONFIG_SYS_INIT_SP_ADDR         (NON_SECURE_SRAM_END - \
>   						GENERATED_GBL_DATA_SIZE)
> +#endif
>
>   /* Timer information. */
>   #define CONFIG_SYS_PTV			2	/* Divisor: 2^(PTV+1) => 8 */
> @@ -140,7 +144,7 @@
>    * mtdparts, both for ease of use in U-Boot and for passing information
>    * on to the Linux kernel.
>    */
> -#if defined(CONFIG_SPI_BOOT) || defined(CONFIG_NOR) || defined(CONFIG_NAND)
> +#if defined(CONFIG_SPI_BOOT) || defined(CONFIG_NOR) || defined(CONFIG_NAND) || defined(CONFIG_NAND_DAVINCI)
>   #define CONFIG_MTD_DEVICE		/* Required for mtdparts */
>   #define CONFIG_CMD_MTDPARTS
>   #endif
> diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
> index d838f270018b..7d89bd78e43b 100644
> --- a/include/configs/ti_armv7_keystone2.h
> +++ b/include/configs/ti_armv7_keystone2.h
> @@ -14,10 +14,7 @@
>
>   /* U-Boot Build Configuration */
>   #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is a 2nd stage loader */
> -#define CONFIG_SYS_NO_FLASH		/* that is, no *NOR* flash */
> -#define CONFIG_SYS_CONSOLE_INFO_QUIET
>   #define CONFIG_BOARD_EARLY_INIT_F
> -#define CONFIG_SYS_THUMB_BUILD
>
>   /* SoC Configuration */
>   #define CONFIG_ARCH_CPU_INIT
> @@ -28,11 +25,9 @@
>
>   /* Memory Configuration */
>   #define CONFIG_NR_DRAM_BANKS		2
> -#define CONFIG_SYS_SDRAM_BASE		0x80000000
>   #define CONFIG_SYS_LPAE_SDRAM_BASE	0x800000000
>   #define CONFIG_MAX_RAM_BANK_SIZE	(2 << 30)       /* 2GB */
>   #define CONFIG_STACKSIZE		(512 << 10)     /* 512 KiB */
> -#define CONFIG_SYS_MALLOC_LEN		(4 << 20)       /* 4 MiB */
>   #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE - \
>   					GENERATED_GBL_DATA_SIZE)
>
> @@ -49,15 +44,10 @@
>   #define CONFIG_SPL_STACK		(CONFIG_SYS_SPL_MALLOC_START + \
>   					CONFIG_SYS_SPL_MALLOC_SIZE + \
>   					CONFIG_SPL_STACK_SIZE - 4)
> -#define CONFIG_SPL_LIBCOMMON_SUPPORT
> -#define CONFIG_SPL_LIBGENERIC_SUPPORT
> -#define CONFIG_SPL_SERIAL_SUPPORT
>   #define CONFIG_SPL_SPI_FLASH_SUPPORT
>   #define CONFIG_SPL_SPI_SUPPORT
> -#define CONFIG_SPL_BOARD_INIT
>   #define CONFIG_SPL_SPI_LOAD
>   #define CONFIG_SYS_SPI_U_BOOT_OFFS	CONFIG_SPL_PAD_TO
> -#define CONFIG_SPL_FRAMEWORK
>
>   /* UART Configuration */
>   #define CONFIG_SYS_NS16550
> @@ -68,13 +58,10 @@
>   #define CONFIG_SYS_NS16550_COM2		KS2_UART1_BASE
>   #define CONFIG_SYS_NS16550_CLK		clk_get_rate(KS2_CLK1_6)
>   #define CONFIG_CONS_INDEX		1
> -#define CONFIG_BAUDRATE			115200
>
>   /* SPI Configuration */
> -#define CONFIG_SPI
>   #define CONFIG_SPI_FLASH_STMICRO
>   #define CONFIG_DAVINCI_SPI
> -#define CONFIG_CMD_SPI
>   #define CONFIG_SYS_SPI_CLK		clk_get_rate(KS2_CLK1_6)
>   #define CONFIG_SF_DEFAULT_SPEED		30000000
>   #define CONFIG_ENV_SPI_MAX_HZ		CONFIG_SF_DEFAULT_SPEED
> @@ -148,7 +135,6 @@
>   #define CONFIG_AEMIF_CNTRL_BASE		KS2_AEMIF_CNTRL_BASE
>
>   /* I2C Configuration */
> -#define CONFIG_SYS_I2C
>   #define CONFIG_SYS_I2C_DAVINCI
>   #define CONFIG_SYS_DAVINCI_I2C_SPEED	100000
>   #define CONFIG_SYS_DAVINCI_I2C_SLAVE	0x10 /* SMBus host address */
> @@ -185,7 +171,6 @@
>   #define CONFIG_ENV_IS_IN_NAND
>   #define CONFIG_ENV_OFFSET			0x100000
>   #define CONFIG_MTD_PARTITIONS
> -#define CONFIG_MTD_DEVICE
>   #define CONFIG_RBTREE
>   #define CONFIG_LZO
>   #define MTDIDS_DEFAULT			"nand0=davinci_nand.0"
> @@ -197,8 +182,6 @@
>   #define CONFIG_USB_XHCI
>   #define CONFIG_USB_XHCI_KEYSTONE
>   #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS	2
> -#define CONFIG_USB_STORAGE
> -#define CONFIG_DOS_PARTITION
>   #define CONFIG_EFI_PARTITION
>   #define CONFIG_FS_FAT
>   #define CONFIG_SYS_CACHELINE_SIZE		64
> @@ -208,39 +191,25 @@
>   #define CONFIG_USB_PHY_CFG_BASE			KS2_USB_PHY_CFG_BASE
>
>   /* U-Boot command configuration */
> -#define CONFIG_CMD_ASKENV
>   #define CONFIG_CMD_DHCP
> -#define CONFIG_CMD_I2C
>   #define CONFIG_CMD_PING
>   #define CONFIG_CMD_SAVES
> -#define CONFIG_CMD_MTDPARTS
>   #define CONFIG_CMD_NAND
>   #define CONFIG_CMD_UBI
>   #define CONFIG_CMD_UBIFS
>   #define CONFIG_CMD_SF
>   #define CONFIG_CMD_EEPROM
>   #define CONFIG_CMD_USB
> -#define CONFIG_CMD_FAT
> -#define CONFIG_CMD_FS_GENERIC
>
>   /* U-Boot general configuration */
> -#define CONFIG_SYS_GENERIC_BOARD
>   #define CONFIG_MISC_INIT_R
> -#define CONFIG_SYS_CBSIZE		1024
> -#define CONFIG_SYS_PBSIZE		2048
> -#define CONFIG_SYS_MAXARGS		16
> -#define CONFIG_SYS_HUSH_PARSER
> -#define CONFIG_SYS_LONGHELP
>   #define CONFIG_CRC32_VERIFY
>   #define CONFIG_MX_CYCLIC
> -#define CONFIG_CMDLINE_EDITING
> -#define CONFIG_VERSION_VARIABLE
>   #define CONFIG_TIMESTAMP
>
>   /* EDMA3 */
>   #define CONFIG_TI_EDMA3
>
> -#define CONFIG_BOOTDELAY		3
>   #define CONFIG_BOOTFILE			"uImage"
>   #define CONFIG_EXTRA_ENV_SETTINGS					\
>   	CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
> @@ -301,14 +270,23 @@
>   #define CONFIG_BOOTARGS							\
>
>   /* Linux interfacing */
> -#define CONFIG_CMDLINE_TAG
> -#define CONFIG_SETUP_MEMORY_TAGS
> -#define CONFIG_OF_LIBFDT		1
>   #define CONFIG_OF_BOARD_SETUP
> -#define CONFIG_SYS_BARGSIZE		1024
> -#define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x08000000)
>
> -#define CONFIG_SUPPORT_RAW_INITRD
> +
> +/* Now for the remaining common defines */
> +#include <configs/ti_armv7_common.h>
> +
> +/* We wont be loading up OS from SPL for now.. */
> +#undef CONFIG_SPL_OS_BOOT
> +/* We do not have MMC SPL support.. yet.. */
> +#undef CONFIG_SPL_LIBDISK_SUPPORT
> +#undef CONFIG_SPL_MMC_SUPPORT
> +#undef CONFIG_SPL_FAT_SUPPORT
> +#undef CONFIG_SPL_EXT_SUPPORT
> +
> +/* And no support for GPIO, yet.. */
> +#undef CONFIG_SPL_GPIO_SUPPORT
> +#undef CONFIG_CMD_GPIO
>
>   /* we may include files below only after all above definitions */
>   #include <asm/arch/hardware.h>
>
I assume the one you have removed is already part of 
include/configs/ti_armv7_keystone2.h.

-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header
  2015-07-17 15:38   ` Murali Karicheri
@ 2015-07-17 16:27     ` Nishanth Menon
  2015-07-17 17:35       ` Murali Karicheri
  0 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-17 16:27 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 10:38 AM, Murali Karicheri wrote:
> On 07/16/2015 03:08 PM, Nishanth Menon wrote:

[...]

>>   /* MMC/SD IP block */
>>   #define CONFIG_MMC
>>   #define CONFIG_GENERIC_MMC
> 
> Why do we need MMC options in common? Only keystone device that uses MMC
> is Galileo. This should stay in individual device specific or
> board specific config file.

precisely why MMC is present in generic - lack of mmc is not consistent
in all ks2 devices as well - we can #undef if as necessary. I did miss
undefing it in patch #4 - I just did #undef CONFIG_SPL_MMC_SUPPORT

I can respin patch #4. with these added in.

> 
>> -#define CONFIG_OMAP_HSMMC
>>   #define CONFIG_CMD_MMC
> 
> Same here..
> 

ditto.

>>   /* GPIO block */
>> -#define CONFIG_OMAP_GPIO
>>   #define CONFIG_CMD_GPIO
> I believe currently keystone doesn't use GPIO, but this may change.
> Probably remove this as well for now and add it when GPIO is supported
> on K2.

patch #4:

+/* And no support for GPIO, yet.. */
+#undef CONFIG_SPL_GPIO_SUPPORT
+#undef CONFIG_CMD_GPIO


idea being to have as many common definitions as possible and undef the
ones we dont need as necessary. only thing i was careful here about was
to try and remove all OMAP specific defines out.

-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-17 16:04   ` Murali Karicheri
@ 2015-07-17 16:52     ` Nishanth Menon
  2015-07-17 17:11       ` Murali Karicheri
  0 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-17 16:52 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 11:04 AM, Murali Karicheri wrote:
> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>> Try to maintain as much commonality by conditionally including stuff
>> in armv7_common as necessary and removing the common defines from
>> keystone2 header.
>>
> Including the common ti_armv7_common.h for keystone also add duplication
> of the various addresses
> 
> #define DEFAULT_LINUX_BOOT_ENV \
>     "loadaddr=0x82000000\0" \
>     "kernel_addr_r=0x82000000\0" \
>     "fdtaddr=0x88000000\0" \
>     "fdt_addr_r=0x88000000\0" \
>     "rdaddr=0x88080000\0" \
>     "ramdisk_addr_r=0x88080000\0" \
>     "bootm_size=0x10000000\0"
> 
> Some of these are also defined in keystone common file. The env scripts
> for keystone to be reworked to use the common variable above.
> 
> Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as well.

we need to cleanup all the variables  once we get the distro config
included in anyways... I had decided not to rock the apple cart too much
with this patch -> just the basic consolidation with as minimal changes
as necessary. inclusion of DEFAULT_LINUX_BOOT_ENV into keystone2.h can
be done as a follow on patch.

> Did you do a test with env default -f -a with this to check if it
> continues to work for Keystone Linux boot.
> 

after the series: http://pastebin.ubuntu.com/11893531/
before the series: http://pastebin.ubuntu.com/11893576/
deltas:
bootdelay is 1 now
additional definitions:
arch=arm
soc=keystone    	
vendor=ti
cpu=armv7
board=ks2_evm
board_name=ks2_evm

will be great to get a tested by on that. Nothing else seems to have
changed.

>>
>> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
>> index ac50a01b2980..f1e650141ae1 100644
>> --- a/include/configs/k2e_evm.h
>> +++ b/include/configs/k2e_evm.h
>> @@ -15,8 +15,6 @@
>>   #define CONFIG_K2E_EVM
>>
>>   /* U-Boot general configuration */
>> -#define CONFIG_SYS_PROMPT               "K2E EVM # "
> 
> Why remove this?

arm_v7_common defines just "u-boot#" for all SoC and boards. So, we dont
need this.

>>   #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS                \
>>       "addr_mon=0x0c140000\0"                        \
>>       "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "    \
>> diff --git a/include/configs/ti_armv7_common.h
>> b/include/configs/ti_armv7_common.h
>> index 63244dbc83ff..814da3409c46 100644
>> --- a/include/configs/ti_armv7_common.h
>> +++ b/include/configs/ti_armv7_common.h
>> @@ -73,9 +73,13 @@
>>   #ifndef CONFIG_NR_DRAM_BANKS
>>   #define CONFIG_NR_DRAM_BANKS        1
>>   #endif
>> +
> Why these extra spaces?

Thanks.. will drop.

> I assume the one you have removed is already part of
> include/configs/ti_armv7_keystone2.h.

for i in `git grep "^#define" include/configs/ti_armv7_keystone2.h|sed
-e "s/\s\s*/ /g"|cut -d ' ' -f2|sort|uniq`; do k=`git grep $i
include/configs/ti_armv7_common.h`; if [ -n "$k" ]; then echo $i; fi; done

Then started cleaning them up.



-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-17 16:52     ` Nishanth Menon
@ 2015-07-17 17:11       ` Murali Karicheri
  2015-07-17 17:25         ` Nishanth Menon
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 17:11 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 12:52 PM, Nishanth Menon wrote:
> On 07/17/2015 11:04 AM, Murali Karicheri wrote:
>> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>>> Try to maintain as much commonality by conditionally including stuff
>>> in armv7_common as necessary and removing the common defines from
>>> keystone2 header.
>>>
>> Including the common ti_armv7_common.h for keystone also add duplication
>> of the various addresses
>>
>> #define DEFAULT_LINUX_BOOT_ENV \
>>      "loadaddr=0x82000000\0" \
>>      "kernel_addr_r=0x82000000\0" \
>>      "fdtaddr=0x88000000\0" \
>>      "fdt_addr_r=0x88000000\0" \
>>      "rdaddr=0x88080000\0" \
>>      "ramdisk_addr_r=0x88080000\0" \
>>      "bootm_size=0x10000000\0"
>>
>> Some of these are also defined in keystone common file. The env scripts
>> for keystone to be reworked to use the common variable above.
>>
>> Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as well.
>
> we need to cleanup all the variables  once we get the distro config

What do you mean by distro config? Could you explain?

> included in anyways... I had decided not to rock the apple cart too much
> with this patch -> just the basic consolidation with as minimal changes
> as necessary. inclusion of DEFAULT_LINUX_BOOT_ENV into keystone2.h can
> be done as a follow on patch.

Probably not this one. User would see both these variables and will 
cause confusion and should be fixed.

>
>> Did you do a test with env default -f -a with this to check if it
>> continues to work for Keystone Linux boot.
>>
>
> after the series: http://pastebin.ubuntu.com/11893531/
> before the series: http://pastebin.ubuntu.com/11893576/
> deltas:
> bootdelay is 1 now
> additional definitions:
> arch=arm
> soc=keystone    	
> vendor=ti
> cpu=armv7
> board=ks2_evm
> board_name=ks2_evm
>
> will be great to get a tested by on that. Nothing else seems to have
> changed.
>
>>>
>>> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
>>> index ac50a01b2980..f1e650141ae1 100644
>>> --- a/include/configs/k2e_evm.h
>>> +++ b/include/configs/k2e_evm.h
>>> @@ -15,8 +15,6 @@
>>>    #define CONFIG_K2E_EVM
>>>
>>>    /* U-Boot general configuration */
>>> -#define CONFIG_SYS_PROMPT               "K2E EVM # "
>>
>> Why remove this?
>
> arm_v7_common defines just "u-boot#" for all SoC and boards. So, we dont
> need this.

Sorry, this may be needed from the automation perspective. Also for 
backward compatibility for users. Would like to keep for K2.

>
>>>    #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS                \
>>>        "addr_mon=0x0c140000\0"                        \
>>>        "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "    \
>>> diff --git a/include/configs/ti_armv7_common.h
>>> b/include/configs/ti_armv7_common.h
>>> index 63244dbc83ff..814da3409c46 100644
>>> --- a/include/configs/ti_armv7_common.h
>>> +++ b/include/configs/ti_armv7_common.h
>>> @@ -73,9 +73,13 @@
>>>    #ifndef CONFIG_NR_DRAM_BANKS
>>>    #define CONFIG_NR_DRAM_BANKS        1
>>>    #endif
>>> +
>> Why these extra spaces?
>
> Thanks.. will drop.
>
>> I assume the one you have removed is already part of
>> include/configs/ti_armv7_keystone2.h.
>
> for i in `git grep "^#define" include/configs/ti_armv7_keystone2.h|sed
> -e "s/\s\s*/ /g"|cut -d ' ' -f2|sort|uniq`; do k=`git grep $i
> include/configs/ti_armv7_common.h`; if [ -n "$k" ]; then echo $i; fi; done
>
> Then started cleaning them up.
>
>
>


-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-17 17:11       ` Murali Karicheri
@ 2015-07-17 17:25         ` Nishanth Menon
  2015-07-17 17:45           ` Murali Karicheri
  0 siblings, 1 reply; 18+ messages in thread
From: Nishanth Menon @ 2015-07-17 17:25 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 12:11 PM, Murali Karicheri wrote:
> On 07/17/2015 12:52 PM, Nishanth Menon wrote:
>> On 07/17/2015 11:04 AM, Murali Karicheri wrote:
>>> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>>>> Try to maintain as much commonality by conditionally including stuff
>>>> in armv7_common as necessary and removing the common defines from
>>>> keystone2 header.
>>>>
>>> Including the common ti_armv7_common.h for keystone also add duplication
>>> of the various addresses
>>>
>>> #define DEFAULT_LINUX_BOOT_ENV \
>>>      "loadaddr=0x82000000\0" \
>>>      "kernel_addr_r=0x82000000\0" \
>>>      "fdtaddr=0x88000000\0" \
>>>      "fdt_addr_r=0x88000000\0" \
>>>      "rdaddr=0x88080000\0" \
>>>      "ramdisk_addr_r=0x88080000\0" \
>>>      "bootm_size=0x10000000\0"
>>>
>>> Some of these are also defined in keystone common file. The env scripts
>>> for keystone to be reworked to use the common variable above.
>>>
>>> Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as
>>> well.
>>
>> we need to cleanup all the variables  once we get the distro config
> 
> What do you mean by distro config? Could you explain?

include/config_distro* - both will eventually get integrated into
armv7_common.h to benefit all TI SoC platforms.

> 
>> included in anyways... I had decided not to rock the apple cart too much
>> with this patch -> just the basic consolidation with as minimal changes
>> as necessary. inclusion of DEFAULT_LINUX_BOOT_ENV into keystone2.h can
>> be done as a follow on patch.
> 
> Probably not this one. User would see both these variables and will
> cause confusion and should be fixed.
> 

they are no variables, they are defines. they will eventually be fixed.
I am leery to make a huge jump on a single series. lets do consolidation
in small baby steps please.

as I have already shown in my reply - the status quo is being maintained
and we are one step closer to an common framework.

>>
>>>>
>>>> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
>>>> index ac50a01b2980..f1e650141ae1 100644
>>>> --- a/include/configs/k2e_evm.h
>>>> +++ b/include/configs/k2e_evm.h
>>>> @@ -15,8 +15,6 @@
>>>>    #define CONFIG_K2E_EVM
>>>>
>>>>    /* U-Boot general configuration */
>>>> -#define CONFIG_SYS_PROMPT               "K2E EVM # "
>>>
>>> Why remove this?
>>
>> arm_v7_common defines just "u-boot#" for all SoC and boards. So, we dont
>> need this.
> 
> Sorry, this may be needed from the automation perspective. Also for
> backward compatibility for users. Would like to keep for K2.

This has been beaten to death in the past as well (I think some 3/4
years ago.. i think it should be in the archives, just too lazy to dig
through multi-year old discussions)..

I will let Tom comment more here. My understanding is that the
convention followed by all other TI SoCs will imply not having custom
sys_prompt..


That said, custom sys_prompt is NOT a need from automation perspective -
we have all our boards in automation farm for years now with and without
custom boot prompt. board identification can be done in other ways.


-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header
  2015-07-17 16:27     ` Nishanth Menon
@ 2015-07-17 17:35       ` Murali Karicheri
  0 siblings, 0 replies; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 17:35 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 12:27 PM, Nishanth Menon wrote:
> On 07/17/2015 10:38 AM, Murali Karicheri wrote:
>> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>
> [...]
>
>>>    /* MMC/SD IP block */
>>>    #define CONFIG_MMC
>>>    #define CONFIG_GENERIC_MMC
>>
>> Why do we need MMC options in common? Only keystone device that uses MMC
>> is Galileo. This should stay in individual device specific or
>> board specific config file.
>
> precisely why MMC is present in generic - lack of mmc is not consistent
> in all ks2 devices as well - we can #undef if as necessary. I did miss
> undefing it in patch #4 - I just did #undef CONFIG_SPL_MMC_SUPPORT

That will be fine. Thanks.
>
> I can respin patch #4. with these added in.
>
>>
>>> -#define CONFIG_OMAP_HSMMC
>>>    #define CONFIG_CMD_MMC
>>
>> Same here..
>>
>
> ditto.
>
>>>    /* GPIO block */
>>> -#define CONFIG_OMAP_GPIO
>>>    #define CONFIG_CMD_GPIO
>> I believe currently keystone doesn't use GPIO, but this may change.
>> Probably remove this as well for now and add it when GPIO is supported
>> on K2.
>
> patch #4:
>
> +/* And no support for GPIO, yet.. */
> +#undef CONFIG_SPL_GPIO_SUPPORT
> +#undef CONFIG_CMD_GPIO
>
>
> idea being to have as many common definitions as possible and undef the
> ones we dont need as necessary. only thing i was careful here about was
> to try and remove all OMAP specific defines out.
>


-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-17 17:25         ` Nishanth Menon
@ 2015-07-17 17:45           ` Murali Karicheri
  2015-07-17 20:41             ` Tom Rini
  0 siblings, 1 reply; 18+ messages in thread
From: Murali Karicheri @ 2015-07-17 17:45 UTC (permalink / raw)
  To: u-boot

On 07/17/2015 01:25 PM, Nishanth Menon wrote:
> On 07/17/2015 12:11 PM, Murali Karicheri wrote:
>> On 07/17/2015 12:52 PM, Nishanth Menon wrote:
>>> On 07/17/2015 11:04 AM, Murali Karicheri wrote:
>>>> On 07/16/2015 03:08 PM, Nishanth Menon wrote:
>>>>> Try to maintain as much commonality by conditionally including stuff
>>>>> in armv7_common as necessary and removing the common defines from
>>>>> keystone2 header.
>>>>>
>>>> Including the common ti_armv7_common.h for keystone also add duplication
>>>> of the various addresses
>>>>
>>>> #define DEFAULT_LINUX_BOOT_ENV \
>>>>       "loadaddr=0x82000000\0" \
>>>>       "kernel_addr_r=0x82000000\0" \
>>>>       "fdtaddr=0x88000000\0" \
>>>>       "fdt_addr_r=0x88000000\0" \
>>>>       "rdaddr=0x88080000\0" \
>>>>       "ramdisk_addr_r=0x88080000\0" \
>>>>       "bootm_size=0x10000000\0"
>>>>
>>>> Some of these are also defined in keystone common file. The env scripts
>>>> for keystone to be reworked to use the common variable above.
>>>>
>>>> Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as
>>>> well.
>>>
>>> we need to cleanup all the variables  once we get the distro config
>>
>> What do you mean by distro config? Could you explain?
>
> include/config_distro* - both will eventually get integrated into
> armv7_common.h to benefit all TI SoC platforms.

Ok I see. But that doesn't mean we can accept duplicate env variables.
Do you see my point?

>
>>
>>> included in anyways... I had decided not to rock the apple cart too much
>>> with this patch -> just the basic consolidation with as minimal changes
>>> as necessary. inclusion of DEFAULT_LINUX_BOOT_ENV into keystone2.h can
>>> be done as a follow on patch.
>>
>> Probably not this one. User would see both these variables and will
>> cause confusion and should be fixed.
>>
>
> they are no variables, they are defines. they will eventually be fixed.

The defines finally create env variables on NAND or any other medium :)
So my comment stays.

> I am leery to make a huge jump on a single series. lets do consolidation
> in small baby steps please.
>
> as I have already shown in my reply - the status quo is being maintained
> and we are one step closer to an common framework.

Ok. If this happens soon (within a month) I am fine with this. 
Otherwise, this could go under the radar and cause maintenance issue.

>
>>>
>>>>>
>>>>> diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
>>>>> index ac50a01b2980..f1e650141ae1 100644
>>>>> --- a/include/configs/k2e_evm.h
>>>>> +++ b/include/configs/k2e_evm.h
>>>>> @@ -15,8 +15,6 @@
>>>>>     #define CONFIG_K2E_EVM
>>>>>
>>>>>     /* U-Boot general configuration */
>>>>> -#define CONFIG_SYS_PROMPT               "K2E EVM # "
>>>>
>>>> Why remove this?
>>>
>>> arm_v7_common defines just "u-boot#" for all SoC and boards. So, we dont
>>> need this.
>>
>> Sorry, this may be needed from the automation perspective. Also for
>> backward compatibility for users. Would like to keep for K2.
>
> This has been beaten to death in the past as well (I think some 3/4
> years ago.. i think it should be in the archives, just too lazy to dig
> through multi-year old discussions)..
>
> I will let Tom comment more here. My understanding is that the
> convention followed by all other TI SoCs will imply not having custom
> sys_prompt..
>
>
> That said, custom sys_prompt is NOT a need from automation perspective -
> we have all our boards in automation farm for years now with and without
> custom boot prompt. board identification can be done in other ways.
 From a users perspective as well, it is good to know which board I am 
working with when I work with multiple boards. Not sure what is the 
argument not to have a board specific prompt at u-boot level. Definitely 
like to hear from Tom.

Murali

>
>


-- 
Murali Karicheri
Linux Kernel, Keystone

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common
  2015-07-17 17:45           ` Murali Karicheri
@ 2015-07-17 20:41             ` Tom Rini
  0 siblings, 0 replies; 18+ messages in thread
From: Tom Rini @ 2015-07-17 20:41 UTC (permalink / raw)
  To: u-boot

On Fri, Jul 17, 2015 at 01:45:42PM -0400, Murali Karicheri wrote:
> On 07/17/2015 01:25 PM, Nishanth Menon wrote:
> >On 07/17/2015 12:11 PM, Murali Karicheri wrote:
> >>On 07/17/2015 12:52 PM, Nishanth Menon wrote:
> >>>On 07/17/2015 11:04 AM, Murali Karicheri wrote:
> >>>>On 07/16/2015 03:08 PM, Nishanth Menon wrote:
> >>>>>Try to maintain as much commonality by conditionally including stuff
> >>>>>in armv7_common as necessary and removing the common defines from
> >>>>>keystone2 header.
> >>>>>
> >>>>Including the common ti_armv7_common.h for keystone also add duplication
> >>>>of the various addresses
> >>>>
> >>>>#define DEFAULT_LINUX_BOOT_ENV \
> >>>>      "loadaddr=0x82000000\0" \
> >>>>      "kernel_addr_r=0x82000000\0" \
> >>>>      "fdtaddr=0x88000000\0" \
> >>>>      "fdt_addr_r=0x88000000\0" \
> >>>>      "rdaddr=0x88080000\0" \
> >>>>      "ramdisk_addr_r=0x88080000\0" \
> >>>>      "bootm_size=0x10000000\0"
> >>>>
> >>>>Some of these are also defined in keystone common file. The env scripts
> >>>>for keystone to be reworked to use the common variable above.
> >>>>
> >>>>Rework the CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS to include common as
> >>>>well.
> >>>
> >>>we need to cleanup all the variables  once we get the distro config
> >>
> >>What do you mean by distro config? Could you explain?
> >
> >include/config_distro* - both will eventually get integrated into
> >armv7_common.h to benefit all TI SoC platforms.
> 
> Ok I see. But that doesn't mean we can accept duplicate env variables.
> Do you see my point?

Yes.  But mainline U-Boot doesn't need to support N versions of Y
distros.  That's the point behind the generic distro work.  And this
means that yes, a lot of the addr_X things keystone sets get dropped
later on.  For better or worse there isn't overlap in names between
these two choices so the old scripts will still use the old values and
the new scripts the new values.

> >>>included in anyways... I had decided not to rock the apple cart too much
> >>>with this patch -> just the basic consolidation with as minimal changes
> >>>as necessary. inclusion of DEFAULT_LINUX_BOOT_ENV into keystone2.h can
> >>>be done as a follow on patch.
> >>
> >>Probably not this one. User would see both these variables and will
> >>cause confusion and should be fixed.
> >>
> >
> >they are no variables, they are defines. they will eventually be fixed.
> 
> The defines finally create env variables on NAND or any other medium :)
> So my comment stays.

We can drop a bunch of addr_* stuff if you prefer :)

> >I am leery to make a huge jump on a single series. lets do consolidation
> >in small baby steps please.
> >
> >as I have already shown in my reply - the status quo is being maintained
> >and we are one step closer to an common framework.
> 
> Ok. If this happens soon (within a month) I am fine with this.
> Otherwise, this could go under the radar and cause maintenance
> issue.
> 
> >
> >>>
> >>>>>
> >>>>>diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h
> >>>>>index ac50a01b2980..f1e650141ae1 100644
> >>>>>--- a/include/configs/k2e_evm.h
> >>>>>+++ b/include/configs/k2e_evm.h
> >>>>>@@ -15,8 +15,6 @@
> >>>>>    #define CONFIG_K2E_EVM
> >>>>>
> >>>>>    /* U-Boot general configuration */
> >>>>>-#define CONFIG_SYS_PROMPT               "K2E EVM # "
> >>>>
> >>>>Why remove this?
> >>>
> >>>arm_v7_common defines just "u-boot#" for all SoC and boards. So, we dont
> >>>need this.
> >>
> >>Sorry, this may be needed from the automation perspective. Also for
> >>backward compatibility for users. Would like to keep for K2.
> >
> >This has been beaten to death in the past as well (I think some 3/4
> >years ago.. i think it should be in the archives, just too lazy to dig
> >through multi-year old discussions)..
> >
> >I will let Tom comment more here. My understanding is that the
> >convention followed by all other TI SoCs will imply not having custom
> >sys_prompt..
> >
> >
> >That said, custom sys_prompt is NOT a need from automation perspective -
> >we have all our boards in automation farm for years now with and without
> >custom boot prompt. board identification can be done in other ways.
> From a users perspective as well, it is good to know which board I
> am working with when I work with multiple boards. Not sure what is
> the argument not to have a board specific prompt at u-boot level.
> Definitely like to hear from Tom.

As Nishanth said, we beat this topic to death a long time back.  Generic
prompt is what we do.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150717/01a00228/attachment.sig>

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-07-17 20:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 19:08 [U-Boot] [PATCH V2 0/4] configs: make keystone2 config to start using arm_v7_common header Nishanth Menon
2015-07-16 19:08 ` [U-Boot] [PATCH V2 1/4] configs: split ti_armv7_common into a omap generic header Nishanth Menon
2015-07-17 15:38   ` Murali Karicheri
2015-07-17 16:27     ` Nishanth Menon
2015-07-17 17:35       ` Murali Karicheri
2015-07-16 19:08 ` [U-Boot] [PATCH V2 2/4] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR Nishanth Menon
2015-07-17 15:44   ` Murali Karicheri
2015-07-17 15:50     ` Vitaly Andrianov
2015-07-16 19:08 ` [U-Boot] [PATCH V2 3/4] configs: rename ks2_evm into ti_armv7_keystone2 Nishanth Menon
2015-07-17 15:42   ` Murali Karicheri
2015-07-17 15:49     ` Vitaly Andrianov
2015-07-16 19:08 ` [U-Boot] [PATCH V2 4/4] configs: ti_armv7_keystone2: start using armv7_common Nishanth Menon
2015-07-17 16:04   ` Murali Karicheri
2015-07-17 16:52     ` Nishanth Menon
2015-07-17 17:11       ` Murali Karicheri
2015-07-17 17:25         ` Nishanth Menon
2015-07-17 17:45           ` Murali Karicheri
2015-07-17 20:41             ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.