[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/1] hw: m25p80: add W# pin and SRWD bit for write protection
From: |
Iris Chen |
Subject: |
[PATCH 0/1] hw: m25p80: add W# pin and SRWD bit for write protection |
Date: |
Wed, 25 May 2022 19:11:42 -0700 |
From: Iris Chen <irischenlj@gmail.com>
Hey everyone,
My patch adds the W# pin and SRWD bit which work together to control the
status register write ability.
Accordingly, when W# is low and SRWD bit is high, hardware protection
mode (HPM) is initiated. All other cases result in software protection.
Acceptance tests have been added to verify all four scenarios: it tests
the ability to write to SRWD depending on whether write protection is
set.
Thanks,
Iris
Iris Chen (1):
hw: m25p80: add W# pin and SRWD bit for write protection
hw/block/m25p80.c | 72 +++++++++++++++++++++++++++++++++++
tests/qtest/aspeed_smc-test.c | 62 ++++++++++++++++++++++++++++++
2 files changed, 134 insertions(+)
--
2.30.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 0/1] hw: m25p80: add W# pin and SRWD bit for write protection,
Iris Chen <=