Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335994
b: refs/heads/master
c: f49f4ab
h: refs/heads/master
v: v3
  • Loading branch information
Florian Fainelli authored and Ingo Molnar committed Oct 30, 2012
1 parent 2269d74 commit 41d7731
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cf7e71869268d5c9fa7e8005155aef94e140eb5
refs/heads/master: f49f4ab95c301dbccad0efe85296d908b8ae7ad4
14 changes: 14 additions & 0 deletions trunk/arch/x86/platform/ce4100/ce4100.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ static int ce4100_i8042_detect(void)
return 0;
}

/*
* The CE4100 platform has an internal 8051 Microcontroller which is
* responsible for signaling to the external Power Management Unit the
* intention to reset, reboot or power off the system. This 8051 device has
* its command register mapped at I/O port 0xcf9 and the value 0x4 is used
* to power off the system.
*/
static void ce4100_power_off(void)
{
outb(0x4, 0xcf9);
}

#ifdef CONFIG_SERIAL_8250

static unsigned int mem_serial_in(struct uart_port *p, int offset)
Expand Down Expand Up @@ -143,4 +155,6 @@ void __init x86_ce4100_early_setup(void)
x86_init.pci.init_irq = sdv_pci_init;
x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc_nocheck;
#endif

pm_power_off = ce4100_power_off;
}

0 comments on commit 41d7731

Please sign in to comment.