Skip to contentSkip to conversation

arm: add touchbook support

PATCH In review Jean-Christophe PLAGNIOL-VILLARD 4 participants 4 messages Nov 22, 2010 – Nov 26, 2010 3 messages not in the archive Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: add touchbook support

---
 arch/arm/boards/omap/Kconfig        |    9 +++++++++
 arch/arm/boards/omap/Makefile       |    1 +
 arch/arm/boards/omap/board-beagle.c |    7 ++++++-
 3 files changed, 16 insertions(+), 1 deletions(-)
arch/arm/boards/omap/Kconfig +9 -0
index d612064..615457f 100644
@@ -51,6 +51,15 @@ config MACH_BEAGLE
 	  help
 	  Say Y here if you are using Beagle Board
 
+config MACH_TOUCHBOOK
+	bool "AlwaysInnovating TouchBook"
+	select MACH_HAS_LOWLEVEL_INIT
+	select OMAP_CLOCK_ALL
+	select HAS_OMAP_NAND
+	  help
+	  Say Y here if you are using touchbook
+	  http://www.alwaysinnovating.com/touchbook/
+
 config MACH_OMAP3EVM
 	bool "Texas Instrument's OMAP3 EVM"
 	select MACH_HAS_LOWLEVEL_INIT
arch/arm/boards/omap/Makefile +1 -0
index 1e74e24..946d9bf 100644
@@ -23,6 +23,7 @@
 obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += platform.o
 obj-$(CONFIG_MACH_OMAP343xSDP) += board-sdp343x.o
 obj-$(CONFIG_MACH_BEAGLE) += board-beagle.o
+obj-$(CONFIG_MACH_TOUCHBOOK) += board-beagle.o
 obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o
 obj-y += devices-gpmc-nand.o
 
arch/arm/boards/omap/board-beagle.c +6 -1
index 6de2cce..8e9ab43 100644
@@ -336,7 +336,12 @@ static int beagle_devices_init(void)
 
 	armlinux_add_dram(&sdram_dev);
 	armlinux_set_bootparams((void *)0x80000100);
-	armlinux_set_architecture(MACH_TYPE_OMAP3_BEAGLE);
+
+	if (machine_is_touchbook())
+		armlinux_set_architecture(MACH_TYPE_TOUCHBOOK);
+	else
+		armlinux_set_architecture(MACH_TYPE_OMAP3_BEAGLE);
+
 failed:
 	return ret;
 }
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 45 lines · Jean-Christophe PLAGNIOL-VILLARD
---
 arch/arm/boards/omap/Kconfig        |    9 +++++++++
 arch/arm/boards/omap/Makefile       |    1 +
 arch/arm/boards/omap/board-beagle.c |    7 ++++++-
 3 files changed, 16 insertions(+), 1 deletions(-)
arch/arm/boards/omap/Kconfig +9 -0
index d612064..615457f 100644
@@ -51,6 +51,15 @@ config MACH_BEAGLE
 	  help
 	  Say Y here if you are using Beagle Board
 
+config MACH_TOUCHBOOK
+	bool "AlwaysInnovating TouchBook"
+	select MACH_HAS_LOWLEVEL_INIT
+	select OMAP_CLOCK_ALL
+	select HAS_OMAP_NAND
+	  help
+	  Say Y here if you are using touchbook
+	  http://www.alwaysinnovating.com/touchbook/
+
 config MACH_OMAP3EVM
 	bool "Texas Instrument's OMAP3 EVM"
 	select MACH_HAS_LOWLEVEL_INIT
arch/arm/boards/omap/Makefile +1 -0
index 1e74e24..946d9bf 100644
@@ -23,6 +23,7 @@
 obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += platform.o
 obj-$(CONFIG_MACH_OMAP343xSDP) += board-sdp343x.o
 obj-$(CONFIG_MACH_BEAGLE) += board-beagle.o
+obj-$(CONFIG_MACH_TOUCHBOOK) += board-beagle.o
 obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o
 obj-y += devices-gpmc-nand.o
 
(quoted diff) +0 -0

b/arch/arm/boards/omap/board-beagle.c index 6de2cce..8e9ab43 100644

arch/arm/boards/omap/board-beagle.c static int beagle_devices_init(void) · line 340

Quoted 6 lines
arch/arm/boards/omap/board-beagle.c +2 -1
@@ -336,7 +336,12 @@ static int beagle_devices_init(void)
 
 	armlinux_add_dram(&sdram_dev);
 	armlinux_set_bootparams((void *)0x80000100);
-	armlinux_set_architecture(MACH_TYPE_OMAP3_BEAGLE);
+
+	if (machine_is_touchbook())

Where does the machine_is_touchbook() comes from?

Quoted 7 lines
arch/arm/boards/omap/board-beagle.c +4 -0
+		armlinux_set_architecture(MACH_TYPE_TOUCHBOOK);
+	else
+		armlinux_set_architecture(MACH_TYPE_OMAP3_BEAGLE);
+
 failed:
 	return ret;
 }
Signature · 9 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Halli Jürgen,

Quoted 3 lines

arch/arm/boards/omap/board-beagle.c static int beagle_devices_init(void) · line 340

Quoted 1 line
arch/arm/boards/omap/board-beagle.c +1 -0
+	if (machine_is_touchbook())

Where does the machine_is_touchbook() comes from?

arch/arm/tools/mach-types + arch/arm/tools/gen-mach-types I guess.

Best regards
Uwe

Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw
In reply to a message not in the archive
Quoted 1 line · Gregoire Gentil

I don't know if there any barebox work about such strategy...

There is:
http://elinux.org/images/8/89/ELCE-2010-Barebox-Booting-Linux-Fast-and-Fancy.pdf

rsc

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox