diff options
Diffstat (limited to 'arch/arm/mach-socfpga/clock_manager_gen5.c')
| -rw-r--r-- | arch/arm/mach-socfpga/clock_manager_gen5.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/arch/arm/mach-socfpga/clock_manager_gen5.c b/arch/arm/mach-socfpga/clock_manager_gen5.c index a23f3fc5d01..3d048ba3e43 100644 --- a/arch/arm/mach-socfpga/clock_manager_gen5.c +++ b/arch/arm/mach-socfpga/clock_manager_gen5.c @@ -6,6 +6,7 @@  #include <common.h>  #include <asm/io.h> +#include <dm.h>  #include <asm/arch/clock_manager.h>  #include <wait_bit.h> @@ -507,6 +508,14 @@ unsigned int cm_get_spi_controller_clk_hz(void)  	return clock;  } +/* Override weak dw_spi_get_clk implementation in designware_spi.c driver */ +int dw_spi_get_clk(struct udevice *bus, ulong *rate) +{ +	*rate = cm_get_spi_controller_clk_hz(); + +	return 0; +} +  void cm_print_clock_quick_summary(void)  {  	printf("MPU       %10ld kHz\n", cm_get_mpu_clk_hz() / 1000); | 
