mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
km/common: fix for CPUWD reset reason
The CPUWD reset reason is used for kmp204x. And the qrio cpu reset request is configured to operate in core reset mode. But for the evaluation of the qrio's reset reason register the CPUWD figures as a unit reset source rather than a core reset source. This patch defines the CPUWD reset as a core reset source when evaluating the reset reason register. Signed-off-by: Rainer Boschung <rainer.boschung@ch.abb.com> CC: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
78a408bb49
commit
db4256f60d
@ -199,10 +199,9 @@ void qrio_cpuwd_flag(bool flag)
|
||||
#define REASON0_KBRST 0x02
|
||||
#define REASON0_POWUP 0x01
|
||||
#define UNIT_RESET\
|
||||
((REASON1_CPUWD << 8) |\
|
||||
REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
|
||||
REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
|
||||
#define CORE_RESET REASON0_SWCRST
|
||||
(REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
|
||||
REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
|
||||
#define CORE_RESET ((REASON1_CPUWD << 8) | REASON0_SWCRST)
|
||||
|
||||
bool qrio_reason_unitrst(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user