aboot: handle new base address (0x20000000) for qsd8k
Signed-off-by: Brian Swetland <swetland@google.com>
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 6a75da4..54963a7 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -45,17 +45,18 @@
#include "fastboot.h"
#if defined(PLATFORM_QSD8K)
-#define TAGS_ADDR 0x12000100
-#define KERNEL_ADDR 0x12800000
-#define RAMDISK_ADDR 0x13000000
+#define BASE_ADDR 0x20000000
#define DEFAULT_CMDLINE "mem=128M console=null";
#else
-#define TAGS_ADDR 0x10000100
-#define KERNEL_ADDR 0x10800000
-#define RAMDISK_ADDR 0x11000000
+#define BASE_ADDR 0x10000000
#define DEFAULT_CMDLINE "mem=100M console=null";
#endif
+#define TAGS_ADDR (BASE_ADDR + 0x00000100)
+#define KERNEL_ADDR (BASE_ADDR + 0x00800000)
+#define RAMDISK_ADDR (BASE_ADDR + 0x01000000)
+#define SCRATCH_ADDR (BASE_ADDR + 0x02000000)
+
static struct udc_device surf_udc_device = {
.vendor_id = 0x18d1,
.product_id = 0x0001,
@@ -344,7 +345,7 @@
fastboot_publish("product", "swordfish");
fastboot_publish("kernel", "lk");
- fastboot_init((void*) 0x10100000, 100 * 1024 * 1024);
+ fastboot_init((void*) SCRATCH_ADDR, 100 * 1024 * 1024);
udc_start();
}