Skip to contentSkip to conversation

add xt25f32b, which is soldered down to Rock Pi 4b

PATCH In review Adam Joseph 2 participants 2 messages Nov 11, 2022 – Dec 14, 2022 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add xt25f32b, which is soldered down to Rock Pi 4b

With the attached patch, plus (only) the DTSI and defconfig patch from armbian [1], mainline uboot gets at least as far as the TPL on the Rock Pi 4B booting from the soldered-down SPI flash.

[1]
https://raw.githubusercontent.com/armbian/build/master/patch/u-boot/u-boot-rockchip64/board-rock-pi-4-enable-spi-flash.patch

From ca3cc8fefb201bf33a6a6d319d9801b9d892ef21 Mon Sep 17 00:00:00 2001
From: Adam Joseph <[email protected]>
Date: Fri, 11 Nov 2022 03:54:18 -0800
Subject: [PATCH] drivers/mtd/spi/spi-nor-ids.c: add xt25f32b

This chip is soldered to the Rock Pi 4B.

Values are adapted from this kernel patch:

https://lore.kernel.org/lkml/[email protected]/T/

---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +1 -0
index 5f8f3ec9..5d270bef 100644
@@ -459,6 +459,7 @@ const struct flash_info spi_nor_ids[] = {
 #endif
 #ifdef CONFIG_SPI_FLASH_XTX
 	/* XTX Technology (Shenzhen) Limited */
+	{ INFO("xt25f32b",  0x0b4016, 0, 64 * 1024,  64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ INFO("xt25f128b", 0x0b4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 #endif
 	{ },
Signature · 1 line
2.38.1