User:Knuxify/Draft:Qualcomm/Adding a new SoC to mainline Linux: Difference between revisions
No edit summary |
|||
| Line 99: | Line 99: | ||
Driver is in drivers/pinctrl/qcom. | Driver is in drivers/pinctrl/qcom. | ||
Downstream driver is split into a .c file and a .h file; mainline has them both in the .c file | Downstream driver is split into a .c file and a .h file; mainline has them both in the .c file. | ||
* Replace <code> | * You'll likely have a REG_BASE added to all registers; mainline drivers don't have it. Remove it and offset the DT node instead. | ||
* Replace <code>MSM_PIN_FUNCTION(gpio)</code> with <code>MSM_GPIO_PIN_FUNCTION(gpio)</code> | |||
* Replace the probe and platform_device stuff with the same stuff copied from another driver in mainline | * Replace the probe and platform_device stuff with the same stuff copied from another driver in mainline | ||