Skip to content

Commit e5fb4b1

Browse files
committed
drivers: remoteproc: use ram_console_buf directly
Signed-off-by: Simon Maurer <[email protected]>
1 parent ef13ac0 commit e5fb4b1

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

drivers/remoteproc/remoteproc.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,8 @@ LOG_MODULE_REGISTER(openamp_remoteproc, CONFIG_REMOTEPROC_LOG_LEVEL);
5555
#define RESOURCE_TABLE_ATTR \
5656
__attribute__((__section__(DT_PROP(VDEV_NODE, resource_table)))))
5757

58-
59-
#ifdef CONFIG_RAM_CONSOLE_BUFFER_SECTION
60-
#if DT_HAS_CHOSEN(zephyr_ram_console)
61-
62-
static const uint32_t ram_console_buf = DT_REG_ADDR(DT_CHOSEN(zephyr_ram_console));
63-
64-
#else
65-
#error "Lack of chosen property zephyr,ram_console!"
66-
#endif
67-
68-
#else
69-
extern char ram_console_buf[];
70-
#endif
71-
7258
#define __resource Z_GENERIC_SECTION(.resource_table)
7359

74-
75-
7660
#define CARVEOUT_OFFSET(node_id, prop, idx) offsetof(struct fw_resource_table, carveouts[idx]),
7761
#define VDEV_OFFSET(node_id) offsetof(struct fw_resource_table, vdevs[DT_NODE_CHILD_IDX(node_id)]),
7862

@@ -148,6 +132,8 @@ struct fw_resource_table {
148132
#endif
149133
} METAL_PACKED_END __aligned(8);
150134

135+
extern char ram_console_buf[];
136+
151137

152138
struct fw_resource_table __resource resource_table = {
153139
.hdr = {

0 commit comments

Comments
 (0)