From 2b688b086a02bda3da67de1a7d6f18e6d4e2cc2e Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Wed, 1 Dec 2010 15:24:54 +0900 Subject: [PATCH] usbd: use define for bootloader sector Signed-off-by: Minkyu Kang --- common/cmd_usbd.c | 2 +- include/configs/s5pc210_universal.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/cmd_usbd.c b/common/cmd_usbd.c index e47b755..a4b5c58 100644 --- a/common/cmd_usbd.c +++ b/common/cmd_usbd.c @@ -1344,7 +1344,7 @@ out: break; case IMG_BOOTLOADER: - sprintf(offset, "0x%x", 0x80); + sprintf(offset, "0x%x", CONFIG_BOOTLOADER_SECTOR); sprintf(length, "0x%x", len / usbd->mmc_blk + 1); ret = mmc_cmd(OPS_WRITE, ramaddr, offset, length); break; diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h index f94904f..4d5f458 100644 --- a/include/configs/s5pc210_universal.h +++ b/include/configs/s5pc210_universal.h @@ -237,6 +237,8 @@ ",100M(swap)"\ ",-(UMS)\0" +#define CONFIG_BOOTLOADER_SECTOR 0x80 + #define CONFIG_BOOTCOMMAND "run ubifsboot" #define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0" -- 2.7.4