From d9e33426645ba368f7ae2fb4df47b18d3a287367 Mon Sep 17 00:00:00 2001 From: "HeungJun, Kim" Date: Mon, 29 Jun 2009 19:56:53 +0900 Subject: [PATCH] [S5PC100] add SMDKC100 USB-Downloader support Signed-off-by: HeungJun, Kim --- board/samsung/smdkc100/smdkc100.c | 2 +- cpu/arm_cortexa8/s5pc100/usb_downloader.c | 2 ++ include/configs/s5pc100_smdkc100.h | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c index 8ed0de7..476b61d 100644 --- a/board/samsung/smdkc100/smdkc100.c +++ b/board/samsung/smdkc100/smdkc100.c @@ -69,7 +69,7 @@ void raise(void) { } -#ifdef CONFIG_CMD_USBDOWN +#if defined(CONFIG_CMD_USBDOWN) && !defined(CONFIG_SMDKC100) #include int usb_board_init(void) diff --git a/cpu/arm_cortexa8/s5pc100/usb_downloader.c b/cpu/arm_cortexa8/s5pc100/usb_downloader.c index 4184613..443337a 100644 --- a/cpu/arm_cortexa8/s5pc100/usb_downloader.c +++ b/cpu/arm_cortexa8/s5pc100/usb_downloader.c @@ -78,10 +78,12 @@ void s3c_usb_clear_upfile_info(void) /* start the usb controller */ void usb_init(void) { +#if !defined(CONFIG_SMDKC100) if (usb_board_init()) { printf("Failed to usb_board_init\n"); return; } +#endif s3c_usbctl_init(); s3c_usbc_activate(); diff --git a/include/configs/s5pc100_smdkc100.h b/include/configs/s5pc100_smdkc100.h index 1de22ad..dac04b0 100644 --- a/include/configs/s5pc100_smdkc100.h +++ b/include/configs/s5pc100_smdkc100.h @@ -239,4 +239,12 @@ #define CONFIG_DOS_PARTITION 1 +/* USB Downloader */ +#define CONFIG_CMD_USBDOWN +#define CONFIG_SAMSUNG_USB +#define CONFIG_OTG_CLK_OSCC +#define CONFIG_SYS_DOWN_ADDR CONFIG_SYS_SDRAM_BASE +#define CONFIG_RAMDISK_ADDR 0x23000000 + + #endif /* __CONFIG_H */ -- 2.7.4