User:Knuxify/Draft:Qualcomm/Adding a new SoC to mainline Linux: Difference between revisions
No edit summary |
|||
| Line 2: | Line 2: | ||
{{Work-in-progress page|note=Currently in the middle of finding this out in real time :)}} | {{Work-in-progress page|note=Currently in the middle of finding this out in real time :)}} | ||
This guide will cover the process of adding support for a recent (~2020 or newer | This guide will cover the process of adding support for a recent (~2020 or newer) Qualcomm SoC into mainline Linux. <!--For the U-Boot guide, see TODO.--> | ||
This guide was tested with the SM7435. Some details might be different for other SoCs. If you have any hints, please contribute! | This guide was tested with the SM7435. Some details might be different for other SoCs. If you have any hints, please contribute! | ||
| Line 48: | Line 48: | ||
todo | todo | ||
== | == Clock controllers == | ||
'''A note about licences and copying code:''' a good chunk of drivers can be copied from downstream with minimal modifications. In those cases, keep the original copyright at the top of the file (Copyright (c) 20xx, Qualcomm Innovation Center, Inc. etc), and add yourself below. (This seems to be how it was done for milos as well.) | {{note|'''A note about licences and copying code:''' a good chunk of drivers can be copied from downstream with minimal modifications. In those cases, keep the original copyright at the top of the file ''(Copyright (c) 20xx, Qualcomm Innovation Center, Inc. etc)'', and add yourself below. (This seems to be how it was done for milos as well.)}} | ||
On recent Qualcomm SoCs, the downstream kernel uses the mainline Qualcomm clock driver with ''some'' vendor-specific quirks. This means that the clock drivers and their relevant headers can pretty much be copied verbatim from downstream, though quite a few modifications are needed. | On recent Qualcomm SoCs, the downstream kernel uses the mainline Qualcomm clock driver with ''some'' vendor-specific quirks. This means that the clock drivers and their relevant headers can pretty much be copied verbatim from downstream, though quite a few modifications are needed. | ||