generic.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /* Processors */
  11. extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
  12. /* Interrupts */
  13. extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
  14. extern void __init at91_aic_init(unsigned int priority[]);
  15. /* Timer */
  16. struct sys_timer;
  17. extern struct sys_timer at91rm9200_timer;
  18. /* Clocks */
  19. extern int __init at91_clock_init(unsigned long main_clock);
  20. struct device;
  21. extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
  22. /* Power Management */
  23. extern void at91_irq_suspend(void);
  24. extern void at91_irq_resume(void);
  25. /* GPIO */
  26. #define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
  27. #define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */
  28. struct at91_gpio_bank {
  29. unsigned short id; /* peripheral ID */
  30. unsigned long offset; /* offset from system peripheral base */
  31. struct clk *clock; /* associated clock */
  32. };
  33. extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
  34. extern void __init at91_gpio_irq_setup(void);