X86EMU_RAW_IO mode can only be used on architectures that support port
I/O like x86, so don't select this for other architectures.

This was also suggested by Tom Rini [1], but was never added in.

[1] https://lore.kernel.org/u-boot/20241117025353.GA3151182@bill-the-cat/

Suggested-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Anirudh Srinivasan <[email protected]>
---
 drivers/bios_emulator/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bios_emulator/Kconfig b/drivers/bios_emulator/Kconfig
index 3660576772d..5afea87a2e4 100644
--- a/drivers/bios_emulator/Kconfig
+++ b/drivers/bios_emulator/Kconfig
@@ -1,10 +1,10 @@
 config BIOSEMU
        bool
-       select X86EMU_RAW_IO
+       select X86EMU_RAW_IO if X86
 
 config SPL_BIOSEMU
        bool
-       select X86EMU_RAW_IO
+       select X86EMU_RAW_IO if X86
 
 config X86EMU_RAW_IO
        bool

-- 
2.43.0

Reply via email to