drivers: Remove board.h include

We either don't need board.h in the driver or we should be include soc.h
instead.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-10-31 12:44:45 -05:00 committed by Anas Nashif
commit aa2bdbe322
72 changed files with 32 additions and 77 deletions

View file

@ -12,7 +12,7 @@
#include <kernel.h>
#include <string.h>
#include <stdlib.h>
#include <board.h>
#include <soc.h>
#include <adc.h>
#include <arch/cpu.h>

View file

@ -10,7 +10,7 @@
#include <kernel.h>
#include <string.h>
#include <stdlib.h>
#include <board.h>
#include <soc.h>
#include <adc.h>
#include <arch/cpu.h>

View file

@ -8,7 +8,7 @@
#include <stdio.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <device.h>
#include <init.h>
#include <aio_comparator.h>

View file

@ -11,7 +11,6 @@
#include <zephyr.h>
#include <board.h>
#include <init.h>
#include <uart.h>
#include <misc/util.h>

View file

@ -9,7 +9,6 @@
#include <zephyr.h>
#include <device.h>
#include <init.h>
#include <board.h>
#include <misc/util.h>
#include <misc/byteorder.h>

View file

@ -9,7 +9,7 @@
#include <misc/util.h>
#include <string.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <stdbool.h>
#include "stm32_can.h"

View file

@ -10,7 +10,7 @@
#include <arch/cpu.h>
#include <misc/__assert.h>
#include <board.h>
#include <soc.h>
#include <device.h>
#include <init.h>

View file

@ -24,7 +24,6 @@
#include <device.h>
#include <init.h>
#include <board.h>
#include <uart.h>
#include <console/console.h>
#include <console/uart_console.h>

View file

@ -13,7 +13,6 @@
#include <kernel.h>
#include <board.h>
#include <uart.h>
#include <console/uart_pipe.h>

View file

@ -9,7 +9,6 @@
#include <stdio.h>
#include <string.h>
#include <kernel.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <dma.h>

View file

@ -8,7 +8,7 @@
#include <stdio.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <device.h>
#include <init.h>
#include <dma.h>

View file

@ -6,7 +6,6 @@
*/
#include <board.h>
#include <device.h>
#include <dma.h>
#include <errno.h>

View file

@ -9,7 +9,7 @@
#include <logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <board.h>
#include <soc.h>
#include <device.h>
#include <errno.h>
#include <init.h>

View file

@ -19,7 +19,6 @@
#include <logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <board.h>
#include <device.h>
#include <misc/util.h>
#include <kernel.h>

View file

@ -11,7 +11,7 @@
#include "gpio_dw.h"
#include "gpio_utils.h"
#include <board.h>
#include <soc.h>
#include <sys_io.h>
#include <init.h>
#include <misc/util.h>

View file

@ -7,7 +7,7 @@
#include <errno.h>
#include <gpio.h>
#include <board.h>
#include <soc.h>
#include <misc/util.h>
#include "qm_ss_gpio.h"

View file

@ -9,7 +9,7 @@
#include <errno.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <init.h>
#include <sys_io.h>
#include <misc/util.h>

View file

@ -29,7 +29,6 @@
#include <kernel.h>
#include <board.h>
#include <i2c.h>
#include <sys_clock.h>

View file

@ -16,7 +16,7 @@
#include <arch/cpu.h>
#include <string.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <sys_io.h>

View file

@ -10,7 +10,7 @@
#include <em_cmu.h>
#include <em_i2c.h>
#include <em_gpio.h>
#include <board.h>
#include <soc.h>
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <logging/log.h>

View file

@ -9,7 +9,7 @@
#include <clock_control.h>
#include <misc/util.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <i2c.h>
#include "i2c_ll_stm32.h"

View file

@ -12,7 +12,7 @@
#include <clock_control.h>
#include <misc/util.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <i2c.h>
#include "i2c_ll_stm32.h"

View file

@ -12,7 +12,7 @@
#include <clock_control.h>
#include <misc/util.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <i2c.h>
#include "i2c_ll_stm32.h"

View file

@ -7,7 +7,7 @@
#include <errno.h>
#include <device.h>
#include <i2c.h>
#include <board.h>
#include <soc.h>
#include "qm_ss_i2c.h"
#include "qm_ss_isr.h"

View file

@ -12,7 +12,6 @@
* hardware state of two-bit serial interfaces like I2C.
*/
#include <board.h>
#include <device.h>
#include <errno.h>
#include <i2c.h>

View file

@ -17,7 +17,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <net/net_if.h>

View file

@ -17,7 +17,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <net/net_if.h>

View file

@ -14,7 +14,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr.h>
#include <kernel.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <irq.h>

View file

@ -17,7 +17,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <net/net_if.h>

View file

@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <soc.h>
#include <device.h>
#include <init.h>
#include <net/net_if.h>

View file

@ -15,7 +15,6 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <device.h>
#include <init.h>
#include <net/net_if.h>

View file

@ -17,7 +17,6 @@
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <device.h>
#include <init.h>

View file

@ -5,7 +5,6 @@
*/
#include <device.h>
#include <board.h>
#include <irq_nextlevel.h>
#include "cavs_ictl.h"

View file

@ -12,7 +12,6 @@
*/
#include <device.h>
#include <board.h>
#include <irq_nextlevel.h>
#include "dw_ictl.h"

View file

@ -20,8 +20,6 @@
#include <device.h>
#include <init.h>
#include <board.h>
/* programmable interrupt controller info (pair of cascaded 8259A devices) */
#define PIC_MASTER_BASE_ADRS 0x20
#define PIC_SLAVE_BASE_ADRS 0xa0

View file

@ -53,8 +53,6 @@
#include <kernel.h>
#include <arch/cpu.h>
#include "board.h"
#include <toolchain.h>
#include <linker/sections.h>
#include <init.h>

View file

@ -84,7 +84,6 @@
#include <string.h>
#include <misc/__assert.h>
#include "board.h"
#include <toolchain.h>
#include <linker/sections.h>
#include <drivers/loapic.h> /* public API declarations */

View file

@ -10,7 +10,6 @@
#include <device.h>
#include <shared_irq.h>
#include <init.h>
#include <board.h>
#include <sys_io.h>
#ifdef CONFIG_IOAPIC

View file

@ -11,7 +11,6 @@
*/
#include <misc/__assert.h>
#include "board.h"
#include <kernel.h>
#include <arch/cpu.h>
#include <drivers/ioapic.h>

View file

@ -11,7 +11,7 @@
#define ZEPHYR_DRIVERS_IPM_IPM_QUARK_SE_H_
#include <kernel.h>
#include <board.h> /* for SCSS_REGISTER_BASE */
#include <soc.h> /* for SCSS_REGISTER_BASE */
#include <ipm.h>
#include <device.h>
#include <init.h>

View file

@ -13,7 +13,7 @@
LOG_MODULE_REGISTER(ws2812b_sw);
#include <zephyr.h>
#include <board.h>
#include <soc.h>
#include <gpio.h>
#include <device.h>
#include <clock_control.h>

View file

@ -75,7 +75,7 @@
#include <toolchain.h>
#include <linker/sections.h>
#include <board.h>
#include <soc.h>
#include <pci/pci_mgr.h>
#include <pci/pci.h>

View file

@ -17,7 +17,7 @@
#include <pci/pci_mgr.h>
#include <string.h>
#include <board.h>
#include <soc.h>
#if (PCI_CTRL_ADDR_REG == 0)
#error "PCI_CTRL_ADDR_REG cannot be zero"

View file

@ -17,7 +17,7 @@
#include <drivers/pci/pci_mgr.h>
#include <drivers/pci/pci.h>
#include <board.h>
#include <soc.h>
#define PCI_LEGACY_BRIDGE_REG (0xF0 / 4) /* RCBA offset in 32-bit words */
#define PCI_ADDR_IRQAGENT0 0x3140

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <board.h>
#include <device.h>
#include <errno.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <board.h>
#include <device.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
#include <errno.h>
#include <kernel.h>
#include <board.h>
#include <pwm.h>
/* Register for component version */

View file

@ -13,7 +13,6 @@
#include <soc.h>
#include <errno.h>
#include <board.h>
#include <pwm.h>
#include <kernel.h>
#include <gpio.h>

View file

@ -6,7 +6,7 @@
#include <errno.h>
#include <board.h>
#include <soc.h>
#include <pwm.h>
#include <device.h>
#include <kernel.h>

View file

@ -14,7 +14,7 @@
#include <clock_control.h>
#include <misc/util.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <rtc.h>
#if defined(CONFIG_SOC_SERIES_STM32L4X)

View file

@ -9,7 +9,7 @@
#include <em_leuart.h>
#include <em_gpio.h>
#include <em_cmu.h>
#include <board.h>
#include <soc.h>
#define DEV_CFG(dev) \
((const struct leuart_gecko_config * const)(dev)->config->config_info)

View file

@ -14,7 +14,6 @@
#include <arch/cpu.h>
#include <clock_control/arm_clock_control.h>
#include <misc/__assert.h>
#include <board.h>
#include <init.h>
#include <uart.h>
#include <linker/sections.h>

View file

@ -15,7 +15,7 @@
#include <kernel.h>
#include <arch/cpu.h>
#include <misc/__assert.h>
#include <board.h>
#include <soc.h>
#include <init.h>
#include <uart.h>
#include <uart_imx.h>

View file

@ -27,7 +27,6 @@
#include <zephyr/types.h>
#include <soc.h>
#include <board.h>
#include <init.h>
#include <toolchain.h>
#include <linker/sections.h>

View file

@ -13,7 +13,6 @@
#include <zephyr/types.h>
#include <misc/util.h>
#include <string.h>
#include <board.h>
#include <init.h>
#include <uart.h>

View file

@ -16,7 +16,6 @@
#include <misc/__assert.h>
#include <soc.h>
#include <uart.h>
#include <board.h>
#include "cy_syslib.h"
#include "cy_sysclk.h"

View file

@ -11,7 +11,6 @@
#include <kernel.h>
#include <arch/cpu.h>
#include <uart.h>
#include <board.h>
#define RXDATA_EMPTY (1 << 31) /* Receive FIFO Empty */
#define RXDATA_MASK 0xFF /* Receive Data Mask */

View file

@ -21,7 +21,7 @@
#include <kernel.h>
#include <arch/cpu.h>
#include <misc/__assert.h>
#include <board.h>
#include <soc.h>
#include <init.h>
#include <uart.h>
#include <linker/sections.h>

View file

@ -13,7 +13,7 @@
#include <kernel.h>
#include <arch/cpu.h>
#include <misc/__assert.h>
#include <board.h>
#include <soc.h>
#include <init.h>
#include <uart.h>
#include <clock_control.h>

View file

@ -28,7 +28,7 @@ LOG_MODULE_REGISTER(spi_dw);
#include <kernel.h>
#include <arch/cpu.h>
#include <board.h>
#include <soc.h>
#include <device.h>
#include <init.h>

View file

@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(spi_intel);
#include <arch/cpu.h>
#include <misc/__assert.h>
#include <board.h>
#include <soc.h>
#include <init.h>
#include <sys_io.h>

View file

@ -10,7 +10,7 @@ LOG_MODULE_REGISTER(spi_ll_stm32);
#include <misc/util.h>
#include <kernel.h>
#include <board.h>
#include <soc.h>
#include <errno.h>
#include <spi.h>
#include <toolchain.h>

View file

@ -57,7 +57,7 @@
* to build the ARC CPU with Timer0.
*/
#include <board.h>
#include <soc.h>
#include "legacy_api.h"

View file

@ -40,8 +40,6 @@ static volatile u32_t clock_accumulated_count;
* This is the sysTick input clock frequency.
*/
#include <board.h>
#include "legacy_api.h"
#ifdef CONFIG_TICKLESS_IDLE

View file

@ -49,8 +49,6 @@
#include <drivers/system_timer.h>
#include <kernel_structs.h>
#include <board.h>
#include "legacy_api.h"
/* HPET register offsets */

View file

@ -73,7 +73,6 @@
#include <arch/x86/irq_controller.h>
#include <power.h>
#include <device.h>
#include <board.h>
#include <kernel_structs.h>
#include "legacy_api.h"

View file

@ -8,7 +8,6 @@
#include <arch/cpu.h>
#include <device.h>
#include <system_timer.h>
#include <board.h>
/* Timer Ctrl Bitfields */
#define TIMER_CTRL_EN (1 << 0) /* Timer Enable Bit */

View file

@ -8,7 +8,6 @@
#include <arch/cpu.h>
#include <device.h>
#include <system_timer.h>
#include <board.h>
#include "legacy_api.h"

View file

@ -12,7 +12,6 @@
#include <kernel.h>
#include <misc/byteorder.h>
#include <usb/usb_device.h>
#include <board.h>
#include <device.h>
#define LOG_LEVEL CONFIG_USB_DRIVER_LOG_LEVEL

View file

@ -16,7 +16,6 @@
#define ZEPHYR_DRIVERS_USB_DEVICE_USB_DW_REGISTERS_H_
#include <misc/util.h>
#include <board.h>
#if defined(CONFIG_SOC_QUARK_SE_C1000)
#include "qm_soc_regs.h"

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <board.h>
#include "wifi_winc1500_nm_bsp_internal.h"
#include <bsp/include/nm_bsp.h>

View file

@ -11,7 +11,6 @@ LOG_MODULE_REGISTER(winc1500);
#include <stdio.h>
#include <stdint.h>
#include <board.h>
#include <device.h>
#include <spi.h>