]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: renesas: Introduce enum clk_reg_layout
authorHai Pham <hai.pham.ud@renesas.com>
Thu, 5 Nov 2020 14:32:38 +0000 (21:32 +0700)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 May 2021 13:00:17 +0000 (15:00 +0200)
From Linux v5.10-rc2, commit ffbf9cf3f946 by Yoshihiro Shimoda
Introduce enum clk_reg_layout to support multiple register layout variants

Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/clk/renesas/renesas-cpg-mssr.h

index 8c8a09b90446429ec067d6ec4a82d0ac71f356b7..3c3b128c4c326ef5d9407dcb8c2a9250d32e9ad4 100644 (file)
 #define __DRIVERS_CLK_RENESAS_CPG_MSSR__
 
 #include <linux/bitops.h>
+
+enum clk_reg_layout {
+       CLK_REG_LAYOUT_RCAR_GEN2_AND_GEN3 = 0,
+};
+
 struct cpg_mssr_info {
        const struct cpg_core_clk       *core_clk;
        unsigned int                    core_clk_size;
+       enum clk_reg_layout             reg_layout;
        const struct mssr_mod_clk       *mod_clk;
        unsigned int                    mod_clk_size;
        const struct mstp_stop_table    *mstp_table;