From: Xingyu Wu Date: Tue, 14 Mar 2023 12:43:58 +0000 (+0800) Subject: reset: starfive: jh7110: Add StarFive Image-Signal-Process reset support X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ea532e05df6c25b2acb0e84329b2d6910b726c2;p=platform%2Fkernel%2Flinux-starfive.git reset: starfive: jh7110: Add StarFive Image-Signal-Process reset support Add auxiliary_device_id to support StarFive JH7110 Image-Signal-Process resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-isp". Signed-off-by: Xingyu Wu --- diff --git a/drivers/reset/starfive/reset-starfive-jh7110.c b/drivers/reset/starfive/reset-starfive-jh7110.c index 2dc46d9..3aeeea8 100644 --- a/drivers/reset/starfive/reset-starfive-jh7110.c +++ b/drivers/reset/starfive/reset-starfive-jh7110.c @@ -35,6 +35,12 @@ static const struct jh7110_reset_info jh7110_stg_info = { .status_offset = 0x78, }; +static const struct jh7110_reset_info jh7110_isp_info = { + .nr_resets = JH7110_ISPRST_END, + .assert_offset = 0x38, + .status_offset = 0x3C, +}; + static int jh7110_reset_probe(struct auxiliary_device *adev, const struct auxiliary_device_id *id) { @@ -65,6 +71,10 @@ static const struct auxiliary_device_id jh7110_reset_ids[] = { .name = "clk_starfive_jh71x0.reset-stg", .driver_data = (kernel_ulong_t)&jh7110_stg_info, }, + { + .name = "clk_starfive_jh71x0.reset-isp", + .driver_data = (kernel_ulong_t)&jh7110_isp_info, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(auxiliary, jh7110_reset_ids);