Correct SPL uses of CMD_CLK
This converts 7 usages of this option to the non-SPL form, since there is no SPL_CMD_CLK defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
38223fb23f
commit
8dd86205cc
5 changed files with 7 additions and 7 deletions
|
@ -308,7 +308,7 @@ enum k210_clk_flags {
|
||||||
* @gate: An &enum k210_gate_id of this clock's gate
|
* @gate: An &enum k210_gate_id of this clock's gate
|
||||||
*/
|
*/
|
||||||
struct k210_clk_params {
|
struct k210_clk_params {
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
const char *name;
|
const char *name;
|
||||||
#endif
|
#endif
|
||||||
u8 flags;
|
u8 flags;
|
||||||
|
@ -326,7 +326,7 @@ struct k210_clk_params {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct k210_clk_params k210_clks[] = {
|
static const struct k210_clk_params k210_clks[] = {
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
#define NAME(_name) .name = (_name),
|
#define NAME(_name) .name = (_name),
|
||||||
#else
|
#else
|
||||||
#define NAME(name)
|
#define NAME(name)
|
||||||
|
@ -1284,7 +1284,7 @@ U_BOOT_DRIVER(k210_clk) = {
|
||||||
.priv_auto = sizeof(struct k210_clk_priv),
|
.priv_auto = sizeof(struct k210_clk_priv),
|
||||||
};
|
};
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
static char show_enabled(struct k210_clk_priv *priv, int id)
|
static char show_enabled(struct k210_clk_priv *priv, int id)
|
||||||
{
|
{
|
||||||
bool enabled;
|
bool enabled;
|
||||||
|
|
|
@ -42,7 +42,7 @@ static int imx8_clk_enable(struct clk *clk)
|
||||||
return __imx8_clk_enable(clk, 1);
|
return __imx8_clk_enable(clk, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
int soc_clk_dump(void)
|
int soc_clk_dump(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|
|
@ -9,7 +9,7 @@ struct imx8_clks {
|
||||||
const char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
extern struct imx8_clks imx8_clk_names[];
|
extern struct imx8_clks imx8_clk_names[];
|
||||||
extern int num_clks;
|
extern int num_clks;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include "clk-imx8.h"
|
#include "clk-imx8.h"
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
struct imx8_clks imx8_clk_names[] = {
|
struct imx8_clks imx8_clk_names[] = {
|
||||||
{ IMX8QM_A53_DIV, "A53_DIV" },
|
{ IMX8QM_A53_DIV, "A53_DIV" },
|
||||||
{ IMX8QM_UART0_CLK, "UART0" },
|
{ IMX8QM_UART0_CLK, "UART0" },
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include "clk-imx8.h"
|
#include "clk-imx8.h"
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CMD_CLK)
|
#if IS_ENABLED(CONFIG_CMD_CLK)
|
||||||
struct imx8_clks imx8_clk_names[] = {
|
struct imx8_clks imx8_clk_names[] = {
|
||||||
{ IMX8QXP_A35_DIV, "A35_DIV" },
|
{ IMX8QXP_A35_DIV, "A35_DIV" },
|
||||||
{ IMX8QXP_I2C0_CLK, "I2C0" },
|
{ IMX8QXP_I2C0_CLK, "I2C0" },
|
||||||
|
|
Loading…
Reference in a new issue