diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-13 12:04:03 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-13 12:04:03 +0000 |
commit | 7aabadaae2d1c6edfc9fdb4a743e86dad47ba4ba (patch) | |
tree | 66c9108eda2f0f7129f2ba55b9cb757414d9466a /Makefile | |
parent | 27be324db3e5dd789ffaaf4bb51833733b7bbc1b (diff) | |
download | flashrom-7aabadaae2d1c6edfc9fdb4a743e86dad47ba4ba.zip flashrom-7aabadaae2d1c6edfc9fdb4a743e86dad47ba4ba.tar.gz |
Every SPI host controller implemented its own way to read flash chips
This was partly due to a design problem in the abstraction layer.
There should be exactly two different functions for reading SPI chips:
- memory mapped reads
- SPI command reads.
Each of them should be contained in a separate function, optionally
taking parameters where needed.
This patch solves the problems mentioned above, shortens the code and
makes the code logic a lot more obvious.
Since open-coding the min() function leads to errors, include it in this
patch as well.
Corresponding to flashrom svn r589.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions