common.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * arch/arm/plat-orion/include/plat/common.h
  3. *
  4. * Marvell Orion SoC common setup code used by different mach-/common.c
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #ifndef __PLAT_COMMON_H
  11. #include <linux/mv643xx_eth.h>
  12. struct dsa_platform_data;
  13. void __init orion_uart0_init(unsigned int membase,
  14. resource_size_t mapbase,
  15. unsigned int irq,
  16. unsigned int uartclk);
  17. void __init orion_uart1_init(unsigned int membase,
  18. resource_size_t mapbase,
  19. unsigned int irq,
  20. unsigned int uartclk);
  21. void __init orion_uart2_init(unsigned int membase,
  22. resource_size_t mapbase,
  23. unsigned int irq,
  24. unsigned int uartclk);
  25. void __init orion_uart3_init(unsigned int membase,
  26. resource_size_t mapbase,
  27. unsigned int irq,
  28. unsigned int uartclk);
  29. void __init orion_rtc_init(unsigned long mapbase,
  30. unsigned long irq);
  31. void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data,
  32. struct mbus_dram_target_info *mbus_dram_info,
  33. unsigned long mapbase,
  34. unsigned long irq,
  35. unsigned long irq_err,
  36. int tclk);
  37. void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data,
  38. struct mbus_dram_target_info *mbus_dram_info,
  39. unsigned long mapbase,
  40. unsigned long irq,
  41. unsigned long irq_err,
  42. int tclk);
  43. void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data,
  44. struct mbus_dram_target_info *mbus_dram_info,
  45. unsigned long mapbase,
  46. unsigned long irq,
  47. unsigned long irq_err,
  48. int tclk);
  49. void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data,
  50. struct mbus_dram_target_info *mbus_dram_info,
  51. unsigned long mapbase,
  52. unsigned long irq,
  53. unsigned long irq_err,
  54. int tclk);
  55. void __init orion_ge00_switch_init(struct dsa_platform_data *d,
  56. int irq);
  57. void __init orion_i2c_init(unsigned long mapbase,
  58. unsigned long irq,
  59. unsigned long freq_m);
  60. void __init orion_i2c_1_init(unsigned long mapbase,
  61. unsigned long irq,
  62. unsigned long freq_m);
  63. #endif