[PATCH 2/2] pandaboard: Add gpmc_generic_init to board init.

Belisko Marek marek.belisko at gmail.com
Sat Mar 3 07:11:15 EST 2012


On Fri, Mar 2, 2012 at 9:04 AM, Jan Weitzel <J.Weitzel at phytec.de> wrote:
> Am Dienstag, den 31.01.2012, 21:51 +0100 schrieb Marek Belisko:
>> We need to setup generic gpmc otherwise kernel panic during boot.
>>
>> Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
>> ---
>>  arch/arm/boards/panda/board.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c
>> index be3ad77..1c71545 100644
>> --- a/arch/arm/boards/panda/board.c
>> +++ b/arch/arm/boards/panda/board.c
>> @@ -20,6 +20,7 @@
>>  #include <mach/gpio.h>
>>  #include <environment.h>
>>  #include <mach/xload.h>
>> +#include <mach/gpmc.h>
>>
>>  static int board_revision;
>>
>> @@ -137,6 +138,8 @@ static int panda_devices_init(void)
>>                          IORESOURCE_MEM, NULL);
>>       panda_ehci_init();
>>
>> +     gpmc_generic_init(0x00);
>> +
>
> 3.3.0-rc5 is still not booting without this patch. Using panda_defconfig
> implicitly select CONFIG_OMAP_GPMC.
There was discussion to fix kernel instead fixing barebox:
http://lists.infradead.org/pipermail/barebox/2012-February/005946.html
I don't have time to take a look and post proper fix so still using
that path in barebox.
Sorry.
>
>>       armlinux_set_bootparams((void *)0x80000100);
>>       armlinux_set_architecture(MACH_TYPE_OMAP4_PANDA);
>>
>
>

regards,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com



More information about the barebox mailing list