summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-12-03 08:25:18 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-12-23 03:09:20 +0000
commit100f92c54f2f199e98d817bd16ae7530e8ad719c (patch)
tree0111fb5b05c20fc1765e644026ec5e8dd17bd504 /src/mainboard
parent4c61294498254c0cc07608632228f84b2e555a06 (diff)
mb,x86/smm: Disable unused IO traps
Only IO trap #3 for lenovo/x60,t60 and getac/p470 have implemented the IO trap handler. Change-Id: Ibadce174f673e88380f4b6745fd9ed8b73177a13 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70367 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/apple/macbook21/early_init.c6
-rw-r--r--src/mainboard/getac/p470/early_init.c3
-rw-r--r--src/mainboard/lenovo/t60/early_init.c3
-rw-r--r--src/mainboard/lenovo/x60/early_init.c3
-rw-r--r--src/mainboard/roda/rk886ex/early_init.c10
5 files changed, 0 insertions, 25 deletions
diff --git a/src/mainboard/apple/macbook21/early_init.c b/src/mainboard/apple/macbook21/early_init.c
index 42e7d77cf7..c0a57cc8fc 100644
--- a/src/mainboard/apple/macbook21/early_init.c
+++ b/src/mainboard/apple/macbook21/early_init.c
@@ -23,10 +23,4 @@ void mainboard_late_rcba_config(void)
/* Disable unused devices */
RCBA32(FD) |= FD_INTLAN;
-
- /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
-
- /* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
- RCBA32(0x1e9c) = 0x000200f0;
- RCBA32(0x1e98) = 0x000c0801;
}
diff --git a/src/mainboard/getac/p470/early_init.c b/src/mainboard/getac/p470/early_init.c
index c28d602115..1f206acd3a 100644
--- a/src/mainboard/getac/p470/early_init.c
+++ b/src/mainboard/getac/p470/early_init.c
@@ -122,9 +122,6 @@ void mainboard_late_rcba_config(void)
RCBA32(FD) |= FD_INTLAN;
/* This should probably go into the ACPI enable trap */
- /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
- RCBA32(0x1e84) = 0x00020001;
- RCBA32(0x1e80) = 0x0000fe01;
/* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
RCBA32(0x1e9c) = 0x000200f0;
diff --git a/src/mainboard/lenovo/t60/early_init.c b/src/mainboard/lenovo/t60/early_init.c
index 0a1ae53b72..3e3c2692e9 100644
--- a/src/mainboard/lenovo/t60/early_init.c
+++ b/src/mainboard/lenovo/t60/early_init.c
@@ -73,9 +73,6 @@ void mainboard_late_rcba_config(void)
/* Disable unused devices */
RCBA32(FD) |= FD_INTLAN;
- /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
- RCBA64(IOTR0) = 0x000200010000fe01ULL;
-
/* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
RCBA64(IOTR3) = 0x000200f0000c0801ULL;
}
diff --git a/src/mainboard/lenovo/x60/early_init.c b/src/mainboard/lenovo/x60/early_init.c
index 3add1952cd..1c58a3a2c4 100644
--- a/src/mainboard/lenovo/x60/early_init.c
+++ b/src/mainboard/lenovo/x60/early_init.c
@@ -72,9 +72,6 @@ void mainboard_late_rcba_config(void)
/* Disable unused devices */
RCBA32(FD) |= FD_INTLAN;
- /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
- RCBA64(IOTR0) = 0x000200010000fe01ULL;
-
/* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
RCBA64(IOTR3) = 0x000200f0000c0801ULL;
}
diff --git a/src/mainboard/roda/rk886ex/early_init.c b/src/mainboard/roda/rk886ex/early_init.c
index ddea82f46e..9fdbeb64af 100644
--- a/src/mainboard/roda/rk886ex/early_init.c
+++ b/src/mainboard/roda/rk886ex/early_init.c
@@ -77,16 +77,6 @@ void mainboard_late_rcba_config(void)
/* Disable unused devices */
RCBA32(FD) |= FD_INTLAN;
-
- /* This should probably go into the ACPI OS Init trap */
-
- /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
- RCBA32(0x1e84) = 0x00020001;
- RCBA32(0x1e80) = 0x0000fe01;
-
- /* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
- RCBA32(0x1e9c) = 0x000200f0;
- RCBA32(0x1e98) = 0x000c0801;
}
static void init_artec_dongle(void)