From: Thomas Chou Date: Sun, 29 Nov 2015 06:01:03 +0000 (+0800) Subject: ns16550: change reg-shift property default to zero X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=80e061467008a7d6e8670c2630b5be6b428d00cb;p=project%2Fbcm63xx%2Fu-boot.git ns16550: change reg-shift property default to zero Change reg-shift property default to zero. When the integer property is missing, it should be taken as zero. This is consistent to Linux drivers/tty/serial/of_serial.c. The x86 and most powerpc use reg-shift of 0. Most others use reg-shift of 2. While reg-shift of 1 is rarely used. Signed-off-by: Thomas Chou Reviewed-by: Bin Meng Reviewed-by: Mugunthan V N Acked-by: Simon Glass --- diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 166deabcd4..23243ee84e 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -403,7 +403,7 @@ int ns16550_serial_ofdata_to_platdata(struct udevice *dev) plat->base = addr; plat->reg_shift = fdtdec_get_int(gd->fdt_blob, dev->of_offset, - "reg-shift", 1); + "reg-shift", 0); plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset, "clock-frequency", CONFIG_SYS_NS16550_CLK);