Merge branch 'master' of git://git.denx.de/u-boot-spi

This commit is contained in:
Tom Rini
2016-07-11 18:50:29 -04:00
23 changed files with 464 additions and 131 deletions

View File

@@ -73,4 +73,10 @@
#define CONFIG_SF_DEFAULT_BUS 1
#define CONFIG_SF_DEFAULT_CS 0
#ifndef CONFIG_SPL_BUILD
#define CONFIG_CADENCE_QSPI
#define CONFIG_CQSPI_REF_CLK 384000000
#define CONFIG_CQSPI_DECODER 0x0
#endif
#endif /* __CONFIG_K2G_EVM_H */

View File

@@ -89,6 +89,10 @@
#define CONFIG_SYS_SPI2
#define CONFIG_SYS_SPI2_BASE KS2_SPI2_BASE
#define CONFIG_SYS_SPI2_NUM_CS 4
#ifdef CONFIG_SPL_BUILD
#undef CONFIG_DM_SPI
#undef CONFIG_DM_SPI_FLASH
#endif
/* Network Configuration */
#define CONFIG_PHYLIB

View File

@@ -466,6 +466,19 @@ fdt_addr_t dev_get_addr(struct udevice *dev);
*/
void *dev_get_addr_ptr(struct udevice *dev);
/**
* dev_map_physmem() - Read device address from reg property of the
* device node and map the address into CPU address
* space.
*
* @dev: Pointer to device
* @size: size of the memory to map
*
* @return mapped address, or NULL if the device does not have reg
* property.
*/
void *dev_map_physmem(struct udevice *dev, unsigned long size);
/**
* dev_get_addr_index() - Get the indexed reg property of a device
*