diff options
Diffstat (limited to 'src/mainboard/google/link/chromeos.c')
-rw-r--r-- | src/mainboard/google/link/chromeos.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mainboard/google/link/chromeos.c b/src/mainboard/google/link/chromeos.c index 7a6b3a2a4b..a020b06664 100644 --- a/src/mainboard/google/link/chromeos.c +++ b/src/mainboard/google/link/chromeos.c @@ -31,13 +31,6 @@ #define GPIO_COUNT 6 -static int get_lid_switch(void) -{ - u8 ec_switches = inb(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SWITCHES); - - return !!(ec_switches & EC_SWITCH_LID_OPEN); -} - void fill_lb_gpios(struct lb_gpios *gpios) { device_t dev = dev_find_slot(0, PCI_DEVFN(0x1f,0)); @@ -91,6 +84,13 @@ void fill_lb_gpios(struct lb_gpios *gpios) } #endif +int get_lid_switch(void) +{ + u8 ec_switches = inb(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SWITCHES); + + return !!(ec_switches & EC_SWITCH_LID_OPEN); +} + /* The dev-switch is virtual on Link (and so handled elsewhere). */ int get_developer_mode_switch(void) { |