From: Stefan Roese Date: Fri, 7 Nov 2014 12:50:34 +0000 (+0100) Subject: arm: socfpga: Add Designware (DW) SPI support to config header X-Git-Tag: v2015.01-rc4~24^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6e7359181637f8186d1c1fe7acb442a263e8c40;p=pandora-u-boot.git 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 Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc: Pavel Machek --- diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 2b7534b9362..afe363c5368 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -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 */