From c107eaca3dea42be89f61690d0d6cb2181acb147 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 18 Oct 2013 08:44:44 -0700 Subject: [PATCH] tegra124 and nyan: fill in the devicetree a bit more, add defines Still working on getting it all, but this is a start. BUG=None TEST=Builds BRANCH=None Change-Id: I0e3eedd45bb056644a92c85405fde5f2ac748252 Signed-off-by: Ronald G. Minnich Reviewed-on: https://chromium-review.googlesource.com/173684 Reviewed-by: Ronald Minnich Tested-by: Ronald Minnich Commit-Queue: Ronald Minnich --- src/mainboard/google/nyan/devicetree.cb | 27 +++++++++++++++++++ .../nvidia/tegra124/include/soc/addressmap.h | 2 ++ 2 files changed, 29 insertions(+) diff --git a/src/mainboard/google/nyan/devicetree.cb b/src/mainboard/google/nyan/devicetree.cb index 435e811d62..09ce399da8 100644 --- a/src/mainboard/google/nyan/devicetree.cb +++ b/src/mainboard/google/nyan/devicetree.cb @@ -19,7 +19,34 @@ chip soc/nvidia/tegra124 device cpu_cluster 0 on end +# N.B. We ae not using the device tree in an effective way. +# We need to change this in future such that the on-soc +# devices are 'chips', which will allow us to go at them +# in parallel. This is even easier on the ARM SOCs since there +# are no single-access resources such as the infamous +# cf8/cfc registers found on PCs. + register "display_controller" = "TEGRA_ARM_DISPLAYA" register "xres" = "2560" register "yres" = "1600" register "framebuffer_bits_per_pixel" = "24" + register "cache_policy" = "DCACHE_WRITETHROUGH" + # still trying to find these, but they'll be left untouched + # since they are zero (for now). + register "backlight_en_gpio" = "GPIO(H2)" + register "lvds_shutdown_gpio" = "0" + register "backlight_vdd_gpio" = "0" + register "panel_vdd_gpio" = "GPIO(O4)" + + register "pwm" = "-1" + +# taken from u-boot; these look wrong however. + register "vdd_delay" = "400" + register "vdd_data_delay" = "4" + register "data_backlight_delay" = "203" + register "backlight_pwm_delay" = "17" + register "pwm_backlight_en_delay" = "15" + + # we don't know any values save these at present. + register "href_to_sync" = "1" + register "vref_to_sync" = "1" end diff --git a/src/soc/nvidia/tegra124/include/soc/addressmap.h b/src/soc/nvidia/tegra124/include/soc/addressmap.h index ec73f46ffa..085ae60521 100644 --- a/src/soc/nvidia/tegra124/include/soc/addressmap.h +++ b/src/soc/nvidia/tegra124/include/soc/addressmap.h @@ -28,6 +28,8 @@ enum { enum { TEGRA_ARM_PERIPHBASE = 0x50040000, + TEGRA_ARM_DISPLAYA = 0x54200000, + TEGRA_ARM_DISPLAYB = 0x54240000, TEGRA_PG_UP_BASE = 0x60000000, TEGRA_TMRUS_BASE = 0x60005010, TEGRA_CLK_RST_BASE = 0x60006000,