Skip to content

Commit 6d85212

Browse files
committed
soc: arm: rpi_pico: Add basic support for binary info feature
Enable embedding binary info to flash. As a default, information collects from the build configuration. It can override by the Kconfig configurations, such as ``` CONFIG_RP2_BINARY_INFO_PROGRAM_NAME_OVERRIDE=y CONFIG_RP2_BINARY_INFO_PROGRAM_NAME="my program name" ``` Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 1d75a11 commit 6d85212

File tree

6 files changed

+404
-0
lines changed

6 files changed

+404
-0
lines changed

soc/raspberrypi/rpi_pico/common/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,16 @@ zephyr_sources(
88
)
99

1010
zephyr_sources_ifdef(CONFIG_RPI_PICO_ROM_BOOTLOADER rom_bootloader.c)
11+
12+
zephyr_library_sources_ifdef(CONFIG_RPI_PICO_BINARY_INFO
13+
binary_info.c
14+
binary_info_header.S
15+
)
16+
17+
zephyr_linker_sources_ifdef(CONFIG_RPI_PICO_BINARY_INFO
18+
ROM_START SORT_KEY 0x0binary_info_header binary_info_header.ld
19+
)
20+
21+
zephyr_linker_sources_ifdef(CONFIG_RPI_PICO_BINARY_INFO
22+
RODATA binary_info.ld
23+
)
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Copyright (c) 2024 TOKITA Hiroshi
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config RPI_PICO_BINARY_INFO
5+
bool "Generate RaspberryPi Pico binary info"
6+
default y
7+
help
8+
Binary info is able to embed machine readable information with the binary in FLASH.
9+
It can read with picotool(https://github.com/raspberrypi/picotool).
10+
11+
if RPI_PICO_BINARY_INFO
12+
13+
config RPI_PICO_BINARY_INFO_PROGRAM_NAME_ENABLE
14+
bool "Override program name in binary info"
15+
16+
config RPI_PICO_BINARY_INFO_PROGRAM_NAME
17+
string "Override string for program name in binary info"
18+
depends on RPI_PICO_BINARY_INFO_PROGRAM_NAME_ENABLE
19+
20+
config RPI_PICO_BINARY_INFO_PROGRAM_URL_ENABLE
21+
bool "Override program url in binary info"
22+
23+
config RPI_PICO_BINARY_INFO_PROGRAM_URL
24+
string "String for program description in binary info"
25+
depends on RPI_PICO_BINARY_INFO_PROGRAM_URL_ENABLE
26+
27+
config RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION_ENABLE
28+
bool "Override program descrpition in binary info"
29+
30+
config RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION
31+
string "String for program description in binary info"
32+
depends on RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION_ENABLE
33+
34+
config RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE_ENABLE
35+
bool "Override build date in binary info"
36+
37+
config RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE
38+
string "Override string for build date in binary info"
39+
depends on RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE_ENABLE
40+
41+
config RPI_PICO_BINARY_INFO_PROGRAM_VERSION_STRING_ENABLE
42+
bool "Override program version in binary info"
43+
default y
44+
45+
config RPI_PICO_BINARY_INFO_SDK_VERSION_STRING_ENABLE
46+
bool "Override sdk version in binary info"
47+
default y
48+
49+
config RPI_PICO_BINARY_INFO_PICO_BOARD_ENABLE
50+
bool "Override board in binary info"
51+
default y
52+
53+
config RPI_PICO_BINARY_INFO_ATTRIBUTE_BUILD_TYPE_ENABLE
54+
bool "Override board in binary info"
55+
default y
56+
57+
config RPI_PICO_BINARY_INFO_BOOT_STAGE2_NAME_ENABLE
58+
bool "Override board in binary info"
59+
default y
60+
61+
config RPI_PICO_BINARY_INFO_PINS_WITH_FUNC_ENABLE
62+
bool "Override board in binary info"
63+
default y
64+
65+
endif
Lines changed: 285 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,285 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/kernel.h>
8+
#include <zephyr/devicetree.h>
9+
#include <zephyr/sys/util_macro.h>
10+
11+
#include <zephyr/dt-bindings/pinctrl/rpi-pico-pinctrl-common.h>
12+
13+
#include <soc.h>
14+
15+
#include <boot_stage2/config.h>
16+
#include <pico/binary_info.h>
17+
18+
#include <version.h>
19+
#ifdef HAS_APP_VERSION
20+
#include <app_version.h>
21+
#endif
22+
23+
/* utils for pin encoding calcluation */
24+
25+
#ifdef CONFIG_SOC_RP2040
26+
#define ENCODE_PIN(n, idx, off) ((uint32_t)PIN_NUM(n, idx) << (2 + (idx + off + 1) * 5))
27+
#define MAX_PIN_ENTRY 4
28+
#define BI_ENCODE_PINS_WITH_FUNC __bi_encoded_pins_with_func
29+
#else
30+
#define ENCODE_PIN(n, idx, off) ((uint64_t)PIN_NUM(n, idx) << ((idx + off + 1) * 8))
31+
#define MAX_PIN_ENTRY 6
32+
#define BI_ENCODE_PINS_WITH_FUNC __bi_encoded_pins_64_with_func
33+
#endif
34+
35+
#define PIN_NUM(n, idx) ((DT_PROP_BY_IDX(n, pinmux, idx) >> RP2_PIN_NUM_POS) & RP2_PIN_NUM_MASK)
36+
#define PIN_FUNC(n, idx) (DT_PROP_BY_IDX(n, pinmux, idx) & RP2_ALT_FUNC_MASK)
37+
38+
/* Pin counts and offs for groups */
39+
40+
#define PIN_GROUP_PIN_COUNT(node_id) \
41+
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pinmux), (DT_PROP_LEN(node_id, pinmux)), (0))
42+
43+
#define PIN_GROUP_PIN_COUNT_MATCH(child, idx) \
44+
COND_CODE_1(IS_EQ(DT_NODE_CHILD_IDX(child), idx), (PIN_GROUP_PIN_COUNT(child)), (0))
45+
#define PIN_GROUP_PIN_COUNT_BY_IDX(node_id, idx) \
46+
/* \
47+
* The raspberrypi,pico-pinctrl child binding does not permit a "status" \
48+
* property, so the STATUS_OK iterator still visits every group. \
49+
*/ \
50+
(DT_FOREACH_CHILD_STATUS_OKAY_SEP_VARGS(node_id, PIN_GROUP_PIN_COUNT_MATCH, (+), idx))
51+
52+
#define PIN_GROUP_OFFSET_STEP_TERM(i, node_id) +PIN_GROUP_PIN_COUNT_BY_IDX(node_id, i)
53+
#define PIN_GROUP_OFFSET_STEP(node_id, count) \
54+
(0 LISTIFY(count, PIN_GROUP_OFFSET_STEP_TERM, (), node_id))
55+
#define PIN_GROUP_OFFSET_0(node_id) (0)
56+
#define PIN_GROUP_OFFSET_1(node_id) PIN_GROUP_OFFSET_STEP(node_id, 1)
57+
#define PIN_GROUP_OFFSET_2(node_id) PIN_GROUP_OFFSET_STEP(node_id, 2)
58+
#define PIN_GROUP_OFFSET_3(node_id) PIN_GROUP_OFFSET_STEP(node_id, 3)
59+
#define PIN_GROUP_OFFSET_4(node_id) PIN_GROUP_OFFSET_STEP(node_id, 4)
60+
#define PIN_GROUP_OFFSET_5(node_id) PIN_GROUP_OFFSET_STEP(node_id, 5)
61+
#define PIN_GROUP_OFFSET_6(node_id) PIN_GROUP_OFFSET_STEP(node_id, 6)
62+
#define PIN_GROUP_OFFSET_7(node_id) PIN_GROUP_OFFSET_STEP(node_id, 7)
63+
#define PIN_GROUP_OFFSET_8(node_id) PIN_GROUP_OFFSET_STEP(node_id, 8)
64+
#define PIN_GROUP_OFFSET_9(node_id) PIN_GROUP_OFFSET_STEP(node_id, 9)
65+
#define PIN_GROUP_OFFSET_10(node_id) PIN_GROUP_OFFSET_STEP(node_id, 10)
66+
#define PIN_GROUP_OFFSET_11(node_id) PIN_GROUP_OFFSET_STEP(node_id, 11)
67+
#define PIN_GROUP_OFFSET_12(node_id) PIN_GROUP_OFFSET_STEP(node_id, 12)
68+
#define PIN_GROUP_OFFSET_13(node_id) PIN_GROUP_OFFSET_STEP(node_id, 13)
69+
#define PIN_GROUP_OFFSET_14(node_id) PIN_GROUP_OFFSET_STEP(node_id, 14)
70+
#define PIN_GROUP_OFFSET_15(node_id) PIN_GROUP_OFFSET_STEP(node_id, 15)
71+
#define PIN_GROUP_OFFSET_16(node_id) PIN_GROUP_OFFSET_STEP(node_id, 16)
72+
#define PIN_GROUP_OFFSET_17(node_id) PIN_GROUP_OFFSET_STEP(node_id, 17)
73+
#define PIN_GROUP_OFFSET_18(node_id) PIN_GROUP_OFFSET_STEP(node_id, 18)
74+
#define PIN_GROUP_OFFSET_19(node_id) PIN_GROUP_OFFSET_STEP(node_id, 19)
75+
#define PIN_GROUP_OFFSET_20(node_id) PIN_GROUP_OFFSET_STEP(node_id, 20)
76+
#define PIN_GROUP_OFFSET_21(node_id) PIN_GROUP_OFFSET_STEP(node_id, 21)
77+
#define PIN_GROUP_OFFSET_22(node_id) PIN_GROUP_OFFSET_STEP(node_id, 22)
78+
#define PIN_GROUP_OFFSET_23(node_id) PIN_GROUP_OFFSET_STEP(node_id, 23)
79+
#define PIN_GROUP_OFFSET_24(node_id) PIN_GROUP_OFFSET_STEP(node_id, 24)
80+
81+
#define PIN_GROUP_OFFSET(node_id, idx) UTIL_CAT(PIN_GROUP_OFFSET_, idx)(node_id)
82+
#define PIN_GROUP_TOTAL_PINS(node_id) PIN_GROUP_OFFSET(node_id, DT_CHILD_NUM(node_id))
83+
84+
/* Iterate groups and subgroups */
85+
86+
#define FOREACH_PIN_SUBGROUP(n, fn, sep, ...) \
87+
DT_FOREACH_PROP_ELEM_SEP_VARGS(n, pinmux, fn, sep, __VA_ARGS__)
88+
#define FOREACH_PIN_GROUP(n, sep, fn, ...) \
89+
DT_FOREACH_CHILD_SEP_VARGS(n, FOREACH_PIN_SUBGROUP, sep, fn, sep, __VA_ARGS__)
90+
91+
/* Encode the pins in a group */
92+
93+
#define IS_LAST_PIN(end, idx, off) (((idx) + (off) + 1) == (end))
94+
#define PIN_TERMINATE(n, p, i, off, end) \
95+
(IS_LAST_PIN(end, i, off) ? ENCODE_PIN(n, i, (off) + 1) : 0)
96+
#define PIN_ENTRY(n, p, i, off) (DT_PROP_HAS_IDX(n, p, i) ? ENCODE_PIN(n, i, off) : 0)
97+
#define ENCODE_EACH_PIN(n, p, i, end) \
98+
PIN_ENTRY(n, p, i, PIN_GROUP_OFFSET(DT_PARENT(n), DT_NODE_CHILD_IDX(n))) | \
99+
PIN_TERMINATE(n, p, i, PIN_GROUP_OFFSET(DT_PARENT(n), DT_NODE_CHILD_IDX(n)), end)
100+
#define ENCODE_GROUP_PINS(n) (FOREACH_PIN_GROUP(n, (|), ENCODE_EACH_PIN, PIN_GROUP_TOTAL_PINS(n)))
101+
102+
/* Get group-wide pin functions */
103+
104+
#define EACH_PIN_FUNC(n, p, i, _) PIN_FUNC(n, i)
105+
#define GROUP_PIN_FUNC(n) (FOREACH_PIN_GROUP(n, (|), EACH_PIN_FUNC))
106+
#define GROUP_PIN_HEADER(n) (BI_PINS_ENCODING_MULTI | (GROUP_PIN_FUNC(n) << 3))
107+
108+
/* Check if pin functions are all equal within a group */
109+
110+
#define EACH_PIN_FUNC_IS(n, p, i, func) (PIN_FUNC(n, i) == func)
111+
#define ALL_PINS_FUNC_IS(n, pinfunc) (FOREACH_PIN_GROUP(n, (&&), EACH_PIN_FUNC_IS, pinfunc))
112+
113+
#define PIN_GROUP_(n) \
114+
BUILD_ASSERT(PIN_GROUP_TOTAL_PINS(n) > 0, "Group must contain at least one pin"); \
115+
BUILD_ASSERT(PIN_GROUP_TOTAL_PINS(n) <= MAX_PIN_ENTRY, "Too many pin in group"); \
116+
BUILD_ASSERT(ALL_PINS_FUNC_IS(n, GROUP_PIN_FUNC(n)), "Group pins have identical func"); \
117+
bi_decl(BI_ENCODE_PINS_WITH_FUNC(GROUP_PIN_HEADER(n) | ENCODE_GROUP_PINS(n)))
118+
119+
#define PIN_GROUP_SELECT(child, idx) \
120+
COND_CODE_1(IS_EQ(DT_NODE_CHILD_IDX(child), idx), (PIN_GROUP_(child)), ())
121+
122+
#define PIN_GROUP(n, idx) DT_FOREACH_CHILD_VARGS(n, PIN_GROUP_SELECT, idx)
123+
124+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_NAME
125+
#define BI_PROGRAM_NAME CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_NAME
126+
#endif
127+
128+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION
129+
#define BI_PROGRAM_DESCRIPTION CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION
130+
#endif
131+
132+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_URL
133+
#define BI_PROGRAM_URL CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_URL
134+
#endif
135+
136+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE
137+
#define BI_PROGRAM_BUILD_DATE CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE
138+
#else
139+
#define BI_PROGRAM_BUILD_DATE __DATE__
140+
#endif
141+
142+
extern uint32_t __rom_region_end;
143+
bi_decl(bi_binary_end((intptr_t)&__rom_region_end));
144+
145+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_NAME_ENABLE
146+
bi_decl(bi_program_name((uint32_t)BI_PROGRAM_NAME));
147+
#endif
148+
149+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PICO_BOARD_ENABLE
150+
bi_decl(bi_string(BINARY_INFO_TAG_RASPBERRY_PI, BINARY_INFO_ID_RP_PICO_BOARD,
151+
(uint32_t)CONFIG_BOARD));
152+
#endif
153+
154+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_SDK_VERSION_STRING_ENABLE
155+
bi_decl(bi_string(BINARY_INFO_TAG_RASPBERRY_PI, BINARY_INFO_ID_RP_SDK_VERSION,
156+
(uint32_t)"zephyr-" STRINGIFY(BUILD_VERSION)));
157+
#endif
158+
159+
#if defined(CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_VERSION_STRING_ENABLE) && defined(HAS_APP_VERSION)
160+
bi_decl(bi_program_version_string((uint32_t)APP_VERSION_EXTENDED_STRING));
161+
#endif
162+
163+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_DESCRIPTION_ENABLE
164+
bi_decl(bi_program_description((uint32_t)BI_PROGRAM_DESCRIPTION));
165+
#endif
166+
167+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_URL_ENABLE
168+
bi_decl(bi_program_url((uint32_t)BI_PROGRAM_URL));
169+
#endif
170+
171+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PROGRAM_BUILD_DATE_ENABLE
172+
bi_decl(bi_program_build_date_string((uint32_t)BI_PROGRAM_BUILD_DATE));
173+
#endif
174+
175+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_BOOT_STAGE2_NAME_ENABLE
176+
bi_decl(bi_string(BINARY_INFO_TAG_RASPBERRY_PI, BINARY_INFO_ID_RP_BOOT2_NAME,
177+
(uint32_t)PICO_BOOT_STAGE2_NAME));
178+
#endif
179+
180+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_ATTRIBUTE_BUILD_TYPE_ENABLE
181+
#ifdef CONFIG_DEBUG
182+
bi_decl(bi_program_build_attribute((uint32_t)"Debug"));
183+
#else
184+
bi_decl(bi_program_build_attribute((uint32_t)"Release"));
185+
#endif
186+
#endif
187+
188+
#ifdef CONFIG_RPI_PICO_BINARY_INFO_PINS_WITH_FUNC_ENABLE
189+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 0
190+
PIN_GROUP(DT_NODELABEL(pinctrl), 0);
191+
#endif
192+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 1
193+
PIN_GROUP(DT_NODELABEL(pinctrl), 1);
194+
#endif
195+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 2
196+
PIN_GROUP(DT_NODELABEL(pinctrl), 2);
197+
#endif
198+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 3
199+
PIN_GROUP(DT_NODELABEL(pinctrl), 3);
200+
#endif
201+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 4
202+
PIN_GROUP(DT_NODELABEL(pinctrl), 4);
203+
#endif
204+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 5
205+
PIN_GROUP(DT_NODELABEL(pinctrl), 5);
206+
#endif
207+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 6
208+
PIN_GROUP(DT_NODELABEL(pinctrl), 6);
209+
#endif
210+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 7
211+
PIN_GROUP(DT_NODELABEL(pinctrl), 7);
212+
#endif
213+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 8
214+
PIN_GROUP(DT_NODELABEL(pinctrl), 8);
215+
#endif
216+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 9
217+
PIN_GROUP(DT_NODELABEL(pinctrl), 9);
218+
#endif
219+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 10
220+
PIN_GROUP(DT_NODELABEL(pinctrl), 10);
221+
#endif
222+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 11
223+
PIN_GROUP(DT_NODELABEL(pinctrl), 11);
224+
#endif
225+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 12
226+
PIN_GROUP(DT_NODELABEL(pinctrl), 12);
227+
#endif
228+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 13
229+
PIN_GROUP(DT_NODELABEL(pinctrl), 13);
230+
#endif
231+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 14
232+
PIN_GROUP(DT_NODELABEL(pinctrl), 14);
233+
#endif
234+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 15
235+
PIN_GROUP(DT_NODELABEL(pinctrl), 15);
236+
#endif
237+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 16
238+
PIN_GROUP(DT_NODELABEL(pinctrl), 16);
239+
#endif
240+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 17
241+
PIN_GROUP(DT_NODELABEL(pinctrl), 17);
242+
#endif
243+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 18
244+
PIN_GROUP(DT_NODELABEL(pinctrl), 18);
245+
#endif
246+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 19
247+
PIN_GROUP(DT_NODELABEL(pinctrl), 19);
248+
#endif
249+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 20
250+
PIN_GROUP(DT_NODELABEL(pinctrl), 20);
251+
#endif
252+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 21
253+
PIN_GROUP(DT_NODELABEL(pinctrl), 21);
254+
#endif
255+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 22
256+
PIN_GROUP(DT_NODELABEL(pinctrl), 22);
257+
#endif
258+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 23
259+
PIN_GROUP(DT_NODELABEL(pinctrl), 23);
260+
#endif
261+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 24
262+
PIN_GROUP(DT_NODELABEL(pinctrl), 24);
263+
#endif
264+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 25
265+
PIN_GROUP(DT_NODELABEL(pinctrl), 25);
266+
#endif
267+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 26
268+
PIN_GROUP(DT_NODELABEL(pinctrl), 26);
269+
#endif
270+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 27
271+
PIN_GROUP(DT_NODELABEL(pinctrl), 27);
272+
#endif
273+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 28
274+
PIN_GROUP(DT_NODELABEL(pinctrl), 28);
275+
#endif
276+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 29
277+
PIN_GROUP(DT_NODELABEL(pinctrl), 29);
278+
#endif
279+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 30
280+
PIN_GROUP(DT_NODELABEL(pinctrl), 30);
281+
#endif
282+
#if DT_CHILD_NUM(DT_NODELABEL(pinctrl)) > 31
283+
PIN_GROUP(DT_NODELABEL(pinctrl), 31);
284+
#endif
285+
#endif
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2023 TOKITA Hiroshi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
. = ALIGN(4);
8+
__binary_info_start = .;
9+
KEEP(*(.binary_info.keep.*))
10+
*(.binary_info.*)
11+
__binary_info_end = .;

0 commit comments

Comments
 (0)