summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/superio/ite/it8772f/it8772f.h2
-rw-r--r--src/superio/smsc/sio1036/sio1036.h2
-rw-r--r--src/superio/smsc/sio1036/sio1036_early_init.c26
3 files changed, 15 insertions, 15 deletions
diff --git a/src/superio/ite/it8772f/it8772f.h b/src/superio/ite/it8772f/it8772f.h
index ec210a8bec..91d107a9a2 100644
--- a/src/superio/ite/it8772f/it8772f.h
+++ b/src/superio/ite/it8772f/it8772f.h
@@ -120,7 +120,7 @@ enum thermal_mode {
/* GPIO Inernal Pull-up: 1: Enable, 0: Disable */
#define GPIO_REG_PULLUP(x) (0xb8 + (x))
-/* GPIO Fucntion Select: 1: Simple I/O, 0: Alternate function */
+/* GPIO Function Select: 1: Simple I/O, 0: Alternate function */
#define GPIO_REG_ENABLE(x) (0xc0 + (x))
/* GPIO Mode: 0: input mode, 1: output mode */
diff --git a/src/superio/smsc/sio1036/sio1036.h b/src/superio/smsc/sio1036/sio1036.h
index 37ef041aec..683dcd113e 100644
--- a/src/superio/smsc/sio1036/sio1036.h
+++ b/src/superio/smsc/sio1036/sio1036.h
@@ -20,7 +20,7 @@
#define UART_POWER_DOWN (1 << 7)
#define LPT_POWER_DOWN (1 << 2)
-#define IR_OUPUT_MUX (1 << 6)
+#define IR_OUTPUT_MUX (1 << 6)
#include <arch/io.h>
#include <stdint.h>
diff --git a/src/superio/smsc/sio1036/sio1036_early_init.c b/src/superio/smsc/sio1036/sio1036_early_init.c
index b01151061c..1f2c9f2e5c 100644
--- a/src/superio/smsc/sio1036/sio1036_early_init.c
+++ b/src/superio/smsc/sio1036/sio1036_early_init.c
@@ -38,8 +38,8 @@ static u8 detect_sio1036_chip(unsigned port)
pnp_devfn_t dev = PNP_DEV(port, SIO1036_SP1);
unsigned data;
- sio1036_enter_conf_state (dev);
- data = pnp_read_config (dev, 0x0D);
+ sio1036_enter_conf_state(dev);
+ data = pnp_read_config(dev, 0x0D);
sio1036_exit_conf_state(dev);
/* Detect SMSC SIO1036 chip */
@@ -59,37 +59,37 @@ void sio1036_enable_serial(pnp_devfn_t dev, u16 iobase)
if (detect_sio1036_chip(port) != 0)
return;
- sio1036_enter_conf_state (dev);
+ sio1036_enter_conf_state(dev);
/* Enable SMSC UART 0 */
/* Valid configuration cycle */
- pnp_write_config (dev, 0x00, 0x28);
+ pnp_write_config(dev, 0x00, 0x28);
/* PP power/mode/cr lock */
- pnp_write_config (dev, 0x01, 0x98 | LPT_POWER_DOWN);
- pnp_write_config (dev, 0x02, 0x08 | UART_POWER_DOWN);
+ pnp_write_config(dev, 0x01, 0x98 | LPT_POWER_DOWN);
+ pnp_write_config(dev, 0x02, 0x08 | UART_POWER_DOWN);
/*Auto power management*/
- pnp_write_config (dev, 0x07, 0x00 );
+ pnp_write_config(dev, 0x07, 0x00);
/*ECP FIFO threhod */
- pnp_write_config (dev, 0x0A, 0x00 | IR_OUPUT_MUX);
+ pnp_write_config(dev, 0x0A, 0x00 | IR_OUTPUT_MUX);
/*GPIO direction register 2 */
- pnp_write_config (dev, 0x033, 0x00);
+ pnp_write_config(dev, 0x033, 0x00);
/*UART Mode */
- pnp_write_config (dev, 0x0C, 0x02);
+ pnp_write_config(dev, 0x0C, 0x02);
/* GPIO polarity regisgter 2 */
- pnp_write_config (dev, 0x034, 0x00);
+ pnp_write_config(dev, 0x034, 0x00);
/* Enable SMSC UART 0 */
/*Set base io address */
- pnp_write_config (dev, 0x25, (u8)(iobase >> 2));
+ pnp_write_config(dev, 0x25, (u8)(iobase >> 2));
/* Set UART IRQ onto 0x04 */
- pnp_write_config (dev, 0x28, 0x04);
+ pnp_write_config(dev, 0x28, 0x04);
sio1036_exit_conf_state(dev);
}