Make SuperIO-related functions consistent with the rest
This commit is contained in:
parent
ff8a19b0e5
commit
5af6f7cfce
|
@ -5,13 +5,13 @@
|
||||||
|
|
||||||
#if HAS_SUPERIO
|
#if HAS_SUPERIO
|
||||||
|
|
||||||
static void init_SuperIO_config_zones(void);
|
static void configure_zones(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the SuperIO registers
|
* Initialize the SuperIO registers
|
||||||
*/
|
*/
|
||||||
void init_superio(void) {
|
void superio_init(void) {
|
||||||
init_SuperIO_config_zones(); // This Init used to be done by the FPGA.
|
configure_zones(); // This Init used to be done by the FPGA.
|
||||||
|
|
||||||
*GP10_REG = 0x01;
|
*GP10_REG = 0x01;
|
||||||
*GP11_REG = 0x01;
|
*GP11_REG = 0x01;
|
||||||
|
@ -66,7 +66,7 @@ static void init_SuperIO_config_zones(void);
|
||||||
*FAN_CTRL_REG = 0x01;
|
*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
|
// First step is to get into the Configuration Mode
|
||||||
*CONFIG_0x2E_REG = 0x55; // We need to Get into the Config Mode with 0x55
|
*CONFIG_0x2E_REG = 0x55; // We need to Get into the Config Mode with 0x55
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
|
|
||||||
#define SUPERIO_BASE (0xFEC02000)
|
#define SUPERIO_BASE (0xFEC02000)
|
||||||
|
|
||||||
|
void superio_init(void);
|
||||||
|
|
||||||
|
|
||||||
#define CONFIG_0x2E_REG ((volatile uint8_t *)0xFEC0202E)
|
#define CONFIG_0x2E_REG ((volatile uint8_t *)0xFEC0202E)
|
||||||
#define CONFIG_0x2F_REG ((volatile uint8_t *)0xFEC0202F)
|
#define CONFIG_0x2F_REG ((volatile uint8_t *)0xFEC0202F)
|
||||||
|
|
Loading…
Reference in a new issue