#ifndef _SOC_EP93XX_H
#define _SOC_EP93XX_H
-struct platform_device;
-
#define EP93XX_CHIP_REV_D0 3
#define EP93XX_CHIP_REV_D1 4
#define EP93XX_CHIP_REV_E0 5
#define EP93XX_CHIP_REV_E1 6
#define EP93XX_CHIP_REV_E2 7
-#if defined(CONFIG_EP93XX_SOC_COMMON)
-int ep93xx_pwm_acquire_gpio(struct platform_device *pdev);
-void ep93xx_pwm_release_gpio(struct platform_device *pdev);
-int ep93xx_ide_acquire_gpio(struct platform_device *pdev);
-void ep93xx_ide_release_gpio(struct platform_device *pdev);
-int ep93xx_keypad_acquire_gpio(struct platform_device *pdev);
-void ep93xx_keypad_release_gpio(struct platform_device *pdev);
-int ep93xx_i2s_acquire(void);
-void ep93xx_i2s_release(void);
-#else
-static inline int ep93xx_pwm_acquire_gpio(struct platform_device *pdev) { return 0; }
-static inline void ep93xx_pwm_release_gpio(struct platform_device *pdev) {}
-static inline int ep93xx_ide_acquire_gpio(struct platform_device *pdev) { return 0; }
-static inline void ep93xx_ide_release_gpio(struct platform_device *pdev) {}
-static inline int ep93xx_keypad_acquire_gpio(struct platform_device *pdev) { return 0; }
-static inline void ep93xx_keypad_release_gpio(struct platform_device *pdev) {}
-static inline int ep93xx_i2s_acquire(void) { return 0; }
-static inline void ep93xx_i2s_release(void) {}
-#endif
-
#if defined(CONFIG_ARCH_EP93XX)
unsigned int ep93xx_chip_revision(void);
-#if defined(CONFIG_EP93XX_SOC)
void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
void ep93xx_syscon_swlocked_write(unsigned int val, unsigned int reg);
void ep93xx_swlocked_update_bits(unsigned int reg,
unsigned int mask, unsigned int val);
-#endif
#else
static inline unsigned int ep93xx_chip_revision(void) { return 0; }
+static inline void void ep93xx_devcfg_set_clear(unsigned int set_bits,
+ unsigned int clear_bits) { return 0; }
+void ep93xx_syscon_swlocked_write(unsigned int val, unsigned int reg)
+ { return 0; }
+void ep93xx_swlocked_update_bits(unsigned int reg,
+ unsigned int mask, unsigned int val)
+ { return 0; }
#endif
#endif