samsung: tizen_rpi: add dfu setup informations
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 20 Jan 2020 21:55:14 +0000 (06:55 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
Add dfu setup informations.
- usb controller index : 0
- dfu interface : mmc(eMMC/SD)
- default dfu device : 0

After applied this patch, it will be worked with "thor" instead of "thor 0 mmc 0".

Change-Id: I32294af8531532ea86333853fb208c2c23deb33d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
include/samsung/tizen_rpi.h

index 3ecd2e6e06a2a530da88496d2218946f3d114db0..829908691a7745a0890bfed8676e5dd29baffa57 100644 (file)
@@ -53,6 +53,9 @@
 #define TIZEN_VC_MEM "vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 "
 #endif
 
+/* SD/MMC configuration */
+#define CONFIG_MMC_DEFAULT_DEV 0
+
 /*
 # Tizen kernel image is over than 16MB, it will be overlapped with other address.
 # To avoid this behaivor, change to 0x03300000 from 0x01000000
@@ -90,6 +93,9 @@
                TIZEN_VC_MEM                            \
                "8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 "                \
                "bcm2709.uart_clock=48000000 dwc_otg.lpm_enable=0\0"    \
-       "opts=loglevel=4\0"
+       "opts=loglevel=4\0"                     \
+       "dfu_usb_con=0\0"                       \
+       "dfu_interface=mmc\0"                   \
+       "dfu_device=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0"
 
 #endif /* __CONFIG_TIZEN_RPI_H */