fiq debugger: ttyS2 and fiq debugger don't use the same uart2

Someone may enable uart2 and fiq debugger, which is illegal.

&uart2 {
	status = "okay";
};

&fiq_debugger {
	status = "okay";
};

Change-Id: Ibecd3c3ca69de1216103d7c373a4d282cf93cb30
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
Huibin Hong
2019-03-01 15:32:23 +08:00
committed by Tao Huang
parent 3c04924a04
commit 9d0ed3f2d4

View File

@@ -710,6 +710,11 @@ static int __init rk_fiqdbg_probe(struct platform_device *pdev)
if (!ok)
return -EINVAL;
if (of_device_is_available(np)) {
pr_err("uart%d is enabled, please disable it\n", serial_id);
return -EINVAL;
}
/* parse serial hw irq */
if (!of_irq_parse_one(np, 0, &oirq))
serial_hwirq = oirq.args[1] + 32;