Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61916 )
Change subject: mb/asus/f2a85-m/bootblock.c: Use bit shift instead of magic numbers ......................................................................
mb/asus/f2a85-m/bootblock.c: Use bit shift instead of magic numbers
Change-Id: Ife0d0663d0d588b2645526180e4191c234a5a5c3 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/mainboard/asus/f2a85-m/bootblock.c 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/61916/1
diff --git a/src/mainboard/asus/f2a85-m/bootblock.c b/src/mainboard/asus/f2a85-m/bootblock.c index 1355453..b6b33c0 100644 --- a/src/mainboard/asus/f2a85-m/bootblock.c +++ b/src/mainboard/asus/f2a85-m/bootblock.c @@ -14,11 +14,11 @@ /* most likely programming to 48MHz out signal */ u32 reg32; reg32 = misc_read32(0x28); - reg32 &= 0xffc7ffff; - reg32 |= 0x00100000; + reg32 &= ~(7 << 19); + reg32 |= (2 << 19); misc_write32(0x28, reg32);
- misc_write32(0x40, misc_read32(0x40) & (~0x80u)); + misc_write32(0x40, misc_read32(0x40) & ~(1 << 7)); }
static void superio_init_m(void)