mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-25 03:47:26 +00:00
arm: socfpga: Add Designware (DW) SPI support to config header
Enable support for the DW master SPI controller in the config header for the SoCFPGA. This controller can only be enabled, if DT support is enabled. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Vince Bridgers <vbridger@altera.com> Cc: Marek Vasut <marex@denx.de> Cc: Pavel Machek <pavel@denx.de>
This commit is contained in:
parent
369164042e
commit
a6e7359181
1 changed files with 12 additions and 0 deletions
|
@ -209,6 +209,18 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
|||
#define CONFIG_CMD_SF
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OF_CONTROL /* DW SPI is controlled via DT */
|
||||
#define CONFIG_CMD_DM
|
||||
#define CONFIG_DM
|
||||
#define CONFIG_DM_SPI
|
||||
#define CONFIG_DESIGNWARE_SPI
|
||||
#ifndef __ASSEMBLY__
|
||||
unsigned int cm_get_spi_controller_clk_hz(void);
|
||||
#define CONFIG_DW_SPI_REF_CLK cm_get_spi_controller_clk_hz()
|
||||
#endif
|
||||
#define CONFIG_CMD_SPI
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Serial Driver
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue