mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: mainboard/getac/p470: transition away from device_t
Replace the use of the old device_t definition inside mainboard/getac/p470. BUG=None BRANCH=None TEST=None Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/17293 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: Ifb81976ed7068f9d51edb0d297cd4a12265c51ec Reviewed-on: https://chromium-review.googlesource.com/410085 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
85ac56b331
commit
a8173286c5
1 changed files with 4 additions and 4 deletions
|
@ -103,19 +103,19 @@ static void ich7_enable_lpc(void)
|
||||||
* the two. Also set up the GPIOs from the beginning. This is the "no schematic
|
* the two. Also set up the GPIOs from the beginning. This is the "no schematic
|
||||||
* but safe anyways" method.
|
* but safe anyways" method.
|
||||||
*/
|
*/
|
||||||
static void pnp_enter_ext_func_mode(device_t dev)
|
static void pnp_enter_ext_func_mode(pnp_devfn_t dev)
|
||||||
{
|
{
|
||||||
unsigned int port = dev >> 8;
|
unsigned int port = dev >> 8;
|
||||||
outb(0x55, port);
|
outb(0x55, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pnp_exit_ext_func_mode(device_t dev)
|
static void pnp_exit_ext_func_mode(pnp_devfn_t dev)
|
||||||
{
|
{
|
||||||
unsigned int port = dev >> 8;
|
unsigned int port = dev >> 8;
|
||||||
outb(0xaa, port);
|
outb(0xaa, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pnp_write_register(device_t dev, int reg, int val)
|
static void pnp_write_register(pnp_devfn_t dev, int reg, int val)
|
||||||
{
|
{
|
||||||
unsigned int port = dev >> 8;
|
unsigned int port = dev >> 8;
|
||||||
outb(reg, port);
|
outb(reg, port);
|
||||||
|
@ -124,7 +124,7 @@ static void pnp_write_register(device_t dev, int reg, int val)
|
||||||
|
|
||||||
static void early_superio_config(void)
|
static void early_superio_config(void)
|
||||||
{
|
{
|
||||||
device_t dev;
|
pnp_devfn_t dev;
|
||||||
|
|
||||||
dev = PNP_DEV(0x4e, 0x00);
|
dev = PNP_DEV(0x4e, 0x00);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue