ep93xx.h (1433B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _SOC_EP93XX_H 3#define _SOC_EP93XX_H 4 5struct platform_device; 6 7#define EP93XX_CHIP_REV_D0 3 8#define EP93XX_CHIP_REV_D1 4 9#define EP93XX_CHIP_REV_E0 5 10#define EP93XX_CHIP_REV_E1 6 11#define EP93XX_CHIP_REV_E2 7 12 13#ifdef CONFIG_ARCH_EP93XX 14int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); 15void ep93xx_pwm_release_gpio(struct platform_device *pdev); 16int ep93xx_ide_acquire_gpio(struct platform_device *pdev); 17void ep93xx_ide_release_gpio(struct platform_device *pdev); 18int ep93xx_keypad_acquire_gpio(struct platform_device *pdev); 19void ep93xx_keypad_release_gpio(struct platform_device *pdev); 20int ep93xx_i2s_acquire(void); 21void ep93xx_i2s_release(void); 22unsigned int ep93xx_chip_revision(void); 23 24#else 25static inline int ep93xx_pwm_acquire_gpio(struct platform_device *pdev) { return 0; } 26static inline void ep93xx_pwm_release_gpio(struct platform_device *pdev) {} 27static inline int ep93xx_ide_acquire_gpio(struct platform_device *pdev) { return 0; } 28static inline void ep93xx_ide_release_gpio(struct platform_device *pdev) {} 29static inline int ep93xx_keypad_acquire_gpio(struct platform_device *pdev) { return 0; } 30static inline void ep93xx_keypad_release_gpio(struct platform_device *pdev) {} 31static inline int ep93xx_i2s_acquire(void) { return 0; } 32static inline void ep93xx_i2s_release(void) {} 33static inline unsigned int ep93xx_chip_revision(void) { return 0; } 34 35#endif 36 37#endif