Merge branch 'master' of git://git.denx.de/u-boot-arm
[oweals/u-boot.git] / board / amcc / bamboo / flash.c
index 7bf877de895800d0addc0f98245d478adb627dca..07d185fd2f4bc8602e1d2ef15baa98c843dd9da2 100644 (file)
@@ -32,9 +32,9 @@
  */
 
 #include <common.h>
-#include <ppc4xx.h>
+#include <asm/ppc4xx.h>
 #include <asm/processor.h>
-#include <ppc440.h>
+#include <asm/ppc440.h>
 #include "bamboo.h"
 
 #undef DEBUG
@@ -86,7 +86,7 @@ unsigned long flash_init(void)
        unsigned long ebc_boot_size;
        unsigned long boot_selection;
 
-       mfsdr(sdr_pstrp0, val);
+       mfsdr(SDR0_PINSTP, val);
        index = (val & SDR0_PSTRP0_BOOTSTRAP_MASK) >> 29;
 
        if ((index == 5) || (index == 7)) {