Browse Source

soc: silabs: align comments with soc tree

Cosmetics changes to reflect the tree organisation.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
pull/69687/head
Jérôme Pouiller 1 year ago committed by Carles Cufi
parent
commit
2fd081ac86
  1. 2
      soc/silabs/Kconfig
  2. 6
      soc/silabs/common/soc.c
  3. 8
      soc/silabs/common/soc_gpio.h
  4. 6
      soc/silabs/silabs_s2/efr32mg21/soc.h
  5. 6
      soc/silabs/silabs_s2/efr32mg21/soc_pinmap.h
  6. 6
      soc/silabs/silabs_s2/efr32mg24/soc.h
  7. 6
      soc/silabs/silabs_s2/efr32mg24/soc_pinmap.h

2
soc/silabs/Kconfig

@ -190,7 +190,7 @@ config SOC_GECKO_DEV_INIT @@ -190,7 +190,7 @@ config SOC_GECKO_DEV_INIT
configures DPLLs and manages the Energy Management Unit.
Disabling these services may negatively impact counter and timer
routines in EXX32 series SoCs.
routines in Silabs SoCs.
config COUNTER_GECKO_STIMER
bool

6
soc/silabs/common/soc.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
/**
* @file
* @brief Common SoC initialization for the EXX32
* @brief Common SoC initialization for the Silabs products
*/
#include <zephyr/init.h>
@ -206,7 +206,7 @@ static void swo_init(void) @@ -206,7 +206,7 @@ static void swo_init(void)
*
* @return 0
*/
static int silabs_exx32_init(void)
static int silabs_init(void)
{
/* handle chip errata */
CHIP_Init();
@ -244,4 +244,4 @@ static int silabs_exx32_init(void) @@ -244,4 +244,4 @@ static int silabs_exx32_init(void)
return 0;
}
SYS_INIT(silabs_exx32_init, PRE_KERNEL_1, 0);
SYS_INIT(silabs_init, PRE_KERNEL_1, 0);

8
soc/silabs/common/soc_gpio.h

@ -4,12 +4,12 @@ @@ -4,12 +4,12 @@
*/
/** @file
* @brief Silabs EXX32 MCU family General Purpose Input Output (GPIO)
* @brief Silabs MCU family General Purpose Input Output (GPIO)
* module HAL driver.
*/
#ifndef _SILABS_EXX32_SOC_GPIO_H_
#define _SILABS_EXX32_SOC_GPIO_H_
#ifndef _SILABS_COMMON_SOC_GPIO_H_
#define _SILABS_COMMON_SOC_GPIO_H_
#include <soc.h>
#include <em_gpio.h>
@ -29,4 +29,4 @@ struct soc_gpio_pin { @@ -29,4 +29,4 @@ struct soc_gpio_pin {
}
#endif
#endif /* _SILABS_EXX32_SOC_GPIO_H_ */
#endif /* _SILABS_COMMON_SOC_GPIO_H_ */

6
soc/silabs/silabs_s2/efr32mg21/soc.h

@ -10,8 +10,8 @@ @@ -10,8 +10,8 @@
*
*/
#ifndef ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_H
#define ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_H
#ifndef _SILABS_EFR32MG21_SOC_H
#define _SILABS_EFR32MG21_SOC_H
#include <zephyr/sys/util.h>
@ -25,4 +25,4 @@ @@ -25,4 +25,4 @@
#endif /* !_ASMLANGUAGE */
#endif /* ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_H */
#endif /* _SILABS_EFR32MG21_SOC_H */

6
soc/silabs/silabs_s2/efr32mg21/soc_pinmap.h

@ -10,8 +10,8 @@ @@ -10,8 +10,8 @@
* modules to correctly configure GPIO controller.
*/
#ifndef ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_PINMAP_H_
#define ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_PINMAP_H_
#ifndef _SILABS_EFR32MG21_SOC_PINMAP_H_
#define _SILABS_EFR32MG21_SOC_PINMAP_H_
#include <em_gpio.h>
@ -19,4 +19,4 @@ @@ -19,4 +19,4 @@
#define PIN_SWO { gpioPortA, 3, gpioModePushPull, 1 }
#endif /* CONFIG_LOG_BACKEND_SWO */
#endif /* ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG21_SOC_PINMAP_H_ */
#endif /* _SILABS_EFR32MG21_SOC_PINMAP_H_ */

6
soc/silabs/silabs_s2/efr32mg24/soc.h

@ -10,8 +10,8 @@ @@ -10,8 +10,8 @@
*
*/
#ifndef ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_H
#define ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_H
#ifndef _SILABS_EFR32MG24_SOC_H
#define _SILABS_EFR32MG24_SOC_H
#include <zephyr/sys/util.h>
@ -27,4 +27,4 @@ @@ -27,4 +27,4 @@
#endif /* !_ASMLANGUAGE */
#endif /* ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_H */
#endif /* _SILABS_EFR32MG24_SOC_H */

6
soc/silabs/silabs_s2/efr32mg24/soc_pinmap.h

@ -10,8 +10,8 @@ @@ -10,8 +10,8 @@
* modules to correctly configure GPIO controller.
*/
#ifndef ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_PINMAP_H_
#define ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_PINMAP_H_
#ifndef _SILABS_EFR32MG24_SOC_PINMAP_H_
#define _SILABS_EFR32MG24_SOC_PINMAP_H_
#include <em_gpio.h>
@ -19,4 +19,4 @@ @@ -19,4 +19,4 @@
#define PIN_SWO { gpioPortA, 3, gpioModePushPull, 1 }
#endif /* CONFIG_LOG_BACKEND_SWO */
#endif /* ZEPHYR_SOC_ARM_SILABS_EXX32_EFR32MG24_SOC_PINMAP_H_ */
#endif /* _SILABS_EFR32MG24_SOC_PINMAP_H_ */

Loading…
Cancel
Save