common.h 897 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Common Gemini architecture functions
  3. *
  4. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
  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 as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __GEMINI_COMMON_H__
  12. #define __GEMINI_COMMON_H__
  13. struct mtd_partition;
  14. extern void gemini_map_io(void);
  15. extern void gemini_init_irq(void);
  16. extern void gemini_timer_init(void);
  17. extern void gemini_gpio_init(void);
  18. extern void platform_register_rtc(void);
  19. /* Common platform devices registration functions */
  20. extern int platform_register_uart(void);
  21. extern int platform_register_pflash(unsigned int size,
  22. struct mtd_partition *parts,
  23. unsigned int nr_parts);
  24. #endif /* __GEMINI_COMMON_H__ */