Skip to content

Commit 280b801

Browse files
boards: ambiq: apollo510_evb: enable hardware CRC32 support
Enable the hardware CRC32 peripheral on the Apollo510 EVB board: - Add SPDX license header to apollo510_evb.dts - Add zephyr,crc chosen node pointing to &crc32 - Add crc0 alias for the CRC32 node - Enable &crc32 node (status = "okay") - Add crc to supported features in apollo510_evb.yaml - Add board Kconfig fragment for the CRC sample selecting CRC32_IEEE variant and disabling CRC8 Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
1 parent 9f24aca commit 280b801

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

boards/ambiq/apollo510_evb/apollo510_evb.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright 2025 Ambiq Micro Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
/dts-v1/;
28
#include <ambiq/ambiq_apollo510.dtsi>
39
#include "apollo510_evb-pinctrl.dtsi"
@@ -19,6 +25,7 @@
1925
ambiq,xo32m = &xo32m_xtal;
2026
ambiq,xo32k = &xo32k_xtal;
2127
ambiq,extrefclk = &extrefclk;
28+
zephyr,crc = &crc32;
2229
};
2330

2431
aliases {
@@ -30,6 +37,7 @@
3037
sw1 = &button1;
3138
pwm-led0 = &pwm_led0;
3239
sdhc0 = &sdio0;
40+
crc0 = &crc32;
3341
};
3442

3543
sram0: memory@SSRAM_BASE_NAME {
@@ -299,3 +307,7 @@ zephyr_udc0: &usb {
299307
&gpio192_223 {
300308
status = "okay";
301309
};
310+
311+
&crc32 {
312+
status = "okay";
313+
};

boards/ambiq/apollo510_evb/apollo510_evb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ supported:
1212
- adc
1313
- watchdog
1414
- counter
15+
- crc
1516
- gpio
1617
- spi
1718
- i2c
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_SAMPLE_CRC_VARIANT_CRC8=n
2+
CONFIG_SAMPLE_CRC_VARIANT_CRC32_IEEE=y

0 commit comments

Comments
 (0)