diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-11-10 20:00:52 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-11-30 09:42:00 +0100 |
commit | 05b22caa7490e4f4c94bbde33c61cf72d187b8f7 (patch) | |
tree | 7d5a90067fb0ab4d3ba101ae75a87ff5fe4061bf /drivers/gnss | |
parent | soc: renesas: rcar-rst: Add support to set rproc boot address (diff) | |
download | linux-05b22caa7490e4f4c94bbde33c61cf72d187b8f7.tar.xz linux-05b22caa7490e4f4c94bbde33c61cf72d187b8f7.zip |
soc: renesas: Consolidate product register handling
Currently renesas_soc_init() scans the whole device tree up to three
times, to find a device node describing a product register.
Furthermore, the product register handling for the different variants is
very similar, with the major difference being the location of the
product bitfield inside the product register.
Reduce scanning to a single pass using of_find_matching_node_and_match()
instead. Switch to a common handling of product registers, by storing
the intrinsics of each product register type in the data field of the
corresponding match entry.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/057721f46c7499de4133135488f0f3da7fb39265.1636570669.git.geert+renesas@glider.be
Diffstat (limited to 'drivers/gnss')
0 files changed, 0 insertions, 0 deletions