mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
serial: s5p: get the port id number from the alias of the device node
The port id, if not specified in the device node, can be obtained from the alias of the device node listed in the aliases node. Cc: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
166097e877
commit
5ab6c4df27
1 changed files with 2 additions and 2 deletions
|
@ -174,8 +174,8 @@ static int s5p_serial_ofdata_to_platdata(struct udevice *dev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
plat->reg = (struct s5p_uart *)addr;
|
plat->reg = (struct s5p_uart *)addr;
|
||||||
plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset, "id", -1);
|
plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
|
||||||
|
"id", dev->seq);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue