mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: x86: spi: Convert ICH SPI driver to driver model
Convert this driver over to use driver model. Since all x86 platforms use it, move x86 to use driver model for SPI and SPI flash. Adjust all dependent code and remove the old x86 spi_init() function. Note that this does not make full use of the new PCI uclass as yet. We still scan the bus looking for the device. It should move to finding its details in the device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8d987abc6a
commit
ba4575626e
8 changed files with 296 additions and 284 deletions
|
@ -20,7 +20,7 @@ __packed struct mrc_data_container {
|
|||
};
|
||||
|
||||
struct fmap_entry;
|
||||
struct spi_flash;
|
||||
struct udevice;
|
||||
|
||||
/**
|
||||
* mrccache_find_current() - find the latest MRC cache record
|
||||
|
@ -45,7 +45,7 @@ struct mrc_data_container *mrccache_find_current(struct fmap_entry *entry);
|
|||
* @return 0 if updated, -EEXIST if the record is the same as the latest
|
||||
* record, other error if SPI write failed
|
||||
*/
|
||||
int mrccache_update(struct spi_flash *sf, struct fmap_entry *entry,
|
||||
int mrccache_update(struct udevice *sf, struct fmap_entry *entry,
|
||||
struct mrc_data_container *cur);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue