linux-ti33x-psp 3.1rc8: Add pin mux and init for beaglebone specific devices
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.0+3.1rc / 0003-am335xevm-Use-new-beaglebone-machine-id.patch
1 From 66bec8f45fa501f5cb06f760b62882f43c7cfebd Mon Sep 17 00:00:00 2001
2 From: Steve Kipisz <s-kipisz2@ti.com>
3 Date: Thu, 13 Oct 2011 17:08:37 -0500
4 Subject: [PATCH 3/3] am335xevm: Use new beaglebone machine id.
6 Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
7 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
8 ---
9  arch/arm/mach-omap2/board-am335xevm.c |   23 +++++++++++++++++++++++
10  1 files changed, 23 insertions(+), 0 deletions(-)
12 diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
13 index 572cb87..e363c80 100644
14 --- a/arch/arm/mach-omap2/board-am335xevm.c
15 +++ b/arch/arm/mach-omap2/board-am335xevm.c
16 @@ -1242,6 +1242,19 @@ static void am335x_evm_setup(struct memory_accessor *mem_acc, void *context)
17         int ret;
18         char tmp[10];
19  
20 +       /* Eventually when we have device tree support, u-boot will
21 +        * read the EEPROMs and pass flattened device trees to the
22 +        * kernel. For beaglebone, u-boot will read the EEPROM and
23 +        * pass the machine type to the kernel.
24 +        */
25 +       if (machine_is_beaglebone()) {
26 +               pr_info("Board name: AM335BONE\n");
27 +               daughter_brd_detected = false;
28 +               setup_beaglebone();
29 +               am33xx_cpsw_init();
30 +               return;
31 +       }
32 +
33         /* get board specific data */
34         ret = mem_acc->read(mem_acc, (char *)&config, 0, sizeof(config));
35         if (ret != sizeof(config)) {
36 @@ -1523,3 +1536,13 @@ MACHINE_START(AM335XIAEVM, "am335xiaevm")
37         .timer          = &omap3_am33xx_timer,
38         .init_machine   = am335x_evm_init,
39  MACHINE_END
40 +
41 +MACHINE_START(BEAGLEBONE, "beaglebone")
42 +       /* Maintainer: Texas Instruments */
43 +       .atag_offset    = 0x100,
44 +       .map_io         = am335x_evm_map_io,
45 +       .init_irq       = ti816x_init_irq,
46 +       .init_early     = am335x_init_early,
47 +       .timer          = &omap3_am33xx_timer,
48 +       .init_machine   = am335x_evm_init,
49 +MACHINE_END
50 -- 
51 1.6.6.1