Alexey Zaytsev
a1572e0ab0
Modify gPXE core and drivers to work with the new timer subsystem
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com >
пре 16 година
Michael Brown
ca41159f57
Ensure clock line is in the idle state before asserting chip select.
пре 17 година
Udayan Kumar
c6d0ef3478
added endianness to natsemi.
пре 17 година
Udayan Kumar
623d10c66f
debugging natsemi.c
пре 17 година
Michael Brown
95cb7aaacf
Support cards such as natsemi which treat the data as little-endian
(i.e. LSB transmitted first on the wire), even though SPI commands and
addresses always have to be big-endian.
пре 17 година
Michael Brown
946967f09c
Abstracted out part of the concept of an SPI device to a generalised NVS
device.
Separated the mechanisms of non-volatile storage access and non-volatile
stored options.
пре 18 година
Michael Brown
dc06c895fc
Changed length parameter in SPI methods to be a byte length, rather than
a word length.
пре 18 година
Michael Brown
931f94dca3
Generalised the SPI abstraction layer to also be able to handle interfaces
that don't provide the full flexibility of a bit-bashing interface.
Temporarily hacked rtl8139.c to use the new interface.
пре 18 година
Michael Brown
88e38fa148
We don't actually have a stdio.h header file. Our printf() functions are
defined in vsprintf.h. (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)
There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.
пре 18 година
Marty Connor
6ac78f6aff
added stdio.h to includes for DBG compilation
пре 18 година
Michael Brown
3b51c719d3
Generalise three-wire interface to generic SPI interface.
Update rtl8139 driver to instantiate an SPI interface with a three-wire
device attached.
пре 18 година
Michael Brown
ab4f96e525
Move per-transition delays from generic bit-bashing layer to i2c layer
(since SPI bit-bashing will require different delay semantics).
пре 18 година
Michael Brown
51a36f1cfb
Change read_bit() to return 0 or -1UL, rather than 0 or 1.
пре 18 година
Michael Brown
3ed40686c9
Added bit-bashing i2c interface code
пре 18 година
Michael Brown
e90b64d625
Added sketch of bit-bashing interface common code
пре 18 година