Searched refs:gpmc_cfg (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | gpmc-smsc911x.c | 46 void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *gpmc_cfg) gpmc_smsc911x_init() argument 52 if (gpmc_cs_request(gpmc_cfg->cs, SZ_16M, &cs_mem_base) < 0) { gpmc_smsc911x_init() 60 if (gpio_request_one(gpmc_cfg->gpio_irq, GPIOF_IN, "smsc911x irq")) { gpmc_smsc911x_init() 61 pr_err("Failed to request IRQ GPIO%d\n", gpmc_cfg->gpio_irq); gpmc_smsc911x_init() 65 gpmc_smsc911x_resources[1].start = gpio_to_irq(gpmc_cfg->gpio_irq); gpmc_smsc911x_init() 67 if (gpio_is_valid(gpmc_cfg->gpio_reset)) { gpmc_smsc911x_init() 68 ret = gpio_request_one(gpmc_cfg->gpio_reset, gpmc_smsc911x_init() 72 gpmc_cfg->gpio_reset); gpmc_smsc911x_init() 76 gpio_set_value(gpmc_cfg->gpio_reset, 0); gpmc_smsc911x_init() 78 gpio_set_value(gpmc_cfg->gpio_reset, 1); gpmc_smsc911x_init() 81 gpmc_smsc911x_config.flags = gpmc_cfg->flags ? : SMSC911X_USE_16BIT; gpmc_smsc911x_init() 83 pdev = platform_device_register_resndata(NULL, "smsc911x", gpmc_cfg->id, gpmc_smsc911x_init() 88 gpio_free(gpmc_cfg->gpio_reset); gpmc_smsc911x_init() 95 gpio_free(gpmc_cfg->gpio_irq); gpmc_smsc911x_init() 97 gpmc_cs_free(gpmc_cfg->cs); gpmc_smsc911x_init()
|
Completed in 27 milliseconds