HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44460 )
Change subject: nb/common: Introduce reg{8,16,32}_and_or() ......................................................................
nb/common: Introduce reg{8,16,32}_and_or()
Change-Id: I8f42ff7c3f275fa1f763b545728be64ee2475324 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- A src/northbridge/intel/common/mchbar.h 1 file changed, 33 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/44460/1
diff --git a/src/northbridge/intel/common/mchbar.h b/src/northbridge/intel/common/mchbar.h new file mode 100644 index 0000000..f5d7e4c --- /dev/null +++ b/src/northbridge/intel/common/mchbar.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef INTEL_COMMON_MCHBAR_H +#define INTEL_COMMON_MCHBAR_H + +#include <stdint.h> + +uint8_t reg8_and_or(u8 reg, u8 mask, u8 or) +{ + u8 value; + value = mchbar8; + value &= mask; + value |= or; + return value; +} + +uint16_t reg16_and_or(u16 reg, u16 mask, u16 or) +{ + u16 value; + value = mchbar16; + value &= mask; + value |= or; + return value; +} + +uint32_t reg32_and_or(u32 reg, u32 mask, u32 or) +{ + u32 value; + value = mchbar32; + value &= mask; + value |= or; + return value; +}
Hello Arthur Heymans, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44460
to look at the new patch set (#2).
Change subject: nb/common: Introduce reg{8,16,32}_and_or() ......................................................................
nb/common: Introduce reg{8,16,32}_and_or()
Change-Id: I8f42ff7c3f275fa1f763b545728be64ee2475324 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- A src/northbridge/intel/common/mchbar.h 1 file changed, 34 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/44460/2
Hello build bot (Jenkins), Arthur Heymans, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44460
to look at the new patch set (#3).
Change subject: nb/common: Introduce reg{8,16,32}_and_or() ......................................................................
nb/common: Introduce reg{8,16,32}_and_or()
Change-Id: I8f42ff7c3f275fa1f763b545728be64ee2475324 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- A src/northbridge/intel/common/mchbar.c A src/northbridge/intel/common/mchbar.h 2 files changed, 42 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/44460/3
HAOUAS Elyes has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/44460 )
Change subject: nb/common: Introduce reg{8,16,32}_and_or() ......................................................................
Abandoned