lkml.org 
[lkml]   [2023]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 08/11] reset: starfive: jh7110: Add StarFive Video-Output reset support
    Date
    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 | 10 ++++++++++
    1 file changed, 10 insertions(+)

    diff --git a/drivers/reset/starfive/reset-starfive-jh7110.c b/drivers/reset/starfive/reset-starfive-jh7110.c
    index 3aeeea8ee1ed..6ad535c41087 100644
    --- a/drivers/reset/starfive/reset-starfive-jh7110.c
    +++ b/drivers/reset/starfive/reset-starfive-jh7110.c
    @@ -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);
    --
    2.25.1
    \
     
     \ /
      Last update: 2023-03-27 00:59    [W:7.733 / U:0.408 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site