Skip to content

Commit

Permalink
plat: rpi: rpi5: enable scmi Pin control protocol
Browse files Browse the repository at this point in the history
Enable ARM SCMI Pin control protocol for RPI5.

Signed-off-by: Grygorii Strashko <[email protected]>
  • Loading branch information
Grygorii Strashko committed Aug 17, 2024
1 parent a4f42f3 commit 923e777
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion plat/rpi/rpi5/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,16 @@ BL31_SOURCES += drivers/scmi-msg/base.c \
drivers/scmi-msg/entry.c \
drivers/scmi-msg/smt.c \
drivers/scmi-msg/reset_domain.c \
drivers/scmi-msg/scmi_pinctrl.c \
drivers/pinctrl/pinctrl.c \
plat/rpi/rpi5/scmi/scmi.c \
plat/rpi/rpi5/scmi/scmi_reset.c \
plat/rpi/rpi5/rpi5_svc_setup.c
plat/rpi/rpi5/rpi5_svc_setup.c \
plat/rpi/rpi5/bcm2712_pinctrl.c

BL31_SOURCES += drivers/scmi-msg/scmi_pinctrl.c \
drivers/pinctrl/pinctrl.c \
plat/rpi/rpi5/bcm2712_pinctrl.c
endif

$(eval $(call add_define,RPI3_BL33_IN_AARCH32))
Expand Down
4 changes: 3 additions & 1 deletion plat/rpi/rpi5/rpi5_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <rpi_shared.h>

#ifdef SCMI_SERVER_SUPPORT
extern void bcm2712_pinctrl_init(void);
extern void rpi5_init_scmi_server(void);
#endif

Expand All @@ -16,7 +17,8 @@ void plat_rpi_bl31_custom_setup(void)
/* Enable arch timer */
generic_delay_timer_init();

#ifdef SCMI_SERVER_SUPPORT
#if SCMI_SERVER_SUPPORT
bcm2712_pinctrl_init();
rpi5_init_scmi_server();
#endif
}
1 change: 1 addition & 0 deletions plat/rpi/rpi5/scmi/scmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const char *plat_scmi_sub_vendor_name(void)

static const uint8_t plat_protocol_list[] = {
SCMI_PROTOCOL_ID_RESET_DOMAIN,
SCMI_PROTOCOL_ID_PINCTRL,
0U /* Null termination */
};

Expand Down

0 comments on commit 923e777

Please sign in to comment.