Commit | Line | Data |
---|---|---|
e7736d47 | 1 | /* |
a09e64fb | 2 | * arch/arm/mach-ep93xx/include/mach/platform.h |
e7736d47 LB |
3 | */ |
4 | ||
5 | #ifndef __ASSEMBLY__ | |
6 | ||
6531a991 | 7 | struct i2c_gpio_platform_data; |
ef449e6d | 8 | struct i2c_board_info; |
ef12379f | 9 | struct platform_device; |
c6012189 | 10 | struct ep93xxfb_mach_info; |
ef449e6d | 11 | |
1d22e05d LB |
12 | struct ep93xx_eth_data |
13 | { | |
14 | unsigned char dev_addr[6]; | |
15 | unsigned char phy_id; | |
16 | }; | |
17 | ||
a0a08fdc HS |
18 | void ep93xx_map_io(void); |
19 | void ep93xx_init_irq(void); | |
02239f0a HS |
20 | |
21 | /* EP93xx System Controller software locked register write */ | |
fbeeea53 | 22 | void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg); |
02239f0a HS |
23 | void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits); |
24 | ||
25 | static inline void ep93xx_devcfg_set_bits(unsigned int bits) | |
26 | { | |
27 | ep93xx_devcfg_set_clear(bits, 0x00); | |
28 | } | |
29 | ||
30 | static inline void ep93xx_devcfg_clear_bits(unsigned int bits) | |
31 | { | |
32 | ep93xx_devcfg_set_clear(0x00, bits); | |
33 | } | |
34 | ||
a0a08fdc | 35 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); |
6531a991 HS |
36 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
37 | struct i2c_board_info *devices, int num); | |
c6012189 | 38 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); |
ef12379f HS |
39 | void ep93xx_register_pwm(int pwm0, int pwm1); |
40 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); | |
41 | void ep93xx_pwm_release_gpio(struct platform_device *pdev); | |
02239f0a | 42 | |
a0a08fdc HS |
43 | void ep93xx_init_devices(void); |
44 | extern struct sys_timer ep93xx_timer; | |
e7736d47 LB |
45 | |
46 | #endif |