Skip to content

Commit 26e73f4

Browse files
committed
include/configs/zynq-common: Add variable to support all versions of Pluto
Signed-off-by: Michael Hennerich <[email protected]>
1 parent 1373a64 commit 26e73f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/configs/zynq-common.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
"fdt_high=0x20000000\0" \
257257
"initrd_high=0x20000000\0" \
258258
"bootenv=uEnv.txt\0" \
259+
"maxcpus=1\0" \
259260
"clear_reset_cause=mw f8000008 df0d && mw f8000258 00400000 && mw f8000004 767b\0" \
260261
"loadbootenv=load mmc 0 ${loadbootenv_addr} ${bootenv}\0" \
261262
"importbootenv=echo Importing environment from SD ...; " \
@@ -288,14 +289,14 @@
288289
"if run adi_loadvals; then " \
289290
"echo Loaded AD936x refclk frequency and model into devicetree; " \
290291
"fi; " \
291-
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=1 rootfstype=ramfs root=/dev/ram0 rw earlyprintk uboot=\"${uboot-version}\" && " \
292+
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw earlyprintk uboot=\"${uboot-version}\" && " \
292293
"bootm ${fit_load_address}#${fit_config}\0" \
293294
"qspiboot_verbose=adi_hwref;echo Copying Linux from QSPI flash to RAM... && " \
294295
"run read_sf && " \
295296
"if run adi_loadvals; then " \
296297
"echo Loaded AD936x refclk frequency and model into devicetree; " \
297298
"fi; " \
298-
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=1 rootfstype=ramfs root=/dev/ram0 rw earlyprintk uboot=\"${uboot-version}\" && " \
299+
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw earlyprintk uboot=\"${uboot-version}\" && " \
299300
"bootm ${fit_load_address}#${fit_config} || echo BOOT failed entering DFU mode ... && run dfu_sf \0" \
300301
"qspiboot=set stdout nulldev;adi_hwref;test -n $PlutoRevA || gpio input 14 && set stdout serial@e0001000 && run dfu_sf; " \
301302
"set stdout serial@e0001000;" \
@@ -305,7 +306,7 @@
305306
"itest *f8000258 == 480002 && run clear_reset_cause && exit; " \
306307
"echo Booting silently && set stdout nulldev; " \
307308
"run read_sf && run adi_loadvals; " \
308-
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=1 rootfstype=ramfs root=/dev/ram0 rw quiet loglevel=4 uboot=\"${uboot-version}\" && " \
309+
"envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw quiet loglevel=4 uboot=\"${uboot-version}\" && " \
309310
"bootm ${fit_load_address}#${fit_config} || set stdout serial@e0001000;echo BOOT failed entering DFU mode ... && run dfu_sf \0" \
310311
"jtagboot=env default -a;sf probe && sf protect unlock 0 100000 && run dfu_sf; \0" \
311312
"uenvboot=" \

0 commit comments

Comments
 (0)