forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Original-Subject: spi-nor: Add support for xt25f32b/xt25f128b The RockPi4b dev board ship with xt25f32b solded. add these ids so the board's spi flash can be accessed within linux. Signed-off-by: microcai <microcaicai@gmail.com> X-Armbian: Patch-File: general-add-xtx-spi-nor-chips X-Armbian: Patch-File-Counter: 1 X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1 X-Armbian: Patch-Type: kernel X-Armbian: Patch-Root-Type: core X-Armbian: Patch-Sub-Type: common X-Armbian: Original-Subject: spi-nor: Add support for xt25f32b/xt25f128b
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Copyright (C) 2005, Intec Automation Inc. | ||
* Copyright (C) 2014, Freescale Semiconductor, Inc. | ||
*/ | ||
|
||
#include <linux/mtd/spi-nor.h> | ||
|
||
#include "core.h" | ||
|
||
static const struct flash_info xtx_parts[] = { | ||
/* XTX (Shenzhen Xin Tian Xia Tech) */ | ||
{ "xt25f32b", INFO(0x0b4016, 0, 64 * 1024, 64) }, | ||
{ "xt25f128b", INFO(0x0b4018, 0, 64 * 1024, 256) }, | ||
}; | ||
|
||
const struct spi_nor_manufacturer spi_nor_xtx = { | ||
.name = "xtx", | ||
.parts = xtx_parts, | ||
.nparts = ARRAY_SIZE(xtx_parts), | ||
}; |