int au1xxx_gpio_read(int signal) { if(signal >= 200) #if defined(CONFIG_SOC_AU1000) return 0; #else return au1xxx_gpio2_read(signal); #endif else return au1xxx_gpio1_read(signal);
int au1xxx_gpio_get_value(unsigned gpio) { if (gpio >= AU1XXX_GPIO_BASE) #if defined(CONFIG_SOC_AU1000) return 0; #else return au1xxx_gpio2_read(gpio); #endif else return au1xxx_gpio1_read(gpio);