User:Knuxify/Draft:Qualcomm/Adding a new SoC to mainline Linux: Difference between revisions

Knuxify (talk | contribs)
No edit summary
Knuxify (talk | contribs)
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. TODO I don't remember exactly how I arrived at the mainline driver...
Downstream driver is split into a .c file and a .h file; mainline has them both in the .c file.


* Replace <code>MSM_GPIO_PIN_FUNCTION(gpio)</code> with <code>MSM_PIN_FUNCTION(gpio)</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