summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra210
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2016-09-02 23:14:54 +0200
committerMartin Roth <martinroth@google.com>2016-09-07 20:52:42 +0200
commit29fc9bb855cb878aee263cd1fe110e3bb3e98c80 (patch)
treeed7851f88b58378aa54afa56e755375da3684647 /src/soc/nvidia/tegra210
parent614ffc60cfd667dae63492d14af2abd50ce91b3e (diff)
downloadcoreboot-29fc9bb855cb878aee263cd1fe110e3bb3e98c80.tar.xz
commonlib: move DIV_ROUND macros from nvidia/tegra
DIV_ROUND_CLOSEST and DIV_ROUND_UP are useful macros for other architectures. This patch moves them from soc/nvidia/tegra/types.h to commonlib/include/commonlib/helpers.h . Change-Id: I54521d9b197934cef8e352f9a5c4823015d85f01 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/16415 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/nvidia/tegra210')
-rw-r--r--src/soc/nvidia/tegra210/addressmap.c1
-rw-r--r--src/soc/nvidia/tegra210/dsi.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra210/addressmap.c b/src/soc/nvidia/tegra210/addressmap.c
index e803e1b0a2..18bb08118c 100644
--- a/src/soc/nvidia/tegra210/addressmap.c
+++ b/src/soc/nvidia/tegra210/addressmap.c
@@ -15,6 +15,7 @@
#include <assert.h>
#include <arch/io.h>
+#include <commonlib/helpers.h>
#include <console/console.h>
#include <soc/addressmap.h>
#include <soc/id.h>
diff --git a/src/soc/nvidia/tegra210/dsi.c b/src/soc/nvidia/tegra210/dsi.c
index 3b771c9f4e..5504b4d994 100644
--- a/src/soc/nvidia/tegra210/dsi.c
+++ b/src/soc/nvidia/tegra210/dsi.c
@@ -32,6 +32,7 @@
#include <soc/tegra_dsi.h>
#include <soc/mipi-phy.h>
#include "jdi_25x18_display/panel-jdi-lpm102a188a.h"
+#include <commonlib/helpers.h>
struct tegra_mipi_device mipi_device_data[NUM_DSI];