]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/mach-at91rm9200/generic.h
[ARM] 3948/1: AT91: Initial support for AT91SAM9261 and AT91SAM9260
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-at91rm9200 / generic.h
CommitLineData
73a59c1c
SP
1/*
2 * linux/arch/arm/mach-at91rm9200/generic.h
3 *
4 * Copyright (C) 2005 David Brownell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
2eeaaa21 11 /* Processors */
f2173834 12extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
62c1660d
AV
13extern void __init at91sam9260_initialize(unsigned long main_clock);
14extern void __init at91sam9261_initialize(unsigned long main_clock);
2eeaaa21 15
ba854e18 16 /* Interrupts */
f2173834 17extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
62c1660d
AV
18extern void __init at91sam9260_init_interrupts(unsigned int priority[]);
19extern void __init at91sam9261_init_interrupts(unsigned int priority[]);
ba854e18 20extern void __init at91_aic_init(unsigned int priority[]);
73a59c1c 21
ba854e18 22 /* Timer */
73a59c1c
SP
23struct sys_timer;
24extern struct sys_timer at91rm9200_timer;
62c1660d 25extern struct sys_timer at91sam926x_timer;
73a59c1c 26
ba854e18 27 /* Clocks */
73a59c1c 28extern int __init at91_clock_init(unsigned long main_clock);
907d6deb
AV
29struct device;
30extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
31
32 /* Power Management */
33extern void at91_irq_suspend(void);
34extern void at91_irq_resume(void);
35
f2173834
AV
36 /* GPIO */
37#define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
38#define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */
39
40struct at91_gpio_bank {
41 unsigned short id; /* peripheral ID */
42 unsigned long offset; /* offset from system peripheral base */
43 struct clk *clock; /* associated clock */
44};
45extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
46extern void __init at91_gpio_irq_setup(void);
1f4fd0a0
AV
47
48extern void (*at91_arch_reset)(void);
49extern int at91_extern_irq;