From 0812568b5aa8ea29ce108f0ce64819cb667a5f5f Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 20 Oct 2014 13:22:00 -0700 Subject: [PATCH] pistachio: Change all SoC headers to system This patch aligns pistachio to the new SoC header include scheme. Also alphabetized headers in affected files since we touch them anyway. BUG=None TEST=Tested with whole series. Compiled Urara. Change-Id: I0609b307695ba6a922384ac34dd604bffcb20692 Signed-off-by: Patrick Georgi Original-Commit-Id: 0a577918babf26adf10baa0f56a7065f5659d285 Original-Change-Id: I3ed405a3efdeec28965538d19a22f2b5b8204f01 Original-Signed-off-by: Julius Werner Original-Reviewed-on: https://chromium-review.googlesource.com/224503 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9335 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/urara/memlayout.ld | 2 +- src/soc/imgtec/pistachio/Makefile.inc | 2 ++ src/soc/imgtec/pistachio/{ => include/soc}/cpu.h | 0 src/soc/imgtec/pistachio/{ => include/soc}/memlayout.ld | 0 src/soc/imgtec/pistachio/{ => include/soc}/spi.h | 0 src/soc/imgtec/pistachio/spi.c | 4 ++-- 6 files changed, 5 insertions(+), 3 deletions(-) rename src/soc/imgtec/pistachio/{ => include/soc}/cpu.h (100%) rename src/soc/imgtec/pistachio/{ => include/soc}/memlayout.ld (100%) rename src/soc/imgtec/pistachio/{ => include/soc}/spi.h (100%) diff --git a/src/mainboard/google/urara/memlayout.ld b/src/mainboard/google/urara/memlayout.ld index ab0b4dd8ff..ead7f47838 100644 --- a/src/mainboard/google/urara/memlayout.ld +++ b/src/mainboard/google/urara/memlayout.ld @@ -1 +1 @@ -#include +#include diff --git a/src/soc/imgtec/pistachio/Makefile.inc b/src/soc/imgtec/pistachio/Makefile.inc index d052c8f435..e955968ddc 100644 --- a/src/soc/imgtec/pistachio/Makefile.inc +++ b/src/soc/imgtec/pistachio/Makefile.inc @@ -42,6 +42,8 @@ romstage-y += romstage.c romstage-y += monotonic_timer.c romstage-y += timestamp.c +CPPFLAGS_common += -Isrc/soc/imgtec/pistachio/include/ + # Generate the actual coreboot bootblock code $(objcbfs)/bootblock.raw: $(objcbfs)/bootblock.elf @printf " OBJCOPY $(subst $(obj)/,,$(@))\n" diff --git a/src/soc/imgtec/pistachio/cpu.h b/src/soc/imgtec/pistachio/include/soc/cpu.h similarity index 100% rename from src/soc/imgtec/pistachio/cpu.h rename to src/soc/imgtec/pistachio/include/soc/cpu.h diff --git a/src/soc/imgtec/pistachio/memlayout.ld b/src/soc/imgtec/pistachio/include/soc/memlayout.ld similarity index 100% rename from src/soc/imgtec/pistachio/memlayout.ld rename to src/soc/imgtec/pistachio/include/soc/memlayout.ld diff --git a/src/soc/imgtec/pistachio/spi.h b/src/soc/imgtec/pistachio/include/soc/spi.h similarity index 100% rename from src/soc/imgtec/pistachio/spi.h rename to src/soc/imgtec/pistachio/include/soc/spi.h diff --git a/src/soc/imgtec/pistachio/spi.c b/src/soc/imgtec/pistachio/spi.c index 2b21475d0a..69682d0456 100644 --- a/src/soc/imgtec/pistachio/spi.c +++ b/src/soc/imgtec/pistachio/spi.c @@ -16,10 +16,10 @@ #include #include #include +#include +#include #include #include -#include "cpu.h" -#include "spi.h" #if !CONFIG_SPI_ATOMIC_SEQUENCING #error "Unsupported SPI driver API"