add zte k540 (#9)

This commit is contained in:
john doe
2024-02-05 03:12:38 +08:00
committed by GitHub
parent e93edc2f55
commit 1e914990f1
10 changed files with 309 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
diff --git a/kernel/sensors/t31/Kbuild b/kernel/sensors/t31/Kbuild
index caf668b..07367bb 100644
--- a/kernel/sensors/t31/Kbuild
+++ b/kernel/sensors/t31/Kbuild
@@ -18,3 +18,4 @@ include $(src)/sensors/$(SOC)/sc2336/Kbuild
include $(src)/sensors/$(SOC)/sc3338/Kbuild
include $(src)/sensors/$(SOC)/sc5235/Kbuild
include $(src)/sensors/$(SOC)/sc4236/Kbuild
+include $(src)/sensors/$(SOC)/sc4336/Kbuild

View File

@@ -0,0 +1,13 @@
diff --git a/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h b/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
index d9058e1271..b53c252c64 100644
--- a/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
+++ b/arch/mips/xburst/soc-t31/chip-t31/isvp/Swan/board.h
@@ -32,7 +32,7 @@
/* ****************************GPIO MMC START******************************** */
#define GPIO_MMC_RST_N -1
#define GPIO_MMC_RST_N_LEVEL LOW_ENABLE
-#define GPIO_MMC_CD_N GPIO_PB(27)
+#define GPIO_MMC_CD_N GPIO_PB(18)
#define GPIO_MMC_CD_N_LEVEL LOW_ENABLE
#define GPIO_MMC_PWR -1
#define GPIO_MMC_PWR_LEVEL HIGH_ENABLE