lkml.org 
[lkml]   [2022]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 08/10] power: reset: at91-reset: add support for SAMA7G5
    Date
    Add support for SAMA7G5 including reset_controller_dev support for 3 lines
    (which are USB PHYs).

    Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
    ---
    drivers/power/reset/at91-reset.c | 9 +++++++++
    1 file changed, 9 insertions(+)

    diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c
    index e25d8d38a2f8..80bf0c023c17 100644
    --- a/drivers/power/reset/at91-reset.c
    +++ b/drivers/power/reset/at91-reset.c
    @@ -202,6 +202,11 @@ static const struct at91_reset_data samx7 = {
    .reset_args = AT91_RSTC_KEY | AT91_RSTC_PROCRST,
    };

    +static const struct at91_reset_data sama7g5 = {
    + .reset_args = AT91_RSTC_KEY | AT91_RSTC_PROCRST,
    + .n_device_reset = 3,
    +};
    +
    static const struct of_device_id at91_reset_of_match[] = {
    {
    .compatible = "atmel,at91sam9260-rstc",
    @@ -223,6 +228,10 @@ static const struct of_device_id at91_reset_of_match[] = {
    .compatible = "microchip,sam9x60-rstc",
    .data = &samx7,
    },
    + {
    + .compatible = "microchip,sama7g5-rstc",
    + .data = &sama7g5,
    + },
    { /* sentinel */ }
    };
    MODULE_DEVICE_TABLE(of, at91_reset_of_match);
    --
    2.32.0
    \
     
     \ /
      Last update: 2022-04-08 10:01    [W:2.755 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site