From 6a490af52b67d44b369770de33bf66ced434773d Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 18 Aug 2020 16:51:44 +0200 Subject: [PATCH] cpu/saml1x: add all parts to Kconfig --- cpu/saml1x/Kconfig | 16 +++------------- cpu/saml1x/Kconfig.saml10 | 32 ++++++++++++++++++++++++++++++++ cpu/saml1x/Kconfig.saml11 | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 cpu/saml1x/Kconfig.saml10 create mode 100644 cpu/saml1x/Kconfig.saml11 diff --git a/cpu/saml1x/Kconfig b/cpu/saml1x/Kconfig index 77bb7486a8..786a504038 100644 --- a/cpu/saml1x/Kconfig +++ b/cpu/saml1x/Kconfig @@ -20,15 +20,6 @@ config CPU_FAM_SAML11 bool select CPU_COMMON_SAML1X -## CPU Models -config CPU_MODEL_SAML10E16A - bool - select CPU_FAM_SAML10 - -config CPU_MODEL_SAML11E16A - bool - select CPU_FAM_SAML11 - ## Declaration of specific features config HAS_CPU_SAML1X bool @@ -40,11 +31,10 @@ config CPU_FAM default "saml10" if CPU_FAM_SAML10 default "saml11" if CPU_FAM_SAML11 -config CPU_MODEL - default "saml10e16a" if CPU_MODEL_SAML10E16A - default "saml11e16a" if CPU_MODEL_SAML11E16A - config CPU default "saml1x" if CPU_COMMON_SAML1X +source "$(RIOTCPU)/saml1x/Kconfig.saml10" +source "$(RIOTCPU)/saml1x/Kconfig.saml11" + source "$(RIOTCPU)/sam0_common/Kconfig" diff --git a/cpu/saml1x/Kconfig.saml10 b/cpu/saml1x/Kconfig.saml10 new file mode 100644 index 0000000000..1aa6bf095a --- /dev/null +++ b/cpu/saml1x/Kconfig.saml10 @@ -0,0 +1,32 @@ +## CPU Models +config CPU_MODEL_SAML10D14A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL_SAML10D15A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL_SAML10D16A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL_SAML10E14A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL_SAML10E15A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL_SAML10E16A + bool + select CPU_FAM_SAML10 + +config CPU_MODEL + default "saml10d14a" if CPU_MODEL_SAML10D14A + default "saml10d15a" if CPU_MODEL_SAML10D15A + default "saml10d16a" if CPU_MODEL_SAML10D16A + default "saml10e14a" if CPU_MODEL_SAML10E14A + default "saml10e15a" if CPU_MODEL_SAML10E15A + default "saml10e16a" if CPU_MODEL_SAML10E16A diff --git a/cpu/saml1x/Kconfig.saml11 b/cpu/saml1x/Kconfig.saml11 new file mode 100644 index 0000000000..52118fc2bc --- /dev/null +++ b/cpu/saml1x/Kconfig.saml11 @@ -0,0 +1,32 @@ +## CPU Models +config CPU_MODEL_SAML11D14A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL_SAML11D15A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL_SAML11D16A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL_SAML11E14A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL_SAML11E15A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL_SAML11E16A + bool + select CPU_FAM_SAML11 + +config CPU_MODEL + default "saml11d14a" if CPU_MODEL_SAML11D14A + default "saml11d15a" if CPU_MODEL_SAML11D15A + default "saml11d16a" if CPU_MODEL_SAML11D16A + default "saml11e14a" if CPU_MODEL_SAML11E14A + default "saml11e15a" if CPU_MODEL_SAML11E15A + default "saml11e16a" if CPU_MODEL_SAML11E16A