ipq806x: Change all SoC headers to <soc/headername.h> system

This patch aligns ipq806x 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 Storm.

Change-Id: Icb81a77e6f458625f5379a980e8760388dd3a1f9
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 1bf23774c9ffa5d08c211f3658d39adcfa47b339
Original-Change-Id: I283cc7e6094be977d67ed4146f376cebcea6774a
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/224502
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9368
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Julius Werner
2014-10-20 13:20:49 -07:00
committed by Patrick Georgi
parent f8c8703be0
commit 73d1ed66d3
21 changed files with 30 additions and 28 deletions

View File

@ -17,10 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdlib.h>
#include <boardid.h> #include <boardid.h>
#include <gpiolib.h> #include <gpiolib.h>
#include <console/console.h> #include <console/console.h>
#include <stdlib.h>
/* /*
* Storm boards dedicate to the board ID three GPIOs in tertiary mode: 29, 30 * Storm boards dedicate to the board ID three GPIOs in tertiary mode: 29, 30

View File

@ -1,9 +1,9 @@
/* * Copyright (c) 2012 - 2013 The Linux Foundation. All rights reserved.* */ /* * Copyright (c) 2012 - 2013 The Linux Foundation. All rights reserved.* */
#include <soc/gpio.h>
#include <soc/cdp.h>
#include <types.h> #include <types.h>
#include <cdp.h>
#include <gpio.h>
void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned count) void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned count)
{ {

View File

@ -24,13 +24,12 @@
#include <delay.h> #include <delay.h>
#include <device/device.h> #include <device/device.h>
#include <gpiolib.h> #include <gpiolib.h>
#include <soc/clock.h>
#include <soc/gpio.h>
#include <soc/usb.h>
#include <string.h> #include <string.h>
#include <symbols.h> #include <symbols.h>
#include <soc/qualcomm/ipq806x/include/clock.h>
#include <soc/qualcomm/ipq806x/include/gpio.h>
#include <soc/qualcomm/ipq806x/include/usb.h>
/* convenient shorthand (in MB) */ /* convenient shorthand (in MB) */
#define DRAM_START ((uintptr_t)_dram / MiB) #define DRAM_START ((uintptr_t)_dram / MiB)
#define DRAM_SIZE (CONFIG_DRAM_SIZE_MB) #define DRAM_SIZE (CONFIG_DRAM_SIZE_MB)

View File

@ -1 +1 @@
#include <soc/qualcomm/ipq806x/memlayout.ld> #include <soc/memlayout.ld>

View File

@ -40,6 +40,8 @@ ramstage-y += timer.c
ramstage-$(CONFIG_DRIVERS_UART) += uart.c ramstage-$(CONFIG_DRIVERS_UART) += uart.c
ramstage-y += usb.c ramstage-y += usb.c
INCLUDES += -Isrc/soc/qualcomm/ipq806x/include/
ifeq ($(CONFIG_USE_BLOBS),y) ifeq ($(CONFIG_USE_BLOBS),y)
# Generate the actual coreboot bootblock code # Generate the actual coreboot bootblock code

View File

@ -3,8 +3,8 @@
*/ */
#include <delay.h> #include <delay.h>
#include <soc/clock.h>
#include <types.h> #include <types.h>
#include <clock.h>
/** /**
* uart_pll_vote_clk_enable - enables PLL8 * uart_pll_vote_clk_enable - enables PLL8

View File

@ -28,9 +28,9 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <iomap.h>
#include <gpio.h>
#include <arch/io.h> #include <arch/io.h>
#include <soc/gpio.h>
#include <soc/iomap.h>
/******************************************************* /*******************************************************
Function description: check for invalid GPIO # Function description: check for invalid GPIO #

View File

@ -4,6 +4,8 @@
#ifndef _IPQ806X_CDP_H_ #ifndef _IPQ806X_CDP_H_
#define _IPQ806X_CDP_H_ #define _IPQ806X_CDP_H_
#include <types.h>
unsigned smem_get_board_machtype(void); unsigned smem_get_board_machtype(void);
typedef enum { typedef enum {

View File

@ -33,7 +33,7 @@
#ifndef __IPQ860X_CLOCK_H_ #ifndef __IPQ860X_CLOCK_H_
#define __IPQ860X_CLOCK_H_ #define __IPQ860X_CLOCK_H_
#include <iomap.h> #include <soc/iomap.h>
/* UART clock @ 7.3728 MHz */ /* UART clock @ 7.3728 MHz */
#define UART_DM_CLK_RX_TX_BIT_RATE 0xCC #define UART_DM_CLK_RX_TX_BIT_RATE 0xCC

View File

@ -37,7 +37,7 @@
#define __SOC_QUALCOMM_IPQ806X_IOMAP_H_ #define __SOC_QUALCOMM_IPQ806X_IOMAP_H_
#include <arch/io.h> #include <arch/io.h>
#include <cdp.h> #include <soc/cdp.h>
/* Typecast to allow integers being passed as address /* Typecast to allow integers being passed as address
This needs to be included because vendor code is not compliant with our This needs to be included because vendor code is not compliant with our

View File

@ -4,11 +4,11 @@
#include <arch/io.h> #include <arch/io.h>
#include <delay.h> #include <delay.h>
#include <soc/gpio.h>
#include <soc/iomap.h>
#include <soc/spi.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <spi.h>
#include <gpio.h>
#include <iomap.h>
#define SUCCESS 0 #define SUCCESS 0

View File

@ -29,8 +29,8 @@
*/ */
#include <delay.h> #include <delay.h>
#include <iomap.h> #include <soc/iomap.h>
#include <ipq_timer.h> #include <soc/ipq_timer.h>
#include <timer.h> #include <timer.h>
/* /*

View File

@ -34,12 +34,12 @@
#include <arch/io.h> #include <arch/io.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h>
#include <clock.h>
#include <gpio.h>
#include <gsbi.h>
#include <console/uart.h> #include <console/uart.h>
#include <ipq_uart.h> #include <delay.h>
#include <soc/clock.h>
#include <soc/gpio.h>
#include <soc/gsbi.h>
#include <soc/ipq_uart.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -17,13 +17,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <delay.h>
#include <arch/io.h> #include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h>
#include "clock.h" #include <soc/clock.h>
#include "iomap.h" #include <soc/iomap.h>
#include "usb.h" #include <soc/usb.h>
#define CRPORT_TX_OVRD_DRV_LO 0x1002 #define CRPORT_TX_OVRD_DRV_LO 0x1002
#define CRPORT_RX_OVRD_IN_HI 0x1006 #define CRPORT_RX_OVRD_IN_HI 0x1006