cgtqmx6eval: fix pad configuration for SPI bus
PATCH 1/1 cgtqmx6eval: fix pad configuration for SPI bus
Use the macro SETUP_IOMUX_PAD(...) rather than imx_iomux_v3_setup_multiple_pads(...) in order to setup the pin configuration for ECSPI1.
ARRAY_SIZE(pads) provides the wrong size for imx_iomux_v3_setup_multiple_pads(pads, ARRAY_SIZE(pads)) in case of MX6QDL. In the particular case, the content of GPR12 is overwritten and the IPG/AHB/ATB/ATP clocks are deactivated. Therefore, the connection to the system via JTAG is not possible anymore. Furthermore, kernel version 3.0.35 hangs during bootprocess in the function etm_init().
---
board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/congatec/cgtqmx6eval/cgtqmx6eval.c +1 -1
@@ -404,7 +404,7 @@ static void setup_iomux_uart(void)#ifdef CONFIG_MXC_SPI static void setup_spi (void ) { -imx_iomux_v3_setup_multiple_pads (ecspi1_pads,ARRAY_SIZE (ecspi1_pads)); +SETUP_IOMUX_PADS (ecspi1_pads);gpio_direction_output (IMX_GPIO_NR (3 ,19 ),0 ); }#endif
Signature · 1 line
1.9.1
PATCH 1/1 cgtqmx6eval: fix pad configuration for SPI bus
Quoted 9 lines · Michael Schanz
Use the macro
SETUP_IOMUX_PAD(...)rather thanimx_iomux_v3_setup_multiple_pads(...)in order to setup the pin configuration for ECSPI1.
ARRAY_SIZE(pads)provides the wrong size forimx_iomux_v3_setup_multiple_pads(pads, ARRAY_SIZE(pads))in case of MX6QDL. In the particular case, the content of GPR12 is overwritten and the IPG/AHB/ATB/ATP clocks are deactivated. Therefore, the connection to the system via JTAG is not possible anymore. Furthermore, kernel version 3.0.35 hangs during bootprocess in the functionetm_init().Signed-off-by Michael Schanz <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 1/1 cgtqmx6eval: fix pad configuration for SPI bus
In reply to Michael SchanzQuoted 10 lines · Michael Schanz
Use the macro
SETUP_IOMUX_PAD(...)rather thanimx_iomux_v3_setup_multiple_pads(...)in order to setup the pin configuration for ECSPI1.
ARRAY_SIZE(pads)provides the wrong size forimx_iomux_v3_setup_multiple_pads(pads, ARRAY_SIZE(pads))in case of MX6QDL. In the particular case, the content of GPR12 is overwritten and the IPG/AHB/ATB/ATP clocks are deactivated. Therefore, the connection to the system via JTAG is not possible anymore. Furthermore, kernel version 3.0.35 hangs during bootprocess in the functionetm_init().Signed-off-by Michael Schanz <[email protected]>---
Applied to u-boot-imx, thanks!
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================