Skip to contentSkip to conversation

sniper: Various minor cleanups, missing Kconfig configs and reorganisation

PATCH In review Paul Kocialkowski 2 participants 3 messages Feb 26, 2016 – Mar 1, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sniper: Various minor cleanups, missing Kconfig configs and reorganisation

This introduces some minor cleanups, regarding aspects such as board name, code and headers organization as well as deprecated and missing config options.

---
 arch/arm/cpu/armv7/omap3/Kconfig |   2 +-
 board/lge/sniper/sniper.c        |  24 +-
 board/lge/sniper/sniper.h        | 638 +++++++++++++++++++--------------------
 configs/sniper_defconfig         |   5 +-
 include/configs/sniper.h         |  11 +-
 5 files changed, 339 insertions(+), 341 deletions(-)
arch/arm/cpu/armv7/omap3/Kconfig +1 -1
index 652d319..c6168e9 100644
@@ -110,7 +110,7 @@ config TARGET_OMAP3_CAIRO
 	select DM_GPIO
 
 config TARGET_SNIPER
-	bool "Sniper"
+	bool "LG Optimus Black"
 	select SUPPORT_SPL
 	select DM
 	select DM_SERIAL
board/lge/sniper/sniper.c +12 -12
index d0e7d66..f093f97 100644
@@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 const omap3_sysinfo sysinfo = {
 	.mtype = DDR_STACKED,
-	.board_string = "Sniper",
+	.board_string = "sniper",
 	.nand_string = "MMC"
 };
 
@@ -58,6 +58,11 @@ static struct musb_hdrc_platform_data musb_platform_data = {
 	.board_data = &musb_board_data,
 };
 
+void set_muxconf_regs(void)
+{
+	MUX_SNIPER();
+}
+
 #ifdef CONFIG_SPL_BUILD
 void get_board_mem_timings(struct board_sdrc_timings *timings)
 {
@@ -69,12 +74,6 @@ void get_board_mem_timings(struct board_sdrc_timings *timings)
 }
 #endif
 
-u32 get_board_rev(void)
-{
-	/* Sold devices are expected to be at least revision F. */
-	return 6;
-}
-
 int board_init(void)
 {
 	/* GPMC init */
@@ -147,6 +146,12 @@ int misc_init_r(void)
 	return 0;
 }
 
+u32 get_board_rev(void)
+{
+	/* Sold devices are expected to be at least revision F. */
+	return 6;
+}
+
 void get_board_serial(struct tag_serialnr *serialnr)
 {
 	omap_die_id_get_board_serial(serialnr);
@@ -162,11 +167,6 @@ int fb_set_reboot_flag(void)
 	return omap_reboot_mode_store('b');
 }
 
-void set_muxconf_regs(void)
-{
-	MUX_SNIPER();
-}
-
 #ifndef CONFIG_SPL_BUILD
 int board_mmc_init(bd_t *bis)
 {
board/lge/sniper/sniper.h +319 -319

672 lines not on this page · raw message

configs/sniper_defconfig +4 -1
index 0474deb..0335795 100644
@@ -2,10 +2,13 @@ CONFIG_ARM=y
 CONFIG_OMAP34XX=y
 CONFIG_TARGET_SNIPER=y
 CONFIG_SPL=y
-CONFIG_SYS_PROMPT="Sniper # "
+CONFIG_SYS_PROMPT="sniper # "
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_FPGA is not set
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+# CONFIG_CMD_NFS is not set
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_GADGET=y
include/configs/sniper.h +3 -8
index 4152ecd..171a8c4 100644
@@ -61,11 +61,8 @@
  */
 
 #define CONFIG_SYS_TEXT_BASE		0x80100000
-#define CONFIG_SYS_SDRAM_BASE		OMAP34XX_SDRC_CS0
-#define CONFIG_SYS_INIT_RAM_ADDR	0x4020F800
-#define CONFIG_SYS_INIT_RAM_SIZE	0x800
-#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
-					 CONFIG_SYS_INIT_RAM_SIZE - \
+#define CONFIG_SYS_SDRAM_BASE		0x80000000
+#define CONFIG_SYS_INIT_SP_ADDR		(NON_SECURE_SRAM_END - \
 					 GENERATED_GBL_DATA_SIZE)
 
 #define CONFIG_SYS_MALLOC_LEN		(1024 * 1024 + CONFIG_ENV_SIZE)
@@ -103,8 +100,8 @@
  * MMC
  */
 
-#define CONFIG_GENERIC_MMC
 #define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
 #define CONFIG_OMAP_HSMMC
 
 #define CONFIG_CMD_MMC
@@ -183,7 +180,6 @@
  * Serial
  */
 
-
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
@@ -192,7 +188,6 @@
 #define CONFIG_SYS_NS16550_CLK		V_NS16550_CLK
 #define CONFIG_SYS_NS16550_COM3		OMAP34XX_UART3
 #define CONFIG_CONS_INDEX		3
-#define CONFIG_SERIAL3			3
 
 #define CONFIG_BAUDRATE			115200
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 4800, 9600, 19200, 38400, 57600, \
Signature · 1 line
2.6.4
#1 lore raw

PATCH 1/1 sniper: Various minor cleanups, missing Kconfig configs and reorganisation

Quoted 4 lines · Paul Kocialkowski

This introduces some minor cleanups, regarding aspects such as board name, code and headers organization as well as deprecated and missing config options.

Signature · 8 lines
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/20160226/00731f0d/attachment.sig>
#2 lore raw
In reply to Paul Kocialkowski
Quoted 5 lines · Paul Kocialkowski

This introduces some minor cleanups, regarding aspects such as board name, code and headers organization as well as deprecated and missing config options.

Applied to u-boot/master, thanks!

Signature · 8 lines
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/20160229/f3c431bc/attachment.sig>