[U-Boot] [PATCH 2/2] rockchip: add usb mass storage feature support for rk3288

Ziyuan Xu xzy.xu at rock-chips.com
Wed Aug 3 05:50:30 CEST 2016


Enable ums feature for rk3288 boards, so that we can mount the mmc
device to PC.

Signed-off-by: Ziyuan Xu <xzy.xu at rock-chips.com>
---

 include/common.h                | 4 +++-
 include/configs/rk3288_common.h | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/common.h b/include/common.h
index e9f0dea..1866cf3 100644
--- a/include/common.h
+++ b/include/common.h
@@ -9,7 +9,9 @@
 #define __COMMON_H_	1
 
 #ifndef __ASSEMBLY__		/* put C only stuff in this section */
-
+#ifndef CONFIG_SPL_BUILD
+#define DEBUG
+#endif
 typedef unsigned char		uchar;
 typedef volatile unsigned long	vu_long;
 typedef volatile unsigned short vu_short;
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index fa37335..d3d4c68 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -96,6 +96,10 @@
 #define CONFIG_FASTBOOT_BUF_ADDR	CONFIG_SYS_LOAD_ADDR
 #define CONFIG_FASTBOOT_BUF_SIZE	0x08000000
 
+/* usb mass storage */
+#define CONFIG_USB_FUNCTION_MASS_STORAGE
+#define CONFIG_CMD_USB_MASS_STORAGE
+
 #define CONFIG_USB_GADGET_DOWNLOAD
 #define CONFIG_G_DNL_MANUFACTURER	"Rockchip"
 #define CONFIG_G_DNL_VENDOR_NUM		0x2207
-- 
2.9.2




More information about the U-Boot mailing list