Browse Source

arch: arm: soc: remove core zephyr header inclusions from soc.h

This commit removes the direct inclusions of device.h or gpio.h
from soc.h header files in ARM SOCs, to avoid soc.h include
kernel.h.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
pull/8513/head
Ioannis Glaropoulos 7 years ago committed by Carles Cufí
parent
commit
aee97be710
  1. 3
      arch/arm/soc/arm/beetle/soc.h
  2. 1
      arch/arm/soc/atmel_sam/common/soc_gpio.h
  3. 2
      arch/arm/soc/atmel_sam/same70/soc.h
  4. 7
      arch/arm/soc/nordic_nrf/nrf51/soc.h
  5. 7
      arch/arm/soc/nordic_nrf/nrf52/soc.h
  6. 4
      arch/arm/soc/nxp_imx/rt/soc.h
  7. 6
      arch/arm/soc/st_stm32/stm32f4/soc.h
  8. 2
      arch/arm/soc/st_stm32/stm32l4/soc.h

3
arch/arm/soc/arm/beetle/soc.h

@ -89,8 +89,7 @@ @@ -89,8 +89,7 @@
#ifndef _ASMLANGUAGE
#include <device.h>
#include <misc/util.h>
#include <kernel_includes.h>
#include "soc_pins.h"
#include "soc_power.h"

1
arch/arm/soc/atmel_sam/common/soc_gpio.h

@ -13,7 +13,6 @@ @@ -13,7 +13,6 @@
#include <zephyr/types.h>
#include <soc.h>
#include <gpio.h>
/*
* Pin flags/attributes

2
arch/arm/soc/atmel_sam/same70/soc.h

@ -46,6 +46,8 @@ @@ -46,6 +46,8 @@
#include "../common/soc_pmc.h"
#include "../common/soc_gpio.h"
#include <kernel_includes.h>
#endif /* _ASMLANGUAGE */
/** Peripheral Hardware Request Line Identifier */

7
arch/arm/soc/nordic_nrf/nrf51/soc.h

@ -15,9 +15,10 @@ @@ -15,9 +15,10 @@
#include <nrf_common.h>
#include <nrf.h>
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <kernel_includes.h>
/* Add include for DTS generated information */
#include <generated_dts_board.h>
#endif /* !_ASMLANGUAGE */

7
arch/arm/soc/nordic_nrf/nrf52/soc.h

@ -15,9 +15,10 @@ @@ -15,9 +15,10 @@
#include <nrf_common.h>
#include <nrf.h>
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <kernel_includes.h>
/* Add include for DTS generated information */
#include <generated_dts_board.h>
#endif /* !_ASMLANGUAGE */

4
arch/arm/soc/nxp_imx/rt/soc.h

@ -16,8 +16,8 @@ extern "C" { @@ -16,8 +16,8 @@ extern "C" {
#ifndef _ASMLANGUAGE
#include <fsl_common.h>
#include <device.h>
#include <misc/util.h>
#include <kernel_includes.h>
#endif /* !_ASMLANGUAGE */

6
arch/arm/soc/st_stm32/stm32f4/soc.h

@ -24,12 +24,10 @@ @@ -24,12 +24,10 @@
#ifndef _ASMLANGUAGE
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <stm32f4xx.h>
#include <kernel_includes.h>
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
#include <stm32f4xx_ll_utils.h>
#include <stm32f4xx_ll_bus.h>

2
arch/arm/soc/st_stm32/stm32l4/soc.h

@ -22,8 +22,8 @@ @@ -22,8 +22,8 @@
#ifndef _ASMLANGUAGE
#include <autoconf.h>
#include <device.h>
#include <stm32l4xx.h>
#include <kernel_includes.h>
#define GPIO_REG_SIZE 0x400
/* base address for where GPIO registers start */

Loading…
Cancel
Save