Hi,
I'm developing a kernel driver, and I need to set-up a pull-up for one of gpios. This gpio is used as interrupt source, and i need to have pullup configured before i call request_any_context_irq in my driver. So i think that the best way to do that is to have it configured in the fex file, but I don't know how to do that. I was trying to add my gpio to boot_init_gpio section - didn't worked, i was trying to use gpio_para section like this:
[gpio_para]
gpio_used = 1
gpio_num = 1
gpio_pin_1 = port:PG08<0><1><default><0>
but that didn't worked as well. I found that site http://linux-sunxi.org/Fex_Guide and there was described gpio_init section, so I tried with that but also didn't worked. What is the correct way to setup initial pullup in the hex file ? Or maybe the call to request_any_context_irq resets this pullup ?
I'm developing a kernel driver, and I need to set-up a pull-up for one of gpios. This gpio is used as interrupt source, and i need to have pullup configured before i call request_any_context_irq in my driver. So i think that the best way to do that is to have it configured in the fex file, but I don't know how to do that. I was trying to add my gpio to boot_init_gpio section - didn't worked, i was trying to use gpio_para section like this:
[gpio_para]
gpio_used = 1
gpio_num = 1
gpio_pin_1 = port:PG08<0><1><default><0>
but that didn't worked as well. I found that site http://linux-sunxi.org/Fex_Guide and there was described gpio_init section, so I tried with that but also didn't worked. What is the correct way to setup initial pullup in the hex file ? Or maybe the call to request_any_context_irq resets this pullup ?