1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
From cfa5ed4234c8476cf00c5545bb91c48a10518c39 Mon Sep 17 00:00:00 2001
From: Mathew Blowers <mathew.blowers@raspberrypi.com>
Date: Tue, 11 Aug 2026 16:16:19 +0100
Subject: [PATCH] flashchips: Add AT25EU0161A
Datasheet: https://www.renesas.com/en/document/dst/at25eu0161a-datasheet
Tested: probe, read, write and erase
Tested-with: Raspberry Pi 5
https://paste.flashrom.org/view.php?id=3887
Change-Id: Ie9122a26e94a309e1879763ac3bd414622f8ec52
Signed-off-by: Mathew Blowers <mathew.blowers@raspberrypi.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/94906
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Abdelkader Boudih <coreboot@seuros.com>
---
flashchips/atmel.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
include/flashchips.h | 1 +
2 files changed, 45 insertions(+)
--- a/flashchips/atmel.c
+++ b/flashchips/atmel.c
@@ -514,6 +514,50 @@
{
.vendor = "Atmel",
+ .name = "AT25EU0161A",
+ .bustype = BUS_SPI,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT25EU0161A,
+ .total_size = 2048,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {256, 8192} },
+ .block_erase = SPI_BLOCK_ERASE_81,
+ }, {
+ .eraseblocks = { {256, 8192} },
+ .block_erase = SPI_BLOCK_ERASE_DB,
+ }, {
+ .eraseblocks = { {4 * 1024, 512} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 64} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 32} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {2048 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {2048 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
+ .unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {1650, 3600},
+ },
+
+ {
+ .vendor = "Atmel",
.name = "AT25EU0041A",
.bustype = BUS_SPI,
.manufacture_id = ATMEL_ID,
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -132,6 +132,7 @@
#define ATMEL_AT25DQ161 0x8600 /* EDI 0x0100 */
#define ATMEL_AT25DQ321 0x8700 /* EDI 0x0100 */
#define ATMEL_AT25EU0041A 0x1401
+#define ATMEL_AT25EU0161A 0x1601
#define ATMEL_AT25F512 0x60 /* Needs AT25F_RDID. ID from PCN and actual HW. Seems to be a relabeled AT25F1024. */
#define ATMEL_AT25F512A 0x65 /* Needs AT25F_RDID */
#define ATMEL_AT25F512B 0x6500
|