mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] arm: add touchbook support
@ 2010-11-22 12:52 Jean-Christophe PLAGNIOL-VILLARD
  2010-11-22 13:23 ` Juergen Beisert
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-11-22 12:52 UTC (permalink / raw)
  To: barebox; +Cc: Gregoire Gentil

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Gregoire Gentil <gregoire@alwaysinnovating.com>
---
 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(-)

diff --git a/arch/arm/boards/omap/Kconfig b/arch/arm/boards/omap/Kconfig
index d612064..615457f 100644
--- a/arch/arm/boards/omap/Kconfig
+++ b/arch/arm/boards/omap/Kconfig
@@ -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
diff --git a/arch/arm/boards/omap/Makefile b/arch/arm/boards/omap/Makefile
index 1e74e24..946d9bf 100644
--- a/arch/arm/boards/omap/Makefile
+++ b/arch/arm/boards/omap/Makefile
@@ -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
 
diff --git a/arch/arm/boards/omap/board-beagle.c b/arch/arm/boards/omap/board-beagle.c
index 6de2cce..8e9ab43 100644
--- a/arch/arm/boards/omap/board-beagle.c
+++ b/arch/arm/boards/omap/board-beagle.c
@@ -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;
 }
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/1] arm: add touchbook support
  2010-11-22 12:52 [PATCH 1/1] arm: add touchbook support Jean-Christophe PLAGNIOL-VILLARD
@ 2010-11-22 13:23 ` Juergen Beisert
  2010-11-22 13:26   ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Juergen Beisert @ 2010-11-22 13:23 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: Gregoire Gentil, barebox

Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Cc: Gregoire Gentil <gregoire@alwaysinnovating.com>
> ---
>  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(-)
>
> diff --git a/arch/arm/boards/omap/Kconfig b/arch/arm/boards/omap/Kconfig
> index d612064..615457f 100644
> --- a/arch/arm/boards/omap/Kconfig
> +++ b/arch/arm/boards/omap/Kconfig
> @@ -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
> diff --git a/arch/arm/boards/omap/Makefile b/arch/arm/boards/omap/Makefile
> index 1e74e24..946d9bf 100644
> --- a/arch/arm/boards/omap/Makefile
> +++ b/arch/arm/boards/omap/Makefile
> @@ -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
>
> diff --git a/arch/arm/boards/omap/board-beagle.c
> b/arch/arm/boards/omap/board-beagle.c index 6de2cce..8e9ab43 100644
> --- a/arch/arm/boards/omap/board-beagle.c
> +++ b/arch/arm/boards/omap/board-beagle.c
> @@ -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?

> +		armlinux_set_architecture(MACH_TYPE_TOUCHBOOK);
> +	else
> +		armlinux_set_architecture(MACH_TYPE_OMAP3_BEAGLE);
> +
>  failed:
>  	return ret;
>  }



-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/1] arm: add touchbook support
  2010-11-22 13:23 ` Juergen Beisert
@ 2010-11-22 13:26   ` Uwe Kleine-König
       [not found]     ` <1290710678.5546.6.camel@gregoire-laptop>
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2010-11-22 13:26 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: Gregoire Gentil, barebox

Halli Jürgen,

> > +	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

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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/1] arm: add touchbook support
       [not found]         ` <1290791055.25141.13.camel@gregoire-laptop>
@ 2010-11-26 21:13           ` Robert Schwebel
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Schwebel @ 2010-11-26 21:13 UTC (permalink / raw)
  To: Gregoire Gentil; +Cc: barebox

On Fri, Nov 26, 2010 at 09:04:15AM -0800, Gregoire Gentil wrote:
> 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
-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2010-11-26 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 12:52 [PATCH 1/1] arm: add touchbook support Jean-Christophe PLAGNIOL-VILLARD
2010-11-22 13:23 ` Juergen Beisert
2010-11-22 13:26   ` Uwe Kleine-König
     [not found]     ` <1290710678.5546.6.camel@gregoire-laptop>
     [not found]       ` <20101126091629.GE26540@game.jcrosoft.org>
     [not found]         ` <1290791055.25141.13.camel@gregoire-laptop>
2010-11-26 21:13           ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox