aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2024-04-03 14:07:44 +0200
committerCaleb Connolly <caleb.connolly@linaro.org>2024-04-04 17:46:47 +0200
commit320a3ecef7e85b8d2cdf549a292045d520a2171a (patch)
tree09d6f13881368980cb84aa2c3be60b1822f82fe1 /drivers/serial
parent45279915636ca2f126ffa886db032d66fb76259b (diff)
downloadu-boot-320a3ecef7e85b8d2cdf549a292045d520a2171a.zip
u-boot-320a3ecef7e85b8d2cdf549a292045d520a2171a.tar.gz
u-boot-320a3ecef7e85b8d2cdf549a292045d520a2171a.tar.bz2
serial: msm-geni: support livetree
When using OF_LIVE, the debug UART driver won't be probed if it's a subnode of the geni-se-qup controller. Add a NOP driver for the controller to correctly discover its child nodes. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_msm_geni.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c
index 4aa0bc8..5260474 100644
--- a/drivers/serial/serial_msm_geni.c
+++ b/drivers/serial/serial_msm_geni.c
@@ -606,6 +606,19 @@ U_BOOT_DRIVER(serial_msm_geni) = {
.flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
};
+static const struct udevice_id geniqup_ids[] = {
+ { .compatible = "qcom,geni-se-qup" },
+ { }
+};
+
+U_BOOT_DRIVER(geni_se_qup) = {
+ .name = "geni-se-qup",
+ .id = UCLASS_NOP,
+ .of_match = geniqup_ids,
+ .bind = dm_scan_fdt_dev,
+ .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
+};
+
#ifdef CONFIG_DEBUG_UART_MSM_GENI
static struct msm_serial_data init_serial_data = {