Patrick Georgi submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved
drivers/pc80/rtc: Drop ARCH_X86 guard in header

Change-Id: I03c25ad5d9864406e1a021e39a5736ac72c8825a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38197
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
M src/include/pc80/mc146818rtc.h
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index c9e054b..a2c65cb 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -1,14 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#ifndef PC80_MC146818RTC_H
#define PC80_MC146818RTC_H

-#if CONFIG(ARCH_X86)
-
#include <arch/io.h>
#include <types.h>

-#ifndef RTC_BASE_PORT
#define RTC_BASE_PORT 0x70
-#endif

#define RTC_PORT(x) (RTC_BASE_PORT + (x))

@@ -181,7 +179,4 @@
int cmos_checksum_valid(int range_start, int range_end, int cks_loc);
void cmos_set_checksum(int range_start, int range_end, int cks_loc);

-#endif /* CONFIG_ARCH_X86 */
-
-
#endif /* PC80_MC146818RTC_H */

To view, visit change 38197. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I03c25ad5d9864406e1a021e39a5736ac72c8825a
Gerrit-Change-Number: 38197
Gerrit-PatchSet: 13
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki@gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-MessageType: merged