* [U-Boot] [PATCH v2] video, ipu: make ldb_clock configurable
@ 2015-04-20 5:52 Heiko Schocher
2015-04-20 7:39 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2015-04-20 5:52 UTC (permalink / raw)
To: u-boot
make the ldb_clock configurable through the new define
CONFIG_SYS_LDB_CLOCK. This is needed as the ldb clock is not
always 650000000, for example on the aristainetos2 board,
where the ldb clock derives from PLL5 clock.
Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
Changes in v2:
- add comment from Eric Nelson
check CONFIG_SYS_LDB_CLOCK default value
- add Tested-by from Eric Nelson
drivers/video/ipu_common.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c
index 5873531..8ebb205 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,
};
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH v2] video, ipu: make ldb_clock configurable
2015-04-20 5:52 [U-Boot] [PATCH v2] video, ipu: make ldb_clock configurable Heiko Schocher
@ 2015-04-20 7:39 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2015-04-20 7:39 UTC (permalink / raw)
To: u-boot
On Mon, 20 Apr 2015 07:52:21 +0200
Heiko Schocher <hs@denx.de> wrote:
> make the ldb_clock configurable through the new define
> CONFIG_SYS_LDB_CLOCK. This is needed as the ldb clock is not
> always 650000000, for example on the aristainetos2 board,
> where the ldb clock derives from PLL5 clock.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
applied to u-boot-video/master. Thanks!
--
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-20 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-20 5:52 [U-Boot] [PATCH v2] video, ipu: make ldb_clock configurable Heiko Schocher
2015-04-20 7:39 ` Anatolij Gustschin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.