mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
1b021a3b23
switch early init to init_early and introduce soc map_io with this Patch we will not do any more early device setup during the map io tks to Russell to point the new call back Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Andrew Victor <linux@maxim.org.za>
76 lines
3 KiB
C
76 lines
3 KiB
C
/*
|
|
* linux/arch/arm/mach-at91/generic.h
|
|
*
|
|
* Copyright (C) 2005 David Brownell
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
/* Map io */
|
|
extern void __init at91rm9200_map_io(void);
|
|
extern void __init at91sam9260_map_io(void);
|
|
extern void __init at91sam9261_map_io(void);
|
|
extern void __init at91sam9263_map_io(void);
|
|
extern void __init at91sam9rl_map_io(void);
|
|
extern void __init at91sam9g45_map_io(void);
|
|
extern void __init at91x40_map_io(void);
|
|
extern void __init at91cap9_map_io(void);
|
|
extern void __init at572d940hf_map_io(void);
|
|
|
|
/* Processors */
|
|
extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
|
|
extern void __init at91sam9260_initialize(unsigned long main_clock);
|
|
extern void __init at91sam9261_initialize(unsigned long main_clock);
|
|
extern void __init at91sam9263_initialize(unsigned long main_clock);
|
|
extern void __init at91sam9rl_initialize(unsigned long main_clock);
|
|
extern void __init at91sam9g45_initialize(unsigned long main_clock);
|
|
extern void __init at91x40_initialize(unsigned long main_clock);
|
|
extern void __init at91cap9_initialize(unsigned long main_clock);
|
|
extern void __init at572d940hf_initialize(unsigned long main_clock);
|
|
|
|
/* Interrupts */
|
|
extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91sam9260_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91sam9261_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91sam9263_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91sam9rl_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91sam9g45_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91x40_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91cap9_init_interrupts(unsigned int priority[]);
|
|
extern void __init at572d940hf_init_interrupts(unsigned int priority[]);
|
|
extern void __init at91_aic_init(unsigned int priority[]);
|
|
|
|
/* Timer */
|
|
struct sys_timer;
|
|
extern struct sys_timer at91rm9200_timer;
|
|
extern struct sys_timer at91sam926x_timer;
|
|
extern struct sys_timer at91x40_timer;
|
|
|
|
/* Clocks */
|
|
extern int __init at91_clock_init(unsigned long main_clock);
|
|
struct device;
|
|
extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
|
|
|
|
/* Power Management */
|
|
extern void at91_irq_suspend(void);
|
|
extern void at91_irq_resume(void);
|
|
|
|
/* reset */
|
|
extern void at91sam9_alt_reset(void);
|
|
|
|
/* GPIO */
|
|
#define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
|
|
#define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */
|
|
|
|
struct at91_gpio_bank {
|
|
unsigned short id; /* peripheral ID */
|
|
unsigned long offset; /* offset from system peripheral base */
|
|
struct clk *clock; /* associated clock */
|
|
};
|
|
extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
|
|
extern void __init at91_gpio_irq_setup(void);
|
|
|
|
extern void (*at91_arch_reset)(void);
|
|
extern int at91_extern_irq;
|