diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-08-07 12:12:58 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-08-09 15:49:08 +0000 |
commit | 6de6571f1c362c43dbfd04c79d1ddedcb953c724 (patch) | |
tree | 7aabb5a1a34216b79f2a557edd0cf74c5472c8b5 /src/superio/smsc/sio1036/sio1036_early_init.c | |
parent | 089b6857615a3bbf9c28b8e658da6b768650692f (diff) |
src/superio: Fix typo and remove unneeded whitespace
Change-Id: Iadc28d1632aa9b7d0b028c229049a348d5c07882
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/27875
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/superio/smsc/sio1036/sio1036_early_init.c')
-rw-r--r-- | src/superio/smsc/sio1036/sio1036_early_init.c | 26 |
1 files changed, 13 insertions, 13 deletions
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); } |