/arch/arm/mach-ep93xx/include/mach/platform.h

https://github.com/AICP/kernel_google_msm · C Header · 57 lines · 43 code · 11 blank · 3 comment · 0 complexity · d95cf8c8b90d2ec8a561a1a8e6db8d98 MD5 · raw file

  1. /*
  2. * arch/arm/mach-ep93xx/include/mach/platform.h
  3. */
  4. #ifndef __ASSEMBLY__
  5. struct i2c_gpio_platform_data;
  6. struct i2c_board_info;
  7. struct spi_board_info;
  8. struct platform_device;
  9. struct ep93xxfb_mach_info;
  10. struct ep93xx_keypad_platform_data;
  11. struct ep93xx_spi_info;
  12. struct ep93xx_eth_data
  13. {
  14. unsigned char dev_addr[6];
  15. unsigned char phy_id;
  16. };
  17. void ep93xx_map_io(void);
  18. void ep93xx_init_irq(void);
  19. #define EP93XX_CHIP_REV_D0 3
  20. #define EP93XX_CHIP_REV_D1 4
  21. #define EP93XX_CHIP_REV_E0 5
  22. #define EP93XX_CHIP_REV_E1 6
  23. #define EP93XX_CHIP_REV_E2 7
  24. unsigned int ep93xx_chip_revision(void);
  25. void ep93xx_register_flash(unsigned int width,
  26. resource_size_t start, resource_size_t size);
  27. void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr);
  28. void ep93xx_register_i2c(struct i2c_gpio_platform_data *data,
  29. struct i2c_board_info *devices, int num);
  30. void ep93xx_register_spi(struct ep93xx_spi_info *info,
  31. struct spi_board_info *devices, int num);
  32. void ep93xx_register_fb(struct ep93xxfb_mach_info *data);
  33. void ep93xx_register_pwm(int pwm0, int pwm1);
  34. int ep93xx_pwm_acquire_gpio(struct platform_device *pdev);
  35. void ep93xx_pwm_release_gpio(struct platform_device *pdev);
  36. void ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data);
  37. int ep93xx_keypad_acquire_gpio(struct platform_device *pdev);
  38. void ep93xx_keypad_release_gpio(struct platform_device *pdev);
  39. void ep93xx_register_i2s(void);
  40. int ep93xx_i2s_acquire(void);
  41. void ep93xx_i2s_release(void);
  42. void ep93xx_register_ac97(void);
  43. void ep93xx_init_devices(void);
  44. extern struct sys_timer ep93xx_timer;
  45. void ep93xx_restart(char, const char *);
  46. #endif