summaryrefslogtreecommitdiffstats
path: root/src/soc/nvidia/tegra124/include/soc
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2014-04-08 20:03:40 +0800
committerMarc Jones <marc.jones@se-eng.com>2014-12-15 20:17:48 +0100
commit1a8e0af78b1886acc96d1e80be5871d287d148c5 (patch)
tree1019c994ddb15910833a59b5c11254105ce6e528 /src/soc/nvidia/tegra124/include/soc
parent0c9cc5ee3be406901a52a8151408bb13253bf39b (diff)
downloadcoreboot-1a8e0af78b1886acc96d1e80be5871d287d148c5.tar.gz
coreboot-1a8e0af78b1886acc96d1e80be5871d287d148c5.tar.bz2
coreboot-1a8e0af78b1886acc96d1e80be5871d287d148c5.zip
tegra124: Setup clock PLLD by approximating display panel pixel clock.
PLLD, the clock for display, was previously hard-coded to 306MHz. To support more different panels, we should calcualte PLLD by panel pixel clock configuration. Note existing pixel clock configurations for nyan* boards won't work (they used to rely on hard-coded approximated values) so the device trees are also modified. BRANCH=none BUG=chrome-os-partner:25933 TEST=emerge-nyan_big coreboot chromeos-bootimage See panel correctly initialized and got DEV screen. Original-Change-Id: I8d592f0cc044e7c4e4803c45955642e791210ad3 Original-Signed-off-by: Hung-Te Lin <hungte@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/193565 (cherry picked from commit 4f9b793633ebb2d104b0544e3b72fa0d105951c4) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: Ib2cabbad60af010e872505e888eab485ba8c2916 Reviewed-on: http://review.coreboot.org/7762 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia/tegra124/include/soc')
-rw-r--r--src/soc/nvidia/tegra124/include/soc/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra124/include/soc/clock.h b/src/soc/nvidia/tegra124/include/soc/clock.h
index 10cf2d8679df..aff6abe5056c 100644
--- a/src/soc/nvidia/tegra124/include/soc/clock.h
+++ b/src/soc/nvidia/tegra124/include/soc/clock.h
@@ -278,6 +278,7 @@ enum clock_source { /* Careful: Not true for all sources, always check TRM! */
#define TEGRA_PLLU_KHZ (960000)
int clock_get_osc_khz(void);
+int clock_display(u32 frequency);
void clock_early_uart(void);
void clock_external_output(int clk_id);
void clock_sdram(u32 m, u32 n, u32 p, u32 setup, u32 ph45, u32 ph90,