diff options
author | Tom Rini <trini@konsulko.com> | 2015-04-20 09:13:52 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-20 09:13:52 -0400 |
commit | 1733259d25015c28c47990ec11af99b3f62f811c (patch) | |
tree | 654c376440e5b01603e88dc22047d657f635def7 /drivers/video/ipu_common.c | |
parent | 791a9f67f4f8db512cf59b40f47544fb335cd8db (diff) | |
parent | fc1a79d95e9038e9cf53f99c1825005b4dfaf7f4 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'drivers/video/ipu_common.c')
-rw-r--r-- | drivers/video/ipu_common.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c index 5873531953..9f85102915 100644 --- a/drivers/video/ipu_common.c +++ b/drivers/video/ipu_common.c @@ -210,9 +210,13 @@ static struct clk ipu_clk = { .usecount = 0, }; +#if !defined CONFIG_SYS_LDB_CLOCK +#define CONFIG_SYS_LDB_CLOCK 65000000 +#endif + static struct clk ldb_clk = { .name = "ldb_clk", - .rate = 65000000, + .rate = CONFIG_SYS_LDB_CLOCK, .usecount = 0, }; @@ -1194,3 +1198,11 @@ ipu_color_space_t format_to_colorspace(uint32_t fmt) } return RGB; } + +/* should be removed when clk framework is availiable */ +int ipu_set_ldb_clock(int rate) +{ + ldb_clk.rate = rate; + + return 0; +} |