• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * arch/arm/mach-ep93xx/include/mach/platform.h
3  */
4 
5 #ifndef __ASSEMBLY__
6 
7 #include <linux/reboot.h>
8 
9 struct device;
10 struct i2c_gpio_platform_data;
11 struct i2c_board_info;
12 struct spi_board_info;
13 struct platform_device;
14 struct ep93xxfb_mach_info;
15 struct ep93xx_keypad_platform_data;
16 struct ep93xx_spi_info;
17 
18 struct ep93xx_eth_data
19 {
20 	unsigned char	dev_addr[6];
21 	unsigned char	phy_id;
22 };
23 
24 void ep93xx_map_io(void);
25 void ep93xx_init_irq(void);
26 
27 #define EP93XX_CHIP_REV_D0	3
28 #define EP93XX_CHIP_REV_D1	4
29 #define EP93XX_CHIP_REV_E0	5
30 #define EP93XX_CHIP_REV_E1	6
31 #define EP93XX_CHIP_REV_E2	7
32 
33 unsigned int ep93xx_chip_revision(void);
34 
35 void ep93xx_register_flash(unsigned int width,
36 			   resource_size_t start, resource_size_t size);
37 
38 void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr);
39 void ep93xx_register_i2c(struct i2c_gpio_platform_data *data,
40 			 struct i2c_board_info *devices, int num);
41 void ep93xx_register_spi(struct ep93xx_spi_info *info,
42 			 struct spi_board_info *devices, int num);
43 void ep93xx_register_fb(struct ep93xxfb_mach_info *data);
44 void ep93xx_register_pwm(int pwm0, int pwm1);
45 int ep93xx_pwm_acquire_gpio(struct platform_device *pdev);
46 void ep93xx_pwm_release_gpio(struct platform_device *pdev);
47 void ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data);
48 int ep93xx_keypad_acquire_gpio(struct platform_device *pdev);
49 void ep93xx_keypad_release_gpio(struct platform_device *pdev);
50 void ep93xx_register_i2s(void);
51 int ep93xx_i2s_acquire(void);
52 void ep93xx_i2s_release(void);
53 void ep93xx_register_ac97(void);
54 void ep93xx_register_ide(void);
55 int ep93xx_ide_acquire_gpio(struct platform_device *pdev);
56 void ep93xx_ide_release_gpio(struct platform_device *pdev);
57 
58 struct device *ep93xx_init_devices(void);
59 extern void ep93xx_timer_init(void);
60 
61 void ep93xx_restart(enum reboot_mode, const char *);
62 void ep93xx_init_late(void);
63 
64 #ifdef CONFIG_CRUNCH
65 int crunch_init(void);
66 #else
crunch_init(void)67 static inline int crunch_init(void) { return 0; }
68 #endif
69 
70 #endif
71