mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-05 21:35:46 +02:00
watchdog: booke_wdt: Replace PPC_FSL_BOOK3E by PPC_E500
CONFIG_PPC_FSL_BOOK3E is redundant with CONFIG_PPC_E500. Replace it so that CONFIG_PPC_FSL_BOOK3E can be removed later. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/01a9132d51d3d8d9c74576d3da4d9d1fa5a88bde.1663606876.git.christophe.leroy@csgroup.eu
This commit is contained in:
parent
404a5e72f4
commit
ec65560ad8
|
@ -1935,10 +1935,10 @@ config BOOKE_WDT
|
||||||
config BOOKE_WDT_DEFAULT_TIMEOUT
|
config BOOKE_WDT_DEFAULT_TIMEOUT
|
||||||
int "PowerPC Book-E Watchdog Timer Default Timeout"
|
int "PowerPC Book-E Watchdog Timer Default Timeout"
|
||||||
depends on BOOKE_WDT
|
depends on BOOKE_WDT
|
||||||
default 38 if PPC_FSL_BOOK3E
|
default 38 if PPC_E500
|
||||||
range 0 63 if PPC_FSL_BOOK3E
|
range 0 63 if PPC_E500
|
||||||
default 3 if !PPC_FSL_BOOK3E
|
default 3 if !PPC_E500
|
||||||
range 0 3 if !PPC_FSL_BOOK3E
|
range 0 3 if !PPC_E500
|
||||||
help
|
help
|
||||||
Select the default watchdog timer period to be used by the PowerPC
|
Select the default watchdog timer period to be used by the PowerPC
|
||||||
Book-E watchdog driver. A watchdog "event" occurs when the bit
|
Book-E watchdog driver. A watchdog "event" occurs when the bit
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_FSL_BOOK3E
|
#ifdef CONFIG_PPC_E500
|
||||||
#define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
|
#define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
|
||||||
#define WDTP_MASK (WDTP(0x3f))
|
#define WDTP_MASK (WDTP(0x3f))
|
||||||
#else
|
#else
|
||||||
|
@ -45,7 +45,7 @@ MODULE_PARM_DESC(nowayout,
|
||||||
"Watchdog cannot be stopped once started (default="
|
"Watchdog cannot be stopped once started (default="
|
||||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_FSL_BOOK3E
|
#ifdef CONFIG_PPC_E500
|
||||||
|
|
||||||
/* For the specified period, determine the number of seconds
|
/* For the specified period, determine the number of seconds
|
||||||
* corresponding to the reset time. There will be a watchdog
|
* corresponding to the reset time. There will be a watchdog
|
||||||
|
@ -88,7 +88,7 @@ static unsigned int sec_to_period(unsigned int secs)
|
||||||
|
|
||||||
#define MAX_WDT_TIMEOUT period_to_sec(1)
|
#define MAX_WDT_TIMEOUT period_to_sec(1)
|
||||||
|
|
||||||
#else /* CONFIG_PPC_FSL_BOOK3E */
|
#else /* CONFIG_PPC_E500 */
|
||||||
|
|
||||||
static unsigned long long period_to_sec(unsigned int period)
|
static unsigned long long period_to_sec(unsigned int period)
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,7 @@ static unsigned int sec_to_period(unsigned int secs)
|
||||||
|
|
||||||
#define MAX_WDT_TIMEOUT 3 /* from Kconfig */
|
#define MAX_WDT_TIMEOUT 3 /* from Kconfig */
|
||||||
|
|
||||||
#endif /* !CONFIG_PPC_FSL_BOOK3E */
|
#endif /* !CONFIG_PPC_E500 */
|
||||||
|
|
||||||
static void __booke_wdt_set(void *data)
|
static void __booke_wdt_set(void *data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user