platform.h 914 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * arch/arm/mach-ep93xx/include/mach/platform.h
  3. */
  4. #ifndef __ASSEMBLY__
  5. struct i2c_board_info;
  6. struct ep93xx_eth_data
  7. {
  8. unsigned char dev_addr[6];
  9. unsigned char phy_id;
  10. };
  11. void ep93xx_map_io(void);
  12. void ep93xx_init_irq(void);
  13. void ep93xx_init_time(unsigned long);
  14. /* EP93xx System Controller software locked register write */
  15. void ep93xx_syscon_swlocked_write(unsigned int val, unsigned int reg);
  16. void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
  17. static inline void ep93xx_devcfg_set_bits(unsigned int bits)
  18. {
  19. ep93xx_devcfg_set_clear(bits, 0x00);
  20. }
  21. static inline void ep93xx_devcfg_clear_bits(unsigned int bits)
  22. {
  23. ep93xx_devcfg_set_clear(0x00, bits);
  24. }
  25. void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr);
  26. void ep93xx_register_i2c(struct i2c_board_info *devices, int num);
  27. void ep93xx_init_devices(void);
  28. extern struct sys_timer ep93xx_timer;
  29. #endif