mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
appropriate. Also, factor out post_code() for __PRE_RAM__ code and drop it from some mainboards. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5307 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
13 lines
175 B
C
13 lines
175 B
C
#include <arch/io.h>
|
|
#include <reset.h>
|
|
|
|
void soft_reset(void)
|
|
{
|
|
outb(0x04, 0xcf9);
|
|
}
|
|
|
|
void hard_reset(void)
|
|
{
|
|
outb(0x02, 0xcf9);
|
|
outb(0x06, 0xcf9);
|
|
}
|