From c5fea8adf042c1f963ddb730bac7e81b019ba986 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 9 Sep 2017 02:19:44 +0000 Subject: [PATCH] Add P5021 and P5040 conditions for LAW count check. P5040/P5021 have the same number of LAWs as P5020. There may be a better way of getting the count from the FDT (fsl,num-laws property on soc/corenet-law or soc/ecm-law), but that's not supported everywhere, so we still need this check for those other cases. --- sys/powerpc/mpc85xx/mpc85xx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/powerpc/mpc85xx/mpc85xx.c b/sys/powerpc/mpc85xx/mpc85xx.c index bb422c026a82..3e39a849491c 100644 --- a/sys/powerpc/mpc85xx/mpc85xx.c +++ b/sys/powerpc/mpc85xx/mpc85xx.c @@ -96,6 +96,10 @@ law_getmax(void) break; case SVR_P5020: case SVR_P5020E: + case SVR_P5021: + case SVR_P5021E: + case SVR_P5040: + case SVR_P5040E: law_max = 32; break; default: