ep93xx: IDE driver platform support code
[deliverable/linux.git] / arch / arm / mach-ep93xx / include / mach / platform.h
CommitLineData
e7736d47 1/*
a09e64fb 2 * arch/arm/mach-ep93xx/include/mach/platform.h
e7736d47
LB
3 */
4
5#ifndef __ASSEMBLY__
6
6531a991 7struct i2c_gpio_platform_data;
ef449e6d 8struct i2c_board_info;
4fec9978 9struct spi_board_info;
ef12379f 10struct platform_device;
c6012189 11struct ep93xxfb_mach_info;
12f56c68 12struct ep93xx_keypad_platform_data;
4fec9978 13struct ep93xx_spi_info;
ef449e6d 14
1d22e05d
LB
15struct ep93xx_eth_data
16{
17 unsigned char dev_addr[6];
18 unsigned char phy_id;
19};
20
a0a08fdc
HS
21void ep93xx_map_io(void);
22void ep93xx_init_irq(void);
02239f0a 23
99e6a23a
MW
24#define EP93XX_CHIP_REV_D0 3
25#define EP93XX_CHIP_REV_D1 4
26#define EP93XX_CHIP_REV_E0 5
27#define EP93XX_CHIP_REV_E1 6
28#define EP93XX_CHIP_REV_E2 7
29
30unsigned int ep93xx_chip_revision(void);
31
16bcf78f
HS
32void ep93xx_register_flash(unsigned int width,
33 resource_size_t start, resource_size_t size);
34
a0a08fdc 35void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr);
6531a991
HS
36void ep93xx_register_i2c(struct i2c_gpio_platform_data *data,
37 struct i2c_board_info *devices, int num);
4fec9978
MW
38void ep93xx_register_spi(struct ep93xx_spi_info *info,
39 struct spi_board_info *devices, int num);
c6012189 40void ep93xx_register_fb(struct ep93xxfb_mach_info *data);
ef12379f
HS
41void ep93xx_register_pwm(int pwm0, int pwm1);
42int ep93xx_pwm_acquire_gpio(struct platform_device *pdev);
43void ep93xx_pwm_release_gpio(struct platform_device *pdev);
12f56c68
HS
44void ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data);
45int ep93xx_keypad_acquire_gpio(struct platform_device *pdev);
46void ep93xx_keypad_release_gpio(struct platform_device *pdev);
ed67ea82 47void ep93xx_register_i2s(void);
f15855bf 48int ep93xx_i2s_acquire(void);
ed67ea82 49void ep93xx_i2s_release(void);
534bc7fa 50void ep93xx_register_ac97(void);
eb774a09
RP
51void ep93xx_register_ide(void);
52int ep93xx_ide_acquire_gpio(struct platform_device *pdev);
53void ep93xx_ide_release_gpio(struct platform_device *pdev);
02239f0a 54
a0a08fdc
HS
55void ep93xx_init_devices(void);
56extern struct sys_timer ep93xx_timer;
e7736d47 57
3275166e 58void ep93xx_restart(char, const char *);
c914283f
SG
59void ep93xx_init_late(void);
60
61#ifdef CONFIG_CRUNCH
62int crunch_init(void);
63#else
64static inline int crunch_init(void) { return 0; }
65#endif
3275166e 66
e7736d47 67#endif
This page took 0.482009 seconds and 5 git commands to generate.