]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: msm-geni: support livetree
authorCaleb Connolly <caleb.connolly@linaro.org>
Wed, 3 Apr 2024 12:07:44 +0000 (14:07 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Apr 2024 15:46:47 +0000 (17:46 +0200)
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>
drivers/serial/serial_msm_geni.c

index 4aa0bc8c72bc2d4df8746183707c9484cd0edd2e..5260474fb9a4745e2ef7dac2743bf5418a2c67ef 100644 (file)
@@ -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 = {