Skip to contentSkip to conversation

TI814X: Create board support and enable build for TI8148 EVM

PATCH Superseded Hemant Pedanekar 2 participants 3 messages Sep 21, 2011 – Sep 22, 2011

Subsystems (3)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 TI814X: Create board support and enable build for TI8148 EVM

This patch adds minimal support and build configuration for TI8148 EVM. Also adds support for low level debugging on UART1 console on the EVM.

---
 arch/arm/mach-omap2/Kconfig                  |    5 +++
 arch/arm/mach-omap2/Makefile                 |    1 +
 arch/arm/mach-omap2/board-ti8148evm.c        |   51 ++++++++++++++++++++++++++
 arch/arm/plat-omap/include/plat/uncompress.h |    3 ++
 4 files changed, 60 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-ti8148evm.c
arch/arm/mach-omap2/Kconfig +5 -0
index a3b9227..cc4f213 100644
@@ -316,6 +316,11 @@ config MACH_TI8168EVM
 	depends on SOC_OMAPTI81XX
 	default y
 
+config MACH_TI8148EVM
+	bool "TI8148 Evaluation Module"
+	depends on SOC_OMAPTI81XX
+	default y
+
 config MACH_OMAP_4430SDP
 	bool "OMAP 4430 SDP board"
 	default y
arch/arm/mach-omap2/Makefile +1 -0
index 46a3497..597a2b6 100644
@@ -242,6 +242,7 @@ obj-$(CONFIG_MACH_CRANEBOARD)		+= board-am3517crane.o
 
 obj-$(CONFIG_MACH_SBC3530)		+= board-omap3stalker.o
 obj-$(CONFIG_MACH_TI8168EVM)		+= board-ti8168evm.o
+obj-$(CONFIG_MACH_TI8148EVM)		+= board-ti8148evm.o
 
 # Platform specific device init code
 
arch/arm/mach-omap2/board-ti8148evm.c new file +51 -0

51 lines not on this page · raw message

arch/arm/plat-omap/include/plat/uncompress.h +3 -0
index 40336ad..8d052e7 100644
@@ -175,6 +175,9 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
 		/* TI8168 base boards using UART3 */
 		DEBUG_LL_TI81XX(3, ti8168evm);
 
+		/* TI8148 base boards using UART1 */
+		DEBUG_LL_TI81XX(1, ti8148evm);
+
 	} while (0);
 }
 
Signature · 1 line
1.7.3.5
maintainer
#1 lore raw

PATCH v2 3/3 TI814X: Create board support and enable build for TI8148 EVM

Quoted 6 lines · Hemant Pedanekar
arch/arm/mach-omap2/board-ti8148evm.c new file +6 -0
+
+static struct omap_board_config_kernel ti8148_evm_config[] __initdata = {
+};
+
+static void __init ti8148_evm_init(void)
+{

arch/arm/mach-omap2/board-ti8148evm.c line 41

Quoted 10 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +10 -0
+	omap_serial_init();
+	omap_board_config = ti8148_evm_config;
+	omap_board_config_size = ARRAY_SIZE(ti8148_evm_config);
+}
+
+static void __init ti8148_evm_map_io(void)
+{
+	omap2_set_globals_ti81xx();
+	omapti81xx_map_common_io();
+}

Hmm I guess we still have board specific map_io in board-ti8668evm.c also. Those would be better replaced with ti81xx_map_io in mach-omap2/common.c. Care to take a look at that?

arch/arm/mach-omap2/board-ti8148evm.c line 51

Quoted 9 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +9 -0
+MACHINE_START(TI8148EVM, "ti8148evm")
+	/* Maintainer: Texas Instruments */
+	.atag_offset	= 0x100,
+	.map_io		= ti8148_evm_map_io,
+	.init_early	= ti81xx_init_early,
+	.init_irq	= ti81xx_init_irq,
+	.timer		= &omap3_timer,
+	.init_machine	= ti8148_evm_init,
+MACHINE_END

Please add this all to board-ti8168evm.c instead of adding a new board-*.c file. With the upcoming device tree conversion most of these will disappear anyways.

Regards,

Tony

#2 lore raw

PATCH v2 3/3 TI814X: Create board support and enable build for TI8148 EVM

Tony Lindgren wrote on Thursday, September 22, 2011 2:18 AM:

Quoted 11 lines · Hemant Pedanekar
Quoted 10 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +10 -0
+
+static struct omap_board_config_kernel ti8148_evm_config[] __initdata = {
+}; +
+static void __init ti8148_evm_init(void)
+{
+	omap_serial_init();
+	omap_board_config = ti8148_evm_config;
+	omap_board_config_size = ARRAY_SIZE(ti8148_evm_config); +}
+
+static void __init ti8148_evm_map_io(void)
Quoted 9 lines

arch/arm/mach-omap2/board-ti8148evm.c line 41

Quoted 4 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +4 -0
+{
+	omap2_set_globals_ti81xx();
+	omapti81xx_map_common_io();
+}

Hmm I guess we still have board specific map_io in board-ti8668evm.c also. Those would be better replaced with ti81xx_map_io in mach-omap2/common.c. Care to take a look at that?

Yes, you are right. I will do that.

Quoted 5 lines
Quoted 5 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +5 -0
+MACHINE_START(TI8148EVM, "ti8148evm")
+	/* Maintainer: Texas Instruments */
+	.atag_offset	= 0x100,
+	.map_io		= ti8148_evm_map_io,
+	.init_early	= ti81xx_init_early,
Quoted 9 lines

arch/arm/mach-omap2/board-ti8148evm.c line 51

Quoted 4 lines
arch/arm/mach-omap2/board-ti8148evm.c new file +4 -0
+	.init_irq	= ti81xx_init_irq,
+	.timer		= &omap3_timer,
+	.init_machine	= ti8148_evm_init,
+MACHINE_END

Please add this all to board-ti8168evm.c instead of adding a new board-*.c file. With the upcoming device tree conversion most of these will disappear anyways.

Ok, I will do that.

Thanks.
Hemant

Quoted 3 lines

Regards,

Tony

Hemant