summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra210/chip.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-06-22 19:41:29 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-06-30 21:43:01 +0200
commit40a3e321d4e8f2877de1700db67b8c7f7ea89820 (patch)
treeb8270b2ceb9e290d2e4e9a99868acb9cd335de6f /src/soc/nvidia/tegra210/chip.h
parent7f641e68f25c0b79960a97a6b265851c46298aae (diff)
nvidia/tegra210: add new SoC
This includes Chrome OS downstream up to Change-Id: Ic89ed54c. Change-Id: I81853434600390d643160fe57554495b2bfe60ab Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10633 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia/tegra210/chip.h')
-rw-r--r--src/soc/nvidia/tegra210/chip.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra210/chip.h b/src/soc/nvidia/tegra210/chip.h
new file mode 100644
index 0000000000..efce901cae
--- /dev/null
+++ b/src/soc/nvidia/tegra210/chip.h
@@ -0,0 +1,99 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2015 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc.
+ */
+
+#ifndef __SOC_NVIDIA_TEGRA210_CHIP_H__
+#define __SOC_NVIDIA_TEGRA210_CHIP_H__
+#include <soc/addressmap.h>
+#include <stdint.h>
+#include <soc/nvidia/tegra/dc.h>
+
+struct soc_nvidia_tegra210_config {
+ /* Address to monitor if spintable employed. */
+ uintptr_t spintable_addr;
+
+ /*
+ * panel resolution
+ * The two parameters below provides dc about panel spec.
+ */
+ u32 xres; /* the width of H display active area */
+ u32 yres; /* the height of V display active area */
+ u32 framebuffer_bits_per_pixel;
+ u32 color_depth; /* color format */
+
+ u64 display_controller; /* dc block base address */
+ u32 framebuffer_base;
+
+ /*
+ * Technically, we can compute this. At the same time, some platforms
+ * might want to specify a specific size for their own reasons. If it
+ * is zero the soc code will compute it as
+ * xres*yres*framebuffer_bits_per_pixel/8
+ */
+ u32 framebuffer_size;
+
+ /*
+ * Framebuffer resolution
+ * The two parameters below provides dc about framebuffer's sdram size.
+ * When they are not the same as panel resolution, we need to program
+ * dc's DDA_INCREMENT and some other registers to resize dc output.
+ */
+ u32 display_xres;
+ u32 display_yres;
+
+ int href_to_sync; /* HSYNC position with respect to line start */
+ int hsync_width; /* the width of HSYNC pulses */
+ int hback_porch; /* the distance between HSYNC trailing edge to
+ beginning of H display active area */
+ int hfront_porch; /* the distance between end of H display active
+ area to the leading edge of HSYNC */
+ int vref_to_sync;
+ int vsync_width;
+ int vback_porch;
+ int vfront_porch;
+ int refresh; /* display refresh rate */
+
+ int pixel_clock; /* dc pixel clock source rate */
+
+ u32 panel_bits_per_pixel;
+
+ /* dp specific fields */
+ struct {
+ /* pwm to use to set display contrast */
+ int pwm;
+
+ /* HPD related timing */
+ int vdd_to_hpd_delay_ms;
+ int hpd_unplug_min_us;
+ int hpd_plug_min_us;
+ int hpd_irq_min_us;
+
+ /* The minimum link configuraton settings */
+ u32 lane_count;
+ u32 enhanced_framing;
+ u32 link_bw;
+ u32 drive_current;
+ u32 preemphasis;
+ u32 postcursor;
+ } dp;
+
+ int win_opt;
+ void *dc_data;
+};
+
+#endif /* __SOC_NVIDIA_TEGRA210_CHIP_H__ */