All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Joseph <adam@westernsemico.com>
To: u-boot@lists.denx.de
Subject: [PATCH] add xt25f32b, which is soldered down to Rock Pi 4b
Date: Fri, 11 Nov 2022 04:03:13 -0800	[thread overview]
Message-ID: <20221111040313.5a711ec2@conway> (raw)

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

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

[-- Attachment #2: 0001-drivers-mtd-spi-spi-nor-ids.c-add-xt25f32b.patch --]
[-- Type: text/x-patch, Size: 1008 bytes --]

From ca3cc8fefb201bf33a6a6d319d9801b9d892ef21 Mon Sep 17 00:00:00 2001
From: Adam Joseph <adam@westernsemico.com>
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/20220201002535.2186484-1-dev.linux@crtified.me/T/
---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index 5f8f3ec9..5d270bef 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -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
 	{ },
-- 
2.38.1


             reply	other threads:[~2022-11-11 15:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 12:03 Adam Joseph [this message]
2022-12-14 15:45 ` [PATCH] add xt25f32b, which is soldered down to Rock Pi 4b Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221111040313.5a711ec2@conway \
    --to=adam@westernsemico.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.