summaryrefslogtreecommitdiff
path: root/src/cpu/ti/am335x
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-10-04 23:42:42 +0200
committerNico Huber <nico.h@gmx.de>2018-10-08 16:57:27 +0000
commitd44221f9c8f3686e040ff9481829315068b321a3 (patch)
tree76337bf1cae88feda44e3c63dd7e32e964e8767d /src/cpu/ti/am335x
parent834543c0c71544b547194b093b8e1da990722762 (diff)
Move compiler.h to commonlib
Its spreading copies got out of sync. And as it is not a standard header but used in commonlib code, it belongs into commonlib. While we are at it, always include it via GCC's `-include` switch. Some Windows and BSD quirk handling went into the util copies. We always guard from redefinitions now to prevent further issues. Change-Id: I850414e6db1d799dce71ff2dc044e6a000ad2552 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/28927 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/cpu/ti/am335x')
-rw-r--r--src/cpu/ti/am335x/clock.h1
-rw-r--r--src/cpu/ti/am335x/gpio.h1
-rw-r--r--src/cpu/ti/am335x/header.c1
-rw-r--r--src/cpu/ti/am335x/header.h1
-rw-r--r--src/cpu/ti/am335x/uart.h2
5 files changed, 0 insertions, 6 deletions
diff --git a/src/cpu/ti/am335x/clock.h b/src/cpu/ti/am335x/clock.h
index 564838a0e4..c0b62fcb63 100644
--- a/src/cpu/ti/am335x/clock.h
+++ b/src/cpu/ti/am335x/clock.h
@@ -16,7 +16,6 @@
#define __CPU_TI_AM335X_CLOCK_H__
#include <stdint.h>
-#include <compiler.h>
enum {
CM_ST_NO_SLEEP = 0x0,
diff --git a/src/cpu/ti/am335x/gpio.h b/src/cpu/ti/am335x/gpio.h
index 41fc3d358e..c04a00ce0f 100644
--- a/src/cpu/ti/am335x/gpio.h
+++ b/src/cpu/ti/am335x/gpio.h
@@ -16,7 +16,6 @@
#define __CPU_TI_AM335X_GPIO_H__
#include <stdint.h>
-#include <compiler.h>
enum {
AM335X_GPIO_BITS_PER_BANK = 32
diff --git a/src/cpu/ti/am335x/header.c b/src/cpu/ti/am335x/header.c
index a260425f48..847c8b073c 100644
--- a/src/cpu/ti/am335x/header.c
+++ b/src/cpu/ti/am335x/header.c
@@ -15,7 +15,6 @@
#include <stddef.h>
#include <stdint.h>
#include <symbols.h>
-#include <compiler.h>
#include "header.h"
diff --git a/src/cpu/ti/am335x/header.h b/src/cpu/ti/am335x/header.h
index 64d75c7512..fa5bf74071 100644
--- a/src/cpu/ti/am335x/header.h
+++ b/src/cpu/ti/am335x/header.h
@@ -16,7 +16,6 @@
#define __CPU_TI_AM335X_HEADER_H
#include <stdint.h>
-#include <compiler.h>
struct configuration_header_toc_item {
// Offset from the start address of the TOC to the actual address of
diff --git a/src/cpu/ti/am335x/uart.h b/src/cpu/ti/am335x/uart.h
index 7a65076b10..000a45dbf7 100644
--- a/src/cpu/ti/am335x/uart.h
+++ b/src/cpu/ti/am335x/uart.h
@@ -15,8 +15,6 @@
#ifndef AM335X_UART_H
#define AM335X_UART_H
-#include <compiler.h>
-
#define AM335X_UART0_BASE 0x44e09000
#define AM335X_UART1_BASE 0x48020000
#define AM335X_UART2_BASE 0x48024000