Re: [PATCH v2 0/2] Define NPCM7XX PWRON bit fields

2022-04-21 Thread Peter Maydell
On Mon, 11 Apr 2022 at 17:58, Hao Wu wrote: > > Currently, the PWRON STRAP values in NPCM7XX boards are magic > numbers. Similar to the aspeed ones in hw/arm/aspeed.c, we > define bit fields constants for them and use these fields instead > of the magic numbers in the current implementation. The

[PATCH v2 0/2] Define NPCM7XX PWRON bit fields

2022-04-11 Thread Hao Wu
Currently, the PWRON STRAP values in NPCM7XX boards are magic numbers. Similar to the aspeed ones in hw/arm/aspeed.c, we define bit fields constants for them and use these fields instead of the magic numbers in the current implementation. The code should behave exactly the same as the existing