indent
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1541 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -46,13 +46,15 @@ static void memreset_setup(void)
|
||||
{
|
||||
if (is_cpu_pre_c0()) {
|
||||
/* Set the memreset low */
|
||||
outb((0 << 7)|(0 << 6)|(0<<5)|(0<<4)|(1<<2)|(0<<0), SMBUS_IO_BASE + 0xc0 + 28);
|
||||
outb((0 << 7) | (0 << 6) | (0 << 5) | (0 << 4) | (1 << 2) |
|
||||
(0 << 0), SMBUS_IO_BASE + 0xc0 + 28);
|
||||
/* Ensure the BIOS has control of the memory lines */
|
||||
outb((0 << 7)|(0 << 6)|(0<<5)|(0<<4)|(1<<2)|(0<<0), SMBUS_IO_BASE + 0xc0 + 29);
|
||||
}
|
||||
else {
|
||||
outb((0 << 7) | (0 << 6) | (0 << 5) | (0 << 4) | (1 << 2) |
|
||||
(0 << 0), SMBUS_IO_BASE + 0xc0 + 29);
|
||||
} else {
|
||||
/* Ensure the CPU has controll of the memory lines */
|
||||
outb((0 << 7)|(0 << 6)|(0<<5)|(0<<4)|(1<<2)|(1<<0), SMBUS_IO_BASE + 0xc0 + 29);
|
||||
outb((0 << 7) | (0 << 6) | (0 << 5) | (0 << 4) | (1 << 2) |
|
||||
(1 << 0), SMBUS_IO_BASE + 0xc0 + 29);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +63,8 @@ static void memreset(int controllers, const struct mem_controller *ctrl)
|
||||
if (is_cpu_pre_c0()) {
|
||||
udelay(800);
|
||||
/* Set memreset_high */
|
||||
outb((0<<7)|(0<<6)|(0<<5)|(0<<4)|(1<<2)|(1<<0), SMBUS_IO_BASE + 0xc0 + 28);
|
||||
outb((0 << 7) | (0 << 6) | (0 << 5) | (0 << 4) | (1 << 2) |
|
||||
(1 << 0), SMBUS_IO_BASE + 0xc0 + 28);
|
||||
udelay(90);
|
||||
}
|
||||
}
|
||||
@@ -71,7 +74,8 @@ static void memreset(int controllers, const struct mem_controller *ctrl)
|
||||
*
|
||||
*/
|
||||
|
||||
static unsigned int generate_row(uint8_t node, uint8_t row, uint8_t maxnodes)
|
||||
static unsigned int generate_row(uint8_t node, uint8_t row,
|
||||
uint8_t maxnodes)
|
||||
{
|
||||
/* Routing Table Node i
|
||||
*
|
||||
|
@@ -60,4 +60,3 @@ static int spd_read_byte(unsigned device, unsigned address)
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user