Skip to content

Commit

Permalink
configs: zynq-common: Fix SPI env update
Browse files Browse the repository at this point in the history
Because of an error in the check for compatible = ad9464 the SPI memory was
updated at each reboot. This patch fixes this issue and the deletion of the
2r2t property if the mode is set to 1r1t before this check.

Fixes: 469a0fd ("configs: zynq-common: Add environment configuration for RevC")
Signed-off-by: Mircea Caprioru <[email protected]>
  • Loading branch information
Mircea Caprioru authored and mhennerich committed Nov 3, 2020
1 parent af19d59 commit e1eb71f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/configs/zynq-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,13 @@
"if test -n ${cs_gpio}; then " \
"fdt set /amba/axi_quad_spi@7C430000/ cs-gpios \"<0x06 ${cs_gpio} 0>\"; " \
"fi; " \
"if test ${compatible} = ad9364 || test -n ${attr_val} = ad9364; then " \
"fdt rm /amba/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable; " \
"if test -n ${compatible} = ad9364 || test -n ${attr_val} = ad9364; then " \
"fdt set /fpga-axi/cf-ad9361-dds-core-lpc@79024000 compatible adi,axi-ad9364-dds-6.00.a; " \
"setenv mode 1r1t; " \
"saveenv; " \
"if test ! ${mode} = 1r1t; then " \
"fdt rm /amba/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable; " \
"setenv mode 1r1t; " \
"saveenv; " \
"fi; " \
"fi; \0" \
"qspiboot_extraenv=sf read ${extraenv_load_address} 0xFF000 0x1000 && " \
"env import -c ${extraenv_load_address} 0x1000 || true \0" \
Expand Down

0 comments on commit e1eb71f

Please sign in to comment.