summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch b/recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch
deleted file mode 100644
index c9a4d19..0000000
--- a/recipes-bsp/u-boot/u-boot-v2012.04.01/0045-M28EVK-Add-SD-update-command.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 9877804a0ec14f0582641bba8e5c9eec34e25c0e Mon Sep 17 00:00:00 2001
2From: Marek Vasut <marex@denx.de>
3Date: Tue, 1 May 2012 11:09:43 +0000
4Subject: [PATCH 45/56] M28EVK: Add SD update command
5
6Add "update_sd_firmware" command to easily reload the SD card of
7m28evk kit. This comes handy when the board boots from SD card.
8
9Signed-off-by: Marek Vasut <marex@denx.de>
10Cc: Detlev Zundel <dzu@denx.de>
11Cc: Fabio Estevam <fabio.estevam@freescale.com>
12Cc: Stefano Babic <sbabic@denx.de>
13Cc: Wolfgang Denk <wd@denx.de>
14---
15 include/configs/m28evk.h | 9 +++++++++
16 1 file changed, 9 insertions(+)
17
18diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
19index 8cd5f31..60f8a6c 100644
20--- a/include/configs/m28evk.h
21+++ b/include/configs/m28evk.h
22@@ -289,6 +289,7 @@
23 #define CONFIG_EXTRA_ENV_SETTINGS \
24 "update_nand_full_filename=u-boot.nand\0" \
25 "update_nand_firmware_filename=u-boot.sb\0" \
26+ "update_sd_firmware_filename=u-boot.sd\0" \
27 "update_nand_firmware_maxsz=0x100000\0" \
28 "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \
29 "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \
30@@ -315,6 +316,14 @@
31 "nand erase ${fcb_sz} ${fw_sz} ; " \
32 "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
33 "nand write ${loadaddr} ${fw_off} ${filesize} ; " \
34+ "fi\0" \
35+ "update_sd_firmware=" /* Update the SD firmware partition */ \
36+ "if mmc rescan ; then " \
37+ "if tftp ${update_sd_firmware_filename} ; then " \
38+ "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
39+ "setexpr fw_sz ${fw_sz} + 1 ; " \
40+ "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
41+ "fi ; " \
42 "fi\0"
43
44 #endif /* __M28_H__ */
45--
461.7.10
47