-
Notifications
You must be signed in to change notification settings - Fork 8.1k
soc: microchip: sam: reorganize directory structure for sama7g5 series #97515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5,11 +5,11 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
config SOC_SERIES_SAMA7G5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bool | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
select SOC_FAMILY_MICROCHIP_SAM | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
select SOC_FAMILY_MICROCHIP_SAMA7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
help | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enable support for Microchip SAM Microprocessors. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enable support for Microchip SAMA7G5 Cortex-A Microprocessors. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
config SOC_SERIES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default "sama7g5" if SOC_SERIES_SAMA7G5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rsource "Kconfig.soc.sam*" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rsource "*/Kconfig.soc*" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (C) 2025 Microchip Technology Inc. and its subsidiaries | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove this file and folder by adding these contents in |
||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
config SOC_SAMA7G54 | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D1G | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D1GN0 | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D1GN2 | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D2G | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D2GN4 | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC_SAMA7G54D4G | ||
bool | ||
select SOC_SERIES_SAMA7G5 | ||
|
||
config SOC | ||
default "sama7g54" if SOC_SAMA7G54 | ||
default "sama7g54d1g" if SOC_SAMA7G54D1G | ||
default "sama7g54d1gn0" if SOC_SAMA7G54D1GN0 | ||
default "sama7g54d1gn2" if SOC_SAMA7G54D1GN2 | ||
default "sama7g54d2g" if SOC_SAMA7G54D2G | ||
default "sama7g54d2gn4" if SOC_SAMA7G54D2GN4 | ||
default "sama7g54d4g" if SOC_SAMA7G54D4G |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2025 Microchip Technology Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef SOC_MICROCHIP_SAMA7G5_SOC_H_ | ||
#define SOC_MICROCHIP_SAMA7G5_SOC_H_ | ||
|
||
#ifndef _ASMLANGUAGE | ||
|
||
#include <zephyr/types.h> | ||
|
||
#if defined(CONFIG_SOC_SAMA7G54) | ||
#include <sama7g54.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D1G) | ||
#include <sama7g54d1g.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D1GN0) | ||
#include <sama7g54d1gn0.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D1GN2) | ||
#include <sama7g54d1gn2.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D2G) | ||
#include <sama7g54d2g.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D2GN4) | ||
#include <sama7g54d2gn4.h> | ||
#elif defined(CONFIG_SOC_SAMA7G54D4G) | ||
#include <sama7g54d4g.h> | ||
#else | ||
#error Library does not support the specified device | ||
#endif | ||
|
||
#endif /* _ASMLANGUAGE */ | ||
|
||
#endif /* SOC_MICROCHIP_SAMA7G5_SOC_H_ */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 2025 Microchip Technology Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
family: | ||
- name: microchip_sama7 | ||
series: | ||
- name: sama7g5 | ||
socs: | ||
- name: sama7g54 | ||
- name: sama7g54d1g | ||
- name: sama7g54d1gn0 | ||
- name: sama7g54d1gn2 | ||
- name: sama7g54d2g | ||
- name: sama7g54d2gn4 | ||
- name: sama7g54d4g |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
Kconfig.soc
file undersoc/microhcip/sam/sama7
directory and create symbolSOC_FAMILY_MICROCHIP_SAMA7
, Then this symbol can be selected by allsama7
series SoCs