From: Nan Li Date: Wed, 30 May 2018 05:41:16 +0000 (+0800) Subject: sd: add sd_uart support on g12b X-Git-Tag: khadas-vims-v0.9.6-release~1836 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56ce93b04855b1570b3740c758045f0b23c8fcc8;p=platform%2Fkernel%2Flinux-amlogic.git sd: add sd_uart support on g12b PD#165090: add sd_uart support on g12b. Change-Id: Iee7c7a4ec0b2e5269561179779a6eeb3296f80d7 Signed-off-by: Nan Li --- diff --git a/arch/arm64/boot/dts/amlogic/mesong12b.dtsi b/arch/arm64/boot/dts/amlogic/mesong12b.dtsi index 5bc7c06..a5af74c 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12b.dtsi @@ -1404,9 +1404,23 @@ interrupts = <0 190 1>; pinctrl-names = "sd_all_pins", - "sd_clk_cmd_pins"; + "sd_clk_cmd_pins", + "sd_1bit_pins", + "sd_clk_cmd_uart_pins", + "sd_1bit_uart_pins", + "sd_to_ao_uart_pins", + "ao_to_sd_uart_pins", + "sd_to_ao_jtag_pins", + "ao_to_sd_jtag_pins"; pinctrl-0 = <&sd_all_pins>; pinctrl-1 = <&sd_clk_cmd_pins>; + pinctrl-2 = <&sd_1bit_pins>; + pinctrl-3 = <&sd_to_ao_uart_clr_pins + &sd_clk_cmd_pins &ao_to_sd_uart_pins>; + pinctrl-4 = <&sd_to_ao_uart_clr_pins + &sd_1bit_pins &ao_to_sd_uart_pins>; + pinctrl-5 = <&sd_all_pins &sd_to_ao_uart_pins>; + pinctrl-6 = <&sd_to_ao_uart_clr_pins &ao_to_sd_uart_pins>; clocks = <&clkc CLKID_SD_EMMC_B>, <&clkc CLKID_SD_EMMC_B_P0_COMP>, diff --git a/include/linux/amlogic/amlsd.h b/include/linux/amlogic/amlsd.h index f4177b1..0aaee6d 100644 --- a/include/linux/amlogic/amlsd.h +++ b/include/linux/amlogic/amlsd.h @@ -43,7 +43,7 @@ extern const u8 tuning_blk_pattern_8bit[128]; #define MODULE_NAME "amlsd" /* #define CARD_DETECT_IRQ 1 */ #define AML_MMC_TDMA 1 -//#define SD_EMMC_DEBUG_BOARD 1 +#define SD_EMMC_DEBUG_BOARD 1 #if 0 #define A0_GP_CFG0 (0xc8100240)