• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-omap2/

Lines Matching refs:gpmc_cfg

24 static struct omap_smc91x_platform_data *gpmc_cfg;
85 if (cpu_is_omap34xx() && (gpmc_cfg->flags & GPMC_MUX_ADD_DATA)) {
97 if (gpmc_cfg->flags & GPMC_MUX_ADD_DATA)
99 if (gpmc_cfg->flags & GPMC_READ_MON)
101 if (gpmc_cfg->flags & GPMC_WRITE_MON)
103 if (gpmc_cfg->wait_pin)
104 l |= GPMC_CONFIG1_WAIT_PIN_SEL(gpmc_cfg->wait_pin);
105 gpmc_cs_write_reg(gpmc_cfg->cs, GPMC_CS_CONFIG1, l);
107 if (gpmc_cfg->flags & GPMC_MUX_ADD_DATA)
110 return gpmc_cs_set_timings(gpmc_cfg->cs, &t);
123 gpmc_cfg = board_data;
125 if (gpmc_cfg->flags & GPMC_TIMINGS_SMC91C96)
126 gpmc_cfg->retime = smc91c96_gpmc_retime;
128 if (gpmc_cs_request(gpmc_cfg->cs, SZ_16M, &cs_mem_base) < 0) {
135 gpmc_smc91x_resources[1].flags |= (gpmc_cfg->flags & IRQF_TRIGGER_MASK);
137 if (gpmc_cfg->retime) {
138 ret = gpmc_cfg->retime();
143 if (gpio_request(gpmc_cfg->gpio_irq, "SMC91X irq") < 0)
146 gpio_direction_input(gpmc_cfg->gpio_irq);
147 gpmc_smc91x_resources[1].start = gpio_to_irq(gpmc_cfg->gpio_irq);
149 if (gpmc_cfg->gpio_pwrdwn) {
150 ret = gpio_request(gpmc_cfg->gpio_pwrdwn, "SMC91X powerdown");
153 gpio_direction_output(gpmc_cfg->gpio_pwrdwn, 0);
156 if (gpmc_cfg->gpio_reset) {
157 ret = gpio_request(gpmc_cfg->gpio_reset, "SMC91X reset");
161 gpio_direction_output(gpmc_cfg->gpio_reset, 0);
162 gpio_set_value(gpmc_cfg->gpio_reset, 1);
164 gpio_set_value(gpmc_cfg->gpio_reset, 0);
169 gpio_free(gpmc_cfg->gpio_reset);
176 if (gpmc_cfg->gpio_pwrdwn)
177 gpio_free(gpmc_cfg->gpio_pwrdwn);
179 gpio_free(gpmc_cfg->gpio_irq);
181 gpmc_cs_free(gpmc_cfg->cs);