Drop excessive whitespace randomly sprinkled in romstage.c files.
[coreboot.git] / src / mainboard / pcengines / alix2d / romstage.c
index aa5f7a0fc40ed58b0549876360f420bdbf2b91cb..fd2298ce88f9f9970f608ff5b0aae1f94af52efd 100644 (file)
@@ -87,7 +87,7 @@ static u8 spd_read_byte(u8 device, u8 address)
        print_debug("spd_read_byte dev ");
        print_debug_hex8(device);
 
-       if (device != (0x50 << 1)) {
+       if (device != DIMM0) {
                print_debug(" returns 0xff\n");
                return 0xff;
        }
@@ -105,9 +105,6 @@ static u8 spd_read_byte(u8 device, u8 address)
 #define PLLMSRhi       0x00001490      /* Manual settings for the PLL */
 #define PLLMSRlo       0x02000030
 
-#define DIMM0          0xa0
-#define DIMM1          0xa2
-
 #include "northbridge/amd/lx/raminit.h"
 #include "northbridge/amd/lx/pll_reset.c"
 #include "northbridge/amd/lx/raminit.c"
@@ -119,12 +116,6 @@ static u8 spd_read_byte(u8 device, u8 address)
 /** Early mainboard specific GPIO setup. */
 static void mb_gpio_init(void)
 {
-       /*
-        * Disable power button, since it is hardwired to ground on this board,
-        * and the power would be cut off atfer a 4-second delay otherwise.
-        */
-       outl(0x00020000, PMS_IO_BASE + 0x40);
-
        /*
         * Enable LEDs GPIO outputs to light up the leds
         * This is how the original tinyBIOS sets them after boot.
@@ -145,14 +136,12 @@ static void mb_gpio_init(void)
        /* outl(1 << 6, GPIO_IO_BASE + GPIOL_OUTPUT_VALUE); */  /* Led 1 enabled  */
     outl(1 << 9, GPIO_IO_BASE + GPIOH_OUTPUT_VALUE);        /* Led 2 disabled */
        outl(1 << 11, GPIO_IO_BASE + GPIOH_OUTPUT_VALUE);       /* Led 3 disabled */
-
-
 }
 
 void main(unsigned long bist)
 {
        static const struct mem_controller memctrl[] = {
-               {.channel0 = {0x50}},
+               {.channel0 = {DIMM0}},
        };
 
        post_code(0x01);
@@ -216,4 +205,3 @@ void main(unsigned long bist)
        void done_cache_as_ram_main(void);
        done_cache_as_ram_main();
 }
-