From 195948a4675edd8674986b19f2036320eb8ba1c8 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 1 Jan 2023 14:33:51 +1100 Subject: internal.c: Move sio register to own object While super i/o is related to the internal programmer it isn't actually _the_ internal programmer. Move register logic to its own object consistent with other programmer types. Change-Id: I9a4c3e12bce5d22492c8d1b8f4a3f49d736dcf31 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/71577 Reviewed-by: Angel Pons Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) --- internal.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'internal.c') diff --git a/internal.c b/internal.c index 808039da..c5fdb740 100644 --- a/internal.c +++ b/internal.c @@ -34,34 +34,6 @@ bool force_boardmismatch = false; enum chipbustype internal_buses_supported = BUS_NONE; -#if defined(__i386__) || defined(__x86_64__) -void probe_superio(void) -{ - probe_superio_winbond(); - /* ITE probe causes SMSC LPC47N217 to power off the serial UART. - * Always probe for SMSC first, and if a SMSC Super I/O is detected - * at a given I/O port, do _not_ probe that port with the ITE probe. - * This means SMSC probing must be done before ITE probing. - */ - //probe_superio_smsc(); - probe_superio_ite(); -} - -int superio_count = 0; -#define SUPERIO_MAX_COUNT 3 - -struct superio superios[SUPERIO_MAX_COUNT]; - -int register_superio(struct superio s) -{ - if (superio_count == SUPERIO_MAX_COUNT) - return 1; - superios[superio_count++] = s; - return 0; -} - -#endif - static void internal_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr) { -- cgit v1.2.3