reset: starfive: jh7110: Add StarFive System-Top-Group reset support
authorXingyu Wu <xingyu.wu@starfivetech.com>
Tue, 14 Mar 2023 12:43:55 +0000 (20:43 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:34 +0000 (08:24 +0900)
Add auxiliary_device_id to support StarFive JH7110 System-Top-Group resets
of which the auxiliary device name is "clk_starfive_jh71x0.reset-stg".

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
drivers/reset/starfive/reset-starfive-jh7110.c

index 4ccb3f7..2dc46d9 100644 (file)
@@ -29,6 +29,12 @@ static const struct jh7110_reset_info jh7110_aon_info = {
        .status_offset = 0x3C,
 };
 
+static const struct jh7110_reset_info jh7110_stg_info = {
+       .nr_resets = JH7110_STGRST_END,
+       .assert_offset = 0x74,
+       .status_offset = 0x78,
+};
+
 static int jh7110_reset_probe(struct auxiliary_device *adev,
                              const struct auxiliary_device_id *id)
 {
@@ -55,6 +61,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = {
                .name = "clk_starfive_jh71x0.reset-aon",
                .driver_data = (kernel_ulong_t)&jh7110_aon_info,
        },
+       {
+               .name = "clk_starfive_jh71x0.reset-stg",
+               .driver_data = (kernel_ulong_t)&jh7110_stg_info,
+       },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);