Skip to content

Commit 4d983f5

Browse files
committed
ANDROID: riscv: configs: enable new SpacemiT K1 drivers
Enable the CONFIG_* symbols for the K1 drivers added in the preceding commits and update the inline TODO comments accordingly: * SOC: SPACEMIT_DDR_BW (DDR bandwidth monitor), SPACEMIT_K1X_DMA_RANGE (DRAM bus stub for interconnect), SPACEMIT_SOCINFO (SoC ID / revision exposed via sysfs). * NVMEM: NVMEM_SPACEMIT_EFUSE (on-die fuse banks). * RESET: POWER_RESET_SPACEMIT_K1X (SoC boot-mode reboot handler; already had POWER_RESET_SPACEMIT_P1 for the PMIC poweroff). Move the eFuse line out of the "Misc - Requires driver porting" TODO list since the driver is now in tree. Change-Id: Ibcc37a542be40663b3a8060a246d01a17af7d862 Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
1 parent 65bfb4c commit 4d983f5

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

arch/riscv/configs/spacemit_k1x.fragment

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ CONFIG_SPACEMIT_K1X_VIR_CAMERA=m
179179
# ============================================================
180180
# CONFIG_SPACEMIT_PM_DOMAINS=m
181181
# CONFIG_SPACEMIT_RF=m
182-
# CONFIG_SPACEMIT_DDR_BW=m
182+
CONFIG_SPACEMIT_DDR_BW=m
183+
# k1x dram-range stub: registers spacemit-dram-bus compatible so that
184+
# of_platform instantiates dram_range_* nodes (used by interconnect)
185+
CONFIG_SPACEMIT_K1X_DMA_RANGE=m
183186

184187
# ============================================================
185188
# Crypto - Requires driver porting from Buildroot
@@ -192,10 +195,15 @@ CONFIG_SPACEMIT_K1X_VIR_CAMERA=m
192195
# CONFIG_SPACEMIT_REMOTEPROC=m
193196
# CONFIG_SPACEMIT_MAILBOX=m
194197

198+
# ============================================================
199+
# eFuse / SoC info (ported from Buildroot)
200+
# ============================================================
201+
CONFIG_NVMEM_SPACEMIT_EFUSE=m
202+
CONFIG_SPACEMIT_SOCINFO=m
203+
195204
# ============================================================
196205
# Misc drivers - Requires driver porting from Buildroot
197206
# ============================================================
198-
# CONFIG_SPACEMIT_EFUSE=m
199207
# CONFIG_SPACEMIT_WATCHDOG=m
200208
# CONFIG_SPACEMIT_ADC=m
201209
# CONFIG_SPACEMIT_PWRKEY=m
@@ -215,6 +223,7 @@ CONFIG_RTC_DRV_SPACEMIT_P1=m
215223
CONFIG_REGULATOR_SPACEMIT_P1=m
216224

217225
# ============================================================
218-
# Reboot - spacemit-p1 already in Android kernel (module)
226+
# Reboot - p1 PMIC poweroff + k1x SoC boot-mode register
219227
# ============================================================
228+
CONFIG_POWER_RESET_SPACEMIT_K1X=m
220229
CONFIG_POWER_RESET_SPACEMIT_P1=m

0 commit comments

Comments
 (0)