mb/msi/ms7721: Don't rewrite pnp_{enter,exit}_conf_state function
Change-Id: Ib27c518fb5ce99e17be25b974ff5adc8c6b3f3a6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37570 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ebcd0a8d8d
commit
50b82ef2bb
|
@ -41,21 +41,6 @@
|
||||||
|
|
||||||
|
|
||||||
/* GPIO configuration */
|
/* GPIO configuration */
|
||||||
#define FINTEK_ENTRY_KEY 0x87
|
|
||||||
static void pnp_enter_conf_state(pnp_devfn_t dev)
|
|
||||||
{
|
|
||||||
u16 port = dev >> 8;
|
|
||||||
outb(FINTEK_ENTRY_KEY, port);
|
|
||||||
outb(FINTEK_ENTRY_KEY, port);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define FINTEK_EXIT_KEY 0xAA
|
|
||||||
static void pnp_exit_conf_state(pnp_devfn_t dev)
|
|
||||||
{
|
|
||||||
u16 port = dev >> 8;
|
|
||||||
outb(FINTEK_EXIT_KEY, port);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gpio_init(pnp_devfn_t dev)
|
static void gpio_init(pnp_devfn_t dev)
|
||||||
{
|
{
|
||||||
pnp_enter_conf_state(dev);
|
pnp_enter_conf_state(dev);
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#define FINTEK_EXIT_KEY 0xAA
|
#define FINTEK_EXIT_KEY 0xAA
|
||||||
|
|
||||||
/* Enable configuration: pass entry key '0x87' into index port dev. */
|
/* Enable configuration: pass entry key '0x87' into index port dev. */
|
||||||
static void pnp_enter_conf_state(pnp_devfn_t dev)
|
void pnp_enter_conf_state(pnp_devfn_t dev)
|
||||||
{
|
{
|
||||||
u16 port = dev >> 8;
|
u16 port = dev >> 8;
|
||||||
outb(FINTEK_ENTRY_KEY, port);
|
outb(FINTEK_ENTRY_KEY, port);
|
||||||
|
@ -51,7 +51,7 @@ static void pnp_enter_conf_state(pnp_devfn_t dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable configuration: pass exit key '0xAA' into index port dev. */
|
/* Disable configuration: pass exit key '0xAA' into index port dev. */
|
||||||
static void pnp_exit_conf_state(pnp_devfn_t dev)
|
void pnp_exit_conf_state(pnp_devfn_t dev)
|
||||||
{
|
{
|
||||||
u16 port = dev >> 8;
|
u16 port = dev >> 8;
|
||||||
outb(FINTEK_EXIT_KEY, port);
|
outb(FINTEK_EXIT_KEY, port);
|
||||||
|
|
|
@ -22,4 +22,7 @@
|
||||||
|
|
||||||
void fintek_enable_serial(pnp_devfn_t dev, u16 iobase);
|
void fintek_enable_serial(pnp_devfn_t dev, u16 iobase);
|
||||||
|
|
||||||
|
void pnp_enter_conf_state(pnp_devfn_t dev);
|
||||||
|
void pnp_exit_conf_state(pnp_devfn_t dev);
|
||||||
|
|
||||||
#endif /* SUPERIO_FINTEK_COMMON_PRE_RAM_H */
|
#endif /* SUPERIO_FINTEK_COMMON_PRE_RAM_H */
|
||||||
|
|
Loading…
Reference in New Issue