.. | .. |
---|
102 | 102 | .supply_name = "cf-power", |
---|
103 | 103 | .microvolts = 3300000, |
---|
104 | 104 | .enabled_at_boot = 1, |
---|
105 | | - .gpio = -EINVAL, |
---|
| 105 | +}; |
---|
| 106 | + |
---|
| 107 | +static struct gpiod_lookup_table shannon_display_gpio_table = { |
---|
| 108 | + .dev_id = "sa11x0-fb", |
---|
| 109 | + .table = { |
---|
| 110 | + GPIO_LOOKUP("gpio", 22, "shannon-lcden", GPIO_ACTIVE_HIGH), |
---|
| 111 | + { }, |
---|
| 112 | + }, |
---|
106 | 113 | }; |
---|
107 | 114 | |
---|
108 | 115 | static void __init shannon_init(void) |
---|
109 | 116 | { |
---|
110 | 117 | sa11x0_register_fixed_regulator(0, &shannon_cf_vcc_pdata, |
---|
111 | 118 | shannon_cf_vcc_consumers, |
---|
112 | | - ARRAY_SIZE(shannon_cf_vcc_consumers)); |
---|
| 119 | + ARRAY_SIZE(shannon_cf_vcc_consumers), |
---|
| 120 | + false); |
---|
113 | 121 | sa11x0_register_pcmcia(0, &shannon_pcmcia0_gpio_table); |
---|
114 | 122 | sa11x0_register_pcmcia(1, &shannon_pcmcia1_gpio_table); |
---|
115 | 123 | sa11x0_ppc_configure_mcp(); |
---|
| 124 | + gpiod_add_lookup_table(&shannon_display_gpio_table); |
---|
116 | 125 | sa11x0_register_lcd(&shannon_lcd_info); |
---|
117 | 126 | sa11x0_register_mtd(&shannon_flash_data, &shannon_flash_resource, 1); |
---|
118 | 127 | sa11x0_register_mcp(&shannon_mcp_data); |
---|