[U-Boot] [PATCH V2 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

Marek Vasut marex at denx.de
Fri Oct 4 11:02:29 UTC 2019


On 10/4/19 10:59 AM, Ley Foon Tan wrote:
> On Thu, Oct 3, 2019 at 9:00 PM Marek Vasut wrote:
>>
>> Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers
>> accordingly, no functional change. The S10 enables the WDT only in
>> SPL, but does not enable it in U-Boot itself, hence disable it in
>> the config again.
>> ---
>> V2: Use non-DM watchdog in SPL on S10
>> ---
>>  configs/socfpga_stratix10_defconfig       | 1 +
>>  configs/socfpga_vining_fpga_defconfig     | 1 +
> 
> All socfpga deconfig files need to add CONFIG_DESIGNWARE_WATCHDOG too.
> socfpga_common.h is used by Gen5 and A10 platform.

Only those which defined CONFIG_HW_WATCHDOG need to enable the
CONFIG_DESIGNWARE_WATCHDOG, right ? (see below)

[...]

>> diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
>> index b11fe021a7..32b9131be0 100644
>> --- a/include/configs/socfpga_common.h
>> +++ b/include/configs/socfpga_common.h
>> @@ -104,12 +104,9 @@
>>  /*
>>   * L4 Watchdog
>>   */
>> -#ifdef CONFIG_HW_WATCHDOG
>> -#define CONFIG_DESIGNWARE_WATCHDOG
>>  #define CONFIG_DW_WDT_BASE             SOCFPGA_L4WD0_ADDRESS
>>  #define CONFIG_DW_WDT_CLOCK_KHZ                25000
>>  #define CONFIG_WATCHDOG_TIMEOUT_MSECS  30000
>> -#endif

[...]


More information about the U-Boot mailing list