summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cs5535
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-14 10:12:23 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-14 10:12:23 +0000
commit4154c668f24da79672099dfac06f5263c415fee0 (patch)
tree260835bf16506bce6bc8f3837a16a352c679c486 /src/southbridge/amd/cs5535
parentc264ad930a2579dc235de0c95842374e89ff5d6a (diff)
zero warnings days. Down to under 600 different warnings
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5425 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/cs5535')
-rw-r--r--src/southbridge/amd/cs5535/cs5535_early_setup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/southbridge/amd/cs5535/cs5535_early_setup.c b/src/southbridge/amd/cs5535/cs5535_early_setup.c
index 583602c3dd..fbb3647578 100644
--- a/src/southbridge/amd/cs5535/cs5535_early_setup.c
+++ b/src/southbridge/amd/cs5535/cs5535_early_setup.c
@@ -23,11 +23,11 @@ static void cs5535_setup_extmsr(void)
/* forward MSR access to CS5535_GLINK_PORT_NUM to CS5535_DEV_NUM */
msr.hi = msr.lo = 0x00000000;
- if (CS5535_GLINK_PORT_NUM <= 4) {
- msr.lo = CS5535_DEV_NUM << ((CS5535_GLINK_PORT_NUM - 1) * 8);
- } else {
- msr.hi = CS5535_DEV_NUM << ((CS5535_GLINK_PORT_NUM - 5) * 8);
- }
+#if CS5535_GLINK_PORT_NUM <= 4
+ msr.lo = CS5535_DEV_NUM << ((CS5535_GLINK_PORT_NUM - 1) * 8);
+#else
+ msr.hi = CS5535_DEV_NUM << ((CS5535_GLINK_PORT_NUM - 5) * 8);
+#endif
wrmsr(0x5000201e, msr);
}