soc: silabs: Make soc.h generic for Series 2
All series 2 devices should be able to use the same soc.h. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
parent
a238e5c29d
commit
09efa2c187
7 changed files with 21 additions and 122 deletions
|
@ -2,6 +2,7 @@
|
|||
# Copyright (c) 2017 Christian Taedcke
|
||||
|
||||
add_subdirectory(common)
|
||||
zephyr_include_directories(${SOC_FAMILY})
|
||||
zephyr_include_directories(${SOC_FAMILY}/${SOC_SERIES})
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_SOC_FAMILY_SILABS_S2 silabs_s2)
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Sateesh Kotapati
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Register access macros for the EFR32BG22 SoC
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef EFR32BG22_SOC_H_
|
||||
#define EFR32BG22_SOC_H_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <em_common.h>
|
||||
#include "../common/soc_gpio.h"
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* EFR32BG22_SOC_H_ */
|
|
@ -1,18 +0,0 @@
|
|||
/* Copyright (c) 2023 Antmicro <www.antmicro.com>
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Register access macros for the EFR32BG27 SoC
|
||||
*/
|
||||
|
||||
#ifndef EFR32BG27_SOC_H_
|
||||
#define EFR32BG27_SOC_H_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
#include <em_common.h>
|
||||
#include "../common/soc_gpio.h"
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
#endif /* EFR32BG27_SOC_H_ */
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020 TriaGnoSys GmbH
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Board configuration macros for the EFR32MG21 SoC
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _SILABS_EFR32MG21_SOC_H
|
||||
#define _SILABS_EFR32MG21_SOC_H
|
||||
|
||||
#include <zephyr/sys/util.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <em_common.h>
|
||||
|
||||
#include "soc_pinmap.h"
|
||||
#include "../common/soc_gpio.h"
|
||||
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _SILABS_EFR32MG21_SOC_H */
|
|
@ -1,30 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020 TriaGnoSys GmbH
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Board configuration macros for the EFR32MG24 SoC
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _SILABS_EFR32MG24_SOC_H
|
||||
#define _SILABS_EFR32MG24_SOC_H
|
||||
|
||||
#include <zephyr/sys/util.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <em_common.h>
|
||||
|
||||
#include "soc_pinmap.h"
|
||||
#include "../common/soc_gpio.h"
|
||||
|
||||
/* Add include for DTS generated information */
|
||||
#include <zephyr/devicetree.h>
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _SILABS_EFR32MG24_SOC_H */
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Yishai Jaffe
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Register access macros for the EFR32ZG23 SoC
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef EFR32ZG23_SOC_H_
|
||||
#define EFR32ZG23_SOC_H_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <em_common.h>
|
||||
#include "../common/soc_gpio.h"
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* EFR32ZG23_SOC_H_ */
|
20
soc/silabs/silabs_s2/soc.h
Normal file
20
soc/silabs/silabs_s2/soc.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Silicon Laboratories Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Register access macros for Silabs Series 2 SoCs
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SILABS_S2_SOC_H_
|
||||
#define SILABS_S2_SOC_H_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
#include <em_common.h>
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue