reset: starfive: jh7110: Add StarFive Video-Output reset support
authorXingyu Wu <xingyu.wu@starfivetech.com>
Tue, 14 Mar 2023 12:44:01 +0000 (20:44 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 28 Mar 2023 03:23:06 +0000 (12:23 +0900)
Add auxiliary_device_id to support StarFive JH7110 Video-Output resets
of which the auxiliary device name is "clk_starfive_jh71x0.reset-vout".

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

index 3aeeea8..6ad535c 100644 (file)
@@ -41,6 +41,12 @@ static const struct jh7110_reset_info jh7110_isp_info = {
        .status_offset = 0x3C,
 };
 
+static const struct jh7110_reset_info jh7110_vout_info = {
+       .nr_resets = JH7110_VOUTRST_END,
+       .assert_offset = 0x48,
+       .status_offset = 0x4C,
+};
+
 static int jh7110_reset_probe(struct auxiliary_device *adev,
                              const struct auxiliary_device_id *id)
 {
@@ -75,6 +81,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = {
                .name = "clk_starfive_jh71x0.reset-isp",
                .driver_data = (kernel_ulong_t)&jh7110_isp_info,
        },
+       {
+               .name = "clk_starfive_jh71x0.reset-vout",
+               .driver_data = (kernel_ulong_t)&jh7110_vout_info,
+       },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);