hal: microchip: sam: add the three SPI aliases the D5x/E5x pack lacks
sercom_samd5xe5x.h maps the generic SERCOM_SPI_ names onto this pack’s SERCOM_SPIM_ ones, some forty of them, and three are missing: CTRLA_SWRST, SYNCBUSY_SWRST and CTRLC_ICSPACE. Nothing noticed, because the SPI driver reached past the mapping and used the SPIM spelling directly in exactly those four places.
That direct use is what keeps the driver from building on PIC32CM SG/GC, whose pack has one SPI register block and no SPIM prefix at all. The driver is being moved onto the generic names, and this pack is the one family where the CTRLC line is compiled at all: SPI_MCHP_INTER_CHARACTER_SPACE depends on SOC_FAMILY_MICROCHIP_SAM_D5X_E5X.
The three definitions are the same one-line form as the forty already in the file, and sam_e54_xpro is the in-tree board that needs them.
Signed-off-by: Arkadiusz Grzelka devitwise@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Introduction
The hal_microchip is a set of register definitions for Microchip SoC’s. The HAL directory structure detailed below.
Directory Structure
zephyr).How to submit code
Any contribution should follow the
How to submit codeusing as premisses the Zephyr Contribution Guidelines. For more information about External Modules see Modules Section in special Submitting Changes to ModulesMEC5 HAL
The MEC5 HAL currently support Microchip MEC172x (named MECH172x in Zephyr SoC), MEC174x, and MEC175x.
On the Zephyr side the SoC layer build rules set CONFIG_HAS_MEC5_HAL=y.
The top level CMakeLists.txt then processes the hal_microchip/mec5 subfolder.
The MEC5 HAL device is chosen using Zephyr CONFIG_SOC_SERIES and CONFIG_SOC.
Zephyr SoC layer soc.h for MECH172x, MEC174x, and MEC175x include device_mec5.h from the MEC5 HAL.
Zephyr drivres and applications should include individual HAL API headers to access specific peripherals.
MPFS PolarFile HAL
The Microchip Polarfire SOC HAL was downloaded from:
https://github.com/polarfire-soc/platform
Addditionally, the bare metal samples from https://github.com/polarfire-soc/polarfire-soc-bare-metal-examples are required to extract the Icicle Kit bopard configuration files.
Both are from Tag 21.08
The following changes were made: