From 5af6f7cfce671486b5c51807c59218ae7f03f436 Mon Sep 17 00:00:00 2001 From: vinz6751 Date: Tue, 5 Dec 2023 23:55:54 +0100 Subject: [PATCH] Make SuperIO-related functions consistent with the rest --- src/dev/superio.c | 8 ++++---- src/include/superio.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dev/superio.c b/src/dev/superio.c index 02fb0dd..c4e6a8f 100644 --- a/src/dev/superio.c +++ b/src/dev/superio.c @@ -5,13 +5,13 @@ #if HAS_SUPERIO -static void init_SuperIO_config_zones(void); +static void configure_zones(void); /* * Initialize the SuperIO registers */ - void init_superio(void) { - init_SuperIO_config_zones(); // This Init used to be done by the FPGA. + void superio_init(void) { + configure_zones(); // This Init used to be done by the FPGA. *GP10_REG = 0x01; *GP11_REG = 0x01; @@ -66,7 +66,7 @@ static void init_SuperIO_config_zones(void); *FAN_CTRL_REG = 0x01; } -static void init_SuperIO_config_zones(void) { +static void configure_zones(void) { // First step is to get into the Configuration Mode *CONFIG_0x2E_REG = 0x55; // We need to Get into the Config Mode with 0x55 diff --git a/src/include/superio.h b/src/include/superio.h index 33e5958..9cff948 100644 --- a/src/include/superio.h +++ b/src/include/superio.h @@ -13,6 +13,8 @@ #define SUPERIO_BASE (0xFEC02000) + void superio_init(void); + #define CONFIG_0x2E_REG ((volatile uint8_t *)0xFEC0202E) #define CONFIG_0x2F_REG ((volatile uint8_t *)0xFEC0202F)