at91rm9200: introduce at91rm9200_set_type to specficy cpu package
as we can not detect it by defaut the type will be bga introduce cpu_is_at91rm9200_bga and cpu_is_at91rm9200_pqfp Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
This commit is contained in:

förälder
3d51f259e8
incheckning
e57556e3b6
@@ -18,6 +18,7 @@
|
||||
#include <mach/at91rm9200.h>
|
||||
#include <mach/at91_pmc.h>
|
||||
#include <mach/at91_st.h>
|
||||
#include <mach/cpu.h>
|
||||
|
||||
#include "generic.h"
|
||||
#include "clock.h"
|
||||
@@ -303,6 +304,13 @@ static void at91rm9200_reset(void)
|
||||
at91_sys_write(AT91_ST_CR, AT91_ST_WDRST);
|
||||
}
|
||||
|
||||
int rm9200_type;
|
||||
EXPORT_SYMBOL(rm9200_type);
|
||||
|
||||
void __init at91rm9200_set_type(int type)
|
||||
{
|
||||
rm9200_type = type;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------
|
||||
* AT91RM9200 processor initialization
|
||||
@@ -313,7 +321,7 @@ void __init at91rm9200_map_io(void)
|
||||
iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));
|
||||
}
|
||||
|
||||
void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks)
|
||||
void __init at91rm9200_initialize(unsigned long main_clock)
|
||||
{
|
||||
at91_arch_reset = at91rm9200_reset;
|
||||
at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1)
|
||||
@@ -328,7 +336,8 @@ void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks
|
||||
at91rm9200_register_clocks();
|
||||
|
||||
/* Initialize GPIO subsystem */
|
||||
at91_gpio_init(at91rm9200_gpio, banks);
|
||||
at91_gpio_init(at91rm9200_gpio,
|
||||
cpu_is_at91rm9200_bga() ? AT91RM9200_BGA : AT91RM9200_PQFP);
|
||||
}
|
||||
|
||||
|
||||
|
Referens i nytt ärende
Block a user