soc/apollolake/memmap: Switch to SIMPLE_DEVICE API
memmap.c functionality is designed to be used in more than ramstage. Therefore, it cannot use ramstage-specific APIs. In this case, the SIMPLE_DEVICE API offers a more consistent behavior across stages. Change-Id: Ic381fe1eb773fb0a5fb5887eb67d2228d2f0817d Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc@intel.com> Reviewed-on: https://review.coreboot.org/14953 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
1285598a99
commit
bbac5ace53
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,14 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
/*
|
||||
* The device_t returned by dev_find_slot() is different than the device_t
|
||||
* passed to pci_write_config32(). If one needs to get access to the config.h
|
||||
* of a device and perform i/o things are incorrect. One is a pointer while
|
||||
* the other is a 32-bit integer.
|
||||
*/
|
||||
#define __SIMPLE_DEVICE__
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <cbmem.h>
|
||||
#include <device/pci.h>
|
||||
|
|
Loading…
Reference in a new issue