summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-04 12:58:53 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-06 04:30:40 +0000
commit287910765d59441b325f97880f9ce584623ad009 (patch)
treeb3cb6164558d356d09a733f4601f40fcba9e86fa /src/console
parent19be7b569e5d0162c76774c33f86472eea0e6f5d (diff)
downloadcoreboot-287910765d59441b325f97880f9ce584623ad009.tar.xz
drivers/pc80/rtc: Swap cmos_write32() parameter order
Make it consistent with the more used cmos_write(). Change-Id: I9cf643c770e9819de08dbede48b73f3d4fe15bd7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38178 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/post.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console/post.c b/src/console/post.c
index a426fccac2..9d535cb4e5 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -98,8 +98,8 @@ void cmos_post_init(void)
cmos_write(0, CMOS_POST_BANK_0_OFFSET);
cmos_write(0, CMOS_POST_BANK_1_OFFSET);
#if CONFIG(CMOS_POST_EXTRA)
- cmos_write32(CMOS_POST_BANK_0_EXTRA, 0);
- cmos_write32(CMOS_POST_BANK_1_EXTRA, 0);
+ cmos_write32(0, CMOS_POST_BANK_0_EXTRA);
+ cmos_write32(0, CMOS_POST_BANK_1_EXTRA);
#endif
}
@@ -113,10 +113,10 @@ void post_log_extra(u32 value)
switch (cmos_read(CMOS_POST_BANK_OFFSET)) {
case CMOS_POST_BANK_0_MAGIC:
- cmos_write32(CMOS_POST_BANK_0_EXTRA, value);
+ cmos_write32(value, CMOS_POST_BANK_0_EXTRA);
break;
case CMOS_POST_BANK_1_MAGIC:
- cmos_write32(CMOS_POST_BANK_1_EXTRA, value);
+ cmos_write32(value, CMOS_POST_BANK_1_EXTRA);
break;
}