Re: [2/6] mfd: da9062: make register CONFIG_I writable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 17, 2017 at 05:30:23PM +0200, Michael Grzeschik wrote:
> From: Stefan Christ <s.christ@xxxxxxxxx>
> 
> Make the config register CONFIG_I writable to change the watchdog mode.
> The datasheet does not mention exactly whether these registers should be
> read-only or writeable. But writing to those registers works at runtime.
> Only on reset they are reseted.
> 
> Signed-off-by: Stefan Christ <s.christ@xxxxxxxxx>
> Signed-off-by: Christian Hemp <c.hemp@xxxxxxxxx>

Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>

> ---
>  drivers/mfd/da9062-core.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
> index fe1811523e4a7..f5c7bd9dc32d5 100644
> --- a/drivers/mfd/da9062-core.c
> +++ b/drivers/mfd/da9062-core.c
> @@ -727,6 +727,10 @@ static const struct regmap_range da9062_aa_writeable_ranges[] = {
>  		.range_min = DA9062AA_BBAT_CONT,
>  		.range_max = DA9062AA_BBAT_CONT,
>  	}, {
> +		/* CONFIG_I must be writable to set WATCHDOG_SD */
> +		.range_min = DA9062AA_CONFIG_I,
> +		.range_max = DA9062AA_CONFIG_I,
> +	}, {
>  		.range_min = DA9062AA_GP_ID_0,
>  		.range_max = DA9062AA_GP_ID_19,
>  	},
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux