static void __init cas6xx_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
static void __init cas7xx_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
static void wp54_reset(void)
{
- gpio_direction_output(ADM5120_GPIO_PIN3, 0);
+ gpio_set_value(ADM5120_GPIO_PIN3, 0);
}
static struct mtd_partition wp54g_wrt_partitions[] = {
static void __init np2xg_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
static void __init wp54_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
+
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
+ gpio_direction_output(ADM5120_GPIO_PIN3, 1);
+
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
static void __init wp54_wrt_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
+
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
+ gpio_direction_output(ADM5120_GPIO_PIN3, 1);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;