Commit b0e209dc authored by Haikun Wang's avatar Haikun Wang Committed by York Sun

armv8/ls2085a: Enable DSPI get input clk form 'mxc_get_clock'

Signed-off-by: default avatarHaikun Wang <haikun.wang@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 193e7e5a
......@@ -180,6 +180,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
switch (clk) {
case MXC_I2C_CLK:
return get_bus_freq(0) / 2;
case MXC_DSPI_CLK:
return get_bus_freq(0) / 2;
default:
printf("Unsupported clock\n");
}
......
......@@ -16,6 +16,7 @@ enum mxc_clock {
MXC_UART_CLK,
MXC_ESDHC_CLK,
MXC_I2C_CLK,
MXC_DSPI_CLK,
};
unsigned int mxc_get_clock(enum mxc_clock clk);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment