commit | 168a3dacbe5c54b676fe6f3aa2a83541b7bb9122 | [log] [tgz] |
---|---|---|
author | Jes B. Klinke <jbk@chromium.org> | Fri Feb 10 23:06:40 2023 -0800 |
committer | cfrantz <frantzcj+github@gmail.com> | Thu Mar 09 13:25:12 2023 -0800 |
tree | 2ae1ca0df1c78d7705d91b7b76e2e0e64b27c32d | |
parent | 51cec356b99dbe0f4bd2d1d3e54611ded296eb18 [diff] |
[opentitantool] Eeprom primitives in Spi trait This PR introduces a new method on the spi::Target trait, for doing SPI transactions following the EEPROM format, that is, consisting of a few bytes of command/address, followed by a chuck of data to be either read or written, optionally followed by repeated polling a status bit, to see if the operation is complete. A default implementation of the new method is provided for transport backends which support generic SPI read/write transactions, in effect moving part of the code from the existing SpiFlash struct into the spi::Target trait. Going forward, transports that do not implement generic SPI transactions, but supports only EEPROM/Flash-style protocol, can provide their own implementation of the new trait method, and leave the existing generic Spi transaction method either unimplemented, or severely restricted. Signed-off-by: Jes B. Klinke <jbk@chromium.org> Change-Id: Ibc33c37e7200eccdea2b2b5a370b4cd924c50bdd
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).