]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
change mvBL-M7 default env and move to vendor subdir
authorAndre Schwarz <andre.schwarz@matrix-vision.de>
Wed, 20 Aug 2008 09:11:52 +0000 (11:11 +0200)
committerKim Phillips <kim.phillips@freescale.com>
Mon, 25 Aug 2008 22:11:20 +0000 (17:11 -0500)
fix mvBL-M7 config and move to matrix_vision subdir

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Makefile
board/matrix_vision/mvblm7/Makefile [moved from board/mvblm7/Makefile with 100% similarity]
board/matrix_vision/mvblm7/config.mk [moved from board/mvblm7/config.mk with 100% similarity]
board/matrix_vision/mvblm7/fpga.c [moved from board/mvblm7/fpga.c with 100% similarity]
board/matrix_vision/mvblm7/fpga.h [moved from board/mvblm7/fpga.h with 100% similarity]
board/matrix_vision/mvblm7/mvblm7.c [moved from board/mvblm7/mvblm7.c with 100% similarity]
board/matrix_vision/mvblm7/mvblm7.h [moved from board/mvblm7/mvblm7.h with 100% similarity]
board/matrix_vision/mvblm7/mvblm7_autoscript [moved from board/mvblm7/mvblm7_autoscript with 80% similarity]
board/matrix_vision/mvblm7/pci.c [moved from board/mvblm7/pci.c with 100% similarity]
include/configs/MVBLM7.h

index c30ef57583e576351bd9a0e18365ab6559875fa8..66d91046a358d42aea0968fc0ad5d14c8763ca23 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2180,7 +2180,7 @@ MPC837XERDB_config:       unconfig
        @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
 
 MVBLM7_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7
+       @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
 
 sbc8349_config:                unconfig
        @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
similarity index 80%
rename from board/mvblm7/mvblm7_autoscript
rename to board/matrix_vision/mvblm7/mvblm7_autoscript
index ec6e34ef05a403d59b2b2ab2be4dab0b1bf38e3e..6f9357fd0db81e335d8fb52511bc46ba75bf7054 100644 (file)
@@ -5,11 +5,17 @@ setenv bootdtb bootm \${kernel_boot} \${mv_initrd_addr_ram} \${mv_dtb_addr_ram}
 setenv ramkernel setenv kernel_boot \${loadaddr}
 setenv flashkernel setenv kernel_boot \${mv_kernel_addr}
 setenv cpird cp \${mv_initrd_addr} \${mv_initrd_addr_ram} \${mv_initrd_length}
-setenv bootfromflash run flashkernel cpird ramparam bootdtb
+setenv bootfromflash run flashkernel cpird ramparam addcons bootdtb
 setenv getdtb tftp \${mv_dtb_addr_ram} \${dtb_name}
 setenv cpdtb cp \${mv_dtb_addr} \${mv_dtb_addr_ram} 0x2000
 setenv rundtb fdt addr \${mv_dtb_addr_ram}\;fdt boardsetup
 setenv bootfromnet tftp \${mv_initrd_addr_ram} \${initrd_name}\;run ramkernel
+if test ${console} = yes;
+then
+setenv addcons setenv bootargs \${bootargs} console=ttyS\${console_nr},\${baudrate}N8
+else
+setenv addcons setenv bootargs \${bootargs} console=tty0
+fi
 setenv set_static_ip setenv ipaddr \${static_ipaddr}
 setenv set_static_nm setenv netmask \${static_netmask}
 setenv set_static_gw setenv gatewayip \${static_gateway}
@@ -24,7 +30,7 @@ then
     then
       echo "=== bootp succeeded -> netboot ==="
       run set_ip
-      run getdtb rundtb bootfromnet ramparam bootdtb
+      run getdtb rundtb bootfromnet ramparam addcons bootdtb
     else
       echo "=== netboot failed ==="
     fi
index 0dce9b46d629aadda845eea2587d192c6b4a2620..849350fd8a4fcd74723cc324bf50fe185a88df5d 100644 (file)
 #define CONFIG_ZERO_BOOTDELAY_CHECK
 #define CONFIG_RESET_TO_RETRY          1000
 
-#define MV_CI                  "mvBL-M7"
-#define MV_VCI                 "mvBL-M7"
-#define MV_FPGA_DATA           "0xfff80000"
-#define MV_FPGA_SIZE           "0x76ca2"
-#define MV_KERNEL_ADDR         "0xff810000"
-#define MV_INITRD_ADDR         "0xffc00000"
-#define MV_AUTOSCR_ADDR                "0xff804000"
-#define MV_AUTOSCR_ADDR2       "0xff806000"
-#define MV_DTB_ADDR            "0xff808000"
-#define MV_INITRD_LENGTH       "0x00300000"
+#define MV_CI                  mvBL-M7
+#define MV_VCI                 mvBL-M7
+#define MV_FPGA_DATA           0xfff80000
+#define MV_FPGA_SIZE           0x00076ca2
+#define MV_KERNEL_ADDR         0xff810000
+#define MV_INITRD_ADDR         0xffb00000
+#define MV_AUTOSCR_ADDR                0xff804000
+#define MV_AUTOSCR_ADDR2       0xff806000
+#define MV_DTB_ADDR            0xff808000
+#define MV_INITRD_LENGTH       0x00400000
 
 #define CONFIG_SHOW_BOOT_PROGRESS 1
 
-#define MV_KERNEL_ADDR_RAM     "0x00100000"
-#define MV_DTB_ADDR_RAM                "0x00600000"
-#define MV_INITRD_ADDR_RAM     "0x01000000"
+#define MV_KERNEL_ADDR_RAM     0x00100000
+#define MV_DTB_ADDR_RAM                0x00600000
+#define MV_INITRD_ADDR_RAM     0x01000000
 
 #define CONFIG_BOOTCOMMAND     "if imi ${autoscr_addr}; \
                                        then autoscr ${autoscr_addr};  \
 
 #define CONFIG_EXTRA_ENV_SETTINGS                              \
        "console_nr=0\0"                                        \
+       "baudrate=" MK_STR(CONFIG_BAUDRATE) "\0"                \
        "stdin=serial\0"                                        \
        "stdout=serial\0"                                       \
        "stderr=serial\0"                                       \
        "fpga=0\0"                                              \
-       "fpgadata=" MV_FPGA_DATA "\0"                           \
-       "fpgadatasize=" MV_FPGA_SIZE "\0"                       \
-       "autoscr_addr=" MV_AUTOSCR_ADDR "\0"                    \
-       "autoscr_addr2=" MV_AUTOSCR_ADDR2 "\0"                  \
-       "mv_kernel_addr=" MV_KERNEL_ADDR "\0"                   \
-       "mv_kernel_addr_ram=" MV_KERNEL_ADDR_RAM "\0"           \
-       "mv_initrd_addr=" MV_INITRD_ADDR "\0"                   \
-       "mv_initrd_addr_ram=" MV_INITRD_ADDR_RAM "\0"           \
-       "mv_initrd_length=" MV_INITRD_LENGTH "\0"               \
-       "mv_dtb_addr=" MV_DTB_ADDR "\0"                         \
-       "mv_dtb_addr_ram=" MV_DTB_ADDR_RAM "\0"                 \
-       "dtb_name=" MV_DTB_NAME "\0"                            \
+       "fpgadata=" MK_STR(MV_FPGA_DATA) "\0"                   \
+       "fpgadatasize=" MK_STR(MV_FPGA_SIZE) "\0"               \
+       "autoscr_addr=" MK_STR(MV_AUTOSCR_ADDR) "\0"            \
+       "autoscr_addr2=" MK_STR(MV_AUTOSCR_ADDR2) "\0"          \
+       "mv_kernel_addr=" MK_STR(MV_KERNEL_ADDR) "\0"           \
+       "mv_kernel_addr_ram=" MK_STR(MV_KERNEL_ADDR_RAM) "\0"   \
+       "mv_initrd_addr=" MK_STR(MV_INITRD_ADDR) "\0"           \
+       "mv_initrd_addr_ram=" MK_STR(MV_INITRD_ADDR_RAM) "\0"   \
+       "mv_initrd_length=" MK_STR(MV_INITRD_LENGTH) "\0"       \
+       "mv_dtb_addr=" MK_STR(MV_DTB_ADDR) "\0"                 \
+       "mv_dtb_addr_ram=" MK_STR(MV_DTB_ADDR_RAM) "\0"         \
+       "dtb_name=" MK_STR(MV_DTB_NAME) "\0"                    \
        "mv_version=" U_BOOT_VERSION "\0"                       \
-       "dhcp_client_id=" MV_CI "\0"                            \
-       "dhcp_vendor-class-identifier=" MV_VCI "\0"             \
+       "dhcp_client_id=" MK_STR(MV_CI) "\0"                    \
+       "dhcp_vendor-class-identifier=" MK_STR(MV_VCI) "\0"     \
        "netretry=no\0"                                         \
        "use_static_ipaddr=no\0"                                \
        "static_ipaddr=192.168.90.10\0"                         \
        "gevss_debug=0\0"                                       \
        "watchdog=0\0"                                          \
        "usb_dr_mode=host\0"                                    \
+       "sensor_cnt=2\0"                                        \
        ""
 
 #define CONFIG_FPGA_COUNT      1