summaryrefslogtreecommitdiff
path: root/src/mainboard/roda/rk886ex
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-12-13 07:57:37 +0100
committerFelix Held <felix-coreboot@felixheld.de>2019-12-15 10:23:10 +0000
commitebcd0a8d8d6f28a3c4962a632e0e374a8fa47908 (patch)
tree143b3955e962a25455543f52413439f63a047c69 /src/mainboard/roda/rk886ex
parent1a5c3bb7fa56378664ce221cd749f118ef6a09f6 (diff)
downloadcoreboot-ebcd0a8d8d6f28a3c4962a632e0e374a8fa47908.tar.xz
mb/roda/rk886ex: Don't rewrite pnp_{enter,exit}_conf_state function
Change-Id: Ie9918e5114bb880e37680a85eab2bd224b0b082c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37686 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/roda/rk886ex')
-rw-r--r--src/mainboard/roda/rk886ex/early_init.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/mainboard/roda/rk886ex/early_init.c b/src/mainboard/roda/rk886ex/early_init.c
index f3e24e0f3b..6f0a12c335 100644
--- a/src/mainboard/roda/rk886ex/early_init.c
+++ b/src/mainboard/roda/rk886ex/early_init.c
@@ -24,6 +24,8 @@
#include <pc80/mc146818rtc.h>
#include <northbridge/intel/i945/i945.h>
#include <southbridge/intel/i82801gx/i82801gx.h>
+#include <superio/smsc/lpc47n227/lpc47n227.h>
+
#include "option_table.h"
/* Override the default lpc decode ranges */
@@ -43,17 +45,6 @@ void mainboard_lpc_decode(void)
* the two. Also set up the GPIOs from the beginning. This is the "no schematic
* but safe anyways" method.
*/
-static inline void pnp_enter_ext_func_mode(pnp_devfn_t dev)
-{
- unsigned int port = dev >> 8;
- outb(0x55, port);
-}
-
-static void pnp_exit_ext_func_mode(pnp_devfn_t dev)
-{
- unsigned int port = dev >> 8;
- outb(0xaa, port);
-}
void bootblock_mainboard_early_init(void)
{
@@ -61,7 +52,7 @@ void bootblock_mainboard_early_init(void)
dev = PNP_DEV(0x2e, 0x00);
- pnp_enter_ext_func_mode(dev);
+ pnp_enter_conf_state(dev);
pnp_write_config(dev, 0x01, 0x94); /* Extended Parport modes */
pnp_write_config(dev, 0x02, 0x88); /* UART power on */
pnp_write_config(dev, 0x03, 0x72); /* Floppy */
@@ -87,7 +78,7 @@ void bootblock_mainboard_early_init(void)
pnp_write_config(dev, 0x38, 0x00); /* GPIO4 POL */
pnp_write_config(dev, 0x39, 0x80); /* GPIO4 POL */
- pnp_exit_ext_func_mode(dev);
+ pnp_exit_conf_state(dev);
}
void mainboard_late_rcba_config(void)