提交 5c65ad12 编写于 作者: B Biju Das 提交者: Geert Uytterhoeven

arm64: dts: renesas: rzg2lc-smarc: Use SW_SD0_DEV_SEL macro for eMMC/SDHI device selection

This patch replaces EMMC/SDHI macros with SW_SD0_DEV_SEL DIP-Switch
macro for eMMC/SDHI device selection.
Signed-off-by: NBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20220204143132.3608-1-biju.das.jz@bp.renesas.comSigned-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
上级 46da6327
...@@ -8,16 +8,6 @@ ...@@ -8,16 +8,6 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h> #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
/* SW1[2] should be at OFF position to enable 64 GB eMMC */
#define EMMC 1
/*
* To enable uSD card on CN3,
* SW1[2] should be at ON position.
* Disable eMMC by setting "#define EMMC 0" above.
*/
#define SDHI (!EMMC)
/ { / {
aliases { aliases {
ethernet0 = &eth0; ethernet0 = &eth0;
...@@ -185,7 +175,7 @@ ...@@ -185,7 +175,7 @@
}; };
}; };
#if SDHI #if (!SW_SD0_DEV_SEL)
&sdhi0 { &sdhi0 {
pinctrl-0 = <&sdhi0_pins>; pinctrl-0 = <&sdhi0_pins>;
pinctrl-1 = <&sdhi0_pins_uhs>; pinctrl-1 = <&sdhi0_pins_uhs>;
...@@ -200,7 +190,7 @@ ...@@ -200,7 +190,7 @@
}; };
#endif #endif
#if EMMC #if SW_SD0_DEV_SEL
&sdhi0 { &sdhi0 {
pinctrl-0 = <&sdhi0_emmc_pins>; pinctrl-0 = <&sdhi0_emmc_pins>;
pinctrl-1 = <&sdhi0_emmc_pins>; pinctrl-1 = <&sdhi0_emmc_pins>;
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
* Please change below macros according to SW1 setting * Please change below macros according to SW1 setting
*/ */
#define SW_SD0_DEV_SEL 1
#define SW_SCIF_CAN 0 #define SW_SCIF_CAN 0
#if (SW_SCIF_CAN) #if (SW_SCIF_CAN)
/* Due to HW routing, SW_RSPI_CAN is always 0 when SW_SCIF_CAN is set to 1 */ /* Due to HW routing, SW_RSPI_CAN is always 0 when SW_SCIF_CAN is set to 1 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册