Skip to content

Commit 36613aa

Browse files
ajf58kartben
authored andcommitted
dts: arm: rp2040: Improve naming of included files
Rename rpi_pico_common.dtsi to rp2040_reset.h . This is more consistent with the wider Zephyr source tree, and is foundation work ahead of introducing the RP2350 SoC. Add missing include guard. This shouldn't be required, but it is consistent with other header files in the same directory. Signed-off-by: Andrew Featherstone <[email protected]>
1 parent d257460 commit 36613aa

File tree

3 files changed

+38
-32
lines changed

3 files changed

+38
-32
lines changed

dts/arm/raspberrypi/rpi_pico/rp2040.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
#include <zephyr/dt-bindings/clock/rpi_pico_clock.h>
1111
#include <zephyr/dt-bindings/i2c/i2c.h>
1212
#include <zephyr/dt-bindings/regulator/rpi_pico.h>
13-
#include <zephyr/dt-bindings/reset/rpi_pico_reset.h>
13+
#include <zephyr/dt-bindings/reset/rp2040_reset.h>
1414
#include <mem.h>
1515

1616
#include <arm/raspberrypi/rpi_pico/override.dtsi>
1717
/*
1818
* This value can be overridden at the board level or in an application specific
1919
* override.dtsi file.
2020
*/
21+
2122
#ifndef RPI_PICO_DEFAULT_IRQ_PRIORITY
2223
#define RPI_PICO_DEFAULT_IRQ_PRIORITY 3
2324
#endif
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2021 Yonatan Schachter
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_RP2040_RESET_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_RP2040_RESET_H_
9+
10+
#define RPI_PICO_RESETS_RESET_ADC 0
11+
#define RPI_PICO_RESETS_RESET_BUSCTRL 1
12+
#define RPI_PICO_RESETS_RESET_DMA 2
13+
#define RPI_PICO_RESETS_RESET_I2C0 3
14+
#define RPI_PICO_RESETS_RESET_I2C1 4
15+
#define RPI_PICO_RESETS_RESET_IO_BANK0 5
16+
#define RPI_PICO_RESETS_RESET_IO_QSPI 6
17+
#define RPI_PICO_RESETS_RESET_JTAG 7
18+
#define RPI_PICO_RESETS_RESET_PADS_BANK0 8
19+
#define RPI_PICO_RESETS_RESET_PADS_QSPI 9
20+
#define RPI_PICO_RESETS_RESET_PIO0 10
21+
#define RPI_PICO_RESETS_RESET_PIO1 11
22+
#define RPI_PICO_RESETS_RESET_PLL_SYS 12
23+
#define RPI_PICO_RESETS_RESET_PLL_USB 13
24+
#define RPI_PICO_RESETS_RESET_PWM 14
25+
#define RPI_PICO_RESETS_RESET_RTC 15
26+
#define RPI_PICO_RESETS_RESET_SPI0 16
27+
#define RPI_PICO_RESETS_RESET_SPI1 17
28+
#define RPI_PICO_RESETS_RESET_SYSCFG 18
29+
#define RPI_PICO_RESETS_RESET_SYSINFO 19
30+
#define RPI_PICO_RESETS_RESET_TBMAN 20
31+
#define RPI_PICO_RESETS_RESET_TIMER 21
32+
#define RPI_PICO_RESETS_RESET_UART0 22
33+
#define RPI_PICO_RESETS_RESET_UART1 23
34+
#define RPI_PICO_RESETS_RESET_USBCTRL 24
35+
36+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_RP2040_RESET_H_ */

include/zephyr/dt-bindings/reset/rpi_pico_reset.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)