Re: [PATCH v2 1/2] powerpc: permanently include 8xx registers in reg.h

2019-08-29 Thread Michael Ellerman
Christophe Leroy writes: > Most 8xx registers have specific names, so just include > reg_8xx.h all the time in reg.h in order to have them defined > even when CONFIG_PPC_8xx is not selected. This will avoid > the need for #ifdefs in C code. > > Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as

[PATCH v2 1/2] powerpc: permanently include 8xx registers in reg.h

2019-08-27 Thread Christophe Leroy
Most 8xx registers have specific names, so just include reg_8xx.h all the time in reg.h in order to have them defined even when CONFIG_PPC_8xx is not selected. This will avoid the need for #ifdefs in C code. Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as this register has same name but different