From fa938c7508627c0dfcf03960957ef8631fc53f02 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Thu, 29 Aug 2013 14:17:36 -0700 Subject: exynos5: Refactor crazy old U-Boot base address macros away All this samsung_get_base_address_of_device_with_a_really_long_name() boilerplate makes my eyes bleed... I think there are so much cleaner ways to do this. Unfortunately changing this ends up touching nearly every Exynos5 file, but I hope you agree that it's worth it (and the sooner we get it over with, the better... I can't bring myself to make another device fit into that ugly scheme). This also removes the redundant EXYNOS5 base address definitions from the 5420 directory when there are EXYNOS5420 ones, to avoid complete confusion. The new scheme tries to use EXYNOS5 for base addresses and exynos5 for types that are common between the two processors, and EXYNOS5420/exynos5420 for things that have changes (although I probably didn't catch all differences). Change-Id: I87e58434490ed55a9bbe743af1f9bf2520dec13f Signed-off-by: Julius Werner Reviewed-on: https://chromium-review.googlesource.com/167579 Reviewed-by: Stefan Reinauer Reviewed-by: David Hendricks Reviewed-by: ron minnich (cherry picked from commit 66c87693352c248eec029c1ce83fb295059e6b5b) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6632 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel --- src/cpu/samsung/exynos5420/uart.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu/samsung/exynos5420/uart.c') diff --git a/src/cpu/samsung/exynos5420/uart.c b/src/cpu/samsung/exynos5420/uart.c index 8fd4dea61f..be96d5b86c 100644 --- a/src/cpu/samsung/exynos5420/uart.c +++ b/src/cpu/samsung/exynos5420/uart.c @@ -17,6 +17,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include @@ -24,6 +25,7 @@ #include "clk.h" #include "cpu.h" #include "periph.h" +#include "uart.h" #define RX_FIFO_COUNT_MASK 0xff #define RX_FIFO_FULL_MASK (1 << 8) -- cgit v1.2.3