serial: ns16550: Handle zero <clock-frequency> value

A working device tree node of ns16550 should never be populated
with value zero for the <clock-frequency> property. Unfortunately
this is the case for the QEMU ppce500 target.

Let's try to assign plat->clock to CONFIG_SYS_NS16550_CLK as the
last resort to handle such case.

This commit should be reverted when:

- The following QEMU patch [1] is merged, and
- U-Boot CI has upgraded its QEMU version that contains the fix

[1] http://patchwork.ozlabs.org/project/qemu-devel/patch/1612362288-22216-2-git-send-email-bmeng.cn@gmail.com/

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
45 jobs for dm-pull-3mar21 in 66 minutes and 42 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Testsuites
passed Build envtools #233060
all

00:00:25

passed Build tools-only #233059
all

00:00:27

passed Check for configs without MAINTAINERS entry #233058
all

00:00:23

passed cppcheck #233054
all

00:00:51

passed grep TODO/FIXME/HACK #233055
all

00:00:22

passed htmldocs #233056
all

00:00:59

passed Run binman, buildman, dtoc, Kconfig and patman testsuites #233061
all

00:01:31

passed Run tests for Nokia RX-51 (aka N900) #233062
all

00:03:04

passed sloccount #233057
all

00:00:49

 
  Test.Py
passed evb-ast2500 test.py #233066
all

00:00:54

passed integratorcp_cm926ejs test.py #233070
all

00:00:57

passed qemu_arm64 test.py #233072
all

00:01:41

passed qemu_arm test.py #233071
all

00:01:36

passed qemu_malta64el test.py #233080
all

00:00:54

passed qemu_malta64 test.py #233079
all

00:00:55

passed qemu_maltael test.py #233078
all

00:00:54

passed qemu_malta test.py #233077
all

00:00:55

passed qemu_mips64el test.py #233076
all

00:00:53

passed qemu_mips64 test.py #233075
all

00:00:54

passed qemu_mipsel test.py #233074
all

00:00:53

passed qemu_mips test.py #233073
all

00:00:54

passed qemu-ppce500 test.py #233081
all

00:00:55

passed qemu-riscv32_spl test.py #233084
all

00:00:59

passed qemu-riscv32 test.py #233082
all

00:01:13

passed qemu-riscv64_spl test.py #233085
all

00:01:03

passed qemu-riscv64 test.py #233083
all

00:01:20

passed qemu-x86_64 test.py #233087
all

00:01:35

passed qemu-x86 test.py #233086
all

00:01:31

passed r2dplus_i82557c test.py #233088
all

00:00:58

passed r2dplus_pcnet test.py #233089
all

00:00:54

passed r2dplus_rtl8139 test.py #233090
all

00:00:55

passed r2dplus_tulip test.py #233091
all

00:00:53

passed sandbox_flattree test.py #233067
all

00:01:11

passed sandbox_spl test.py #233065
all

00:01:08

passed sandbox test.py #233063
all

00:03:27

passed sandbox with clang test.py #233064
all

00:02:55

passed vexpress_ca15_tc2 test.py #233068
all

00:00:55

passed vexpress_ca9x4 test.py #233069
all

00:00:57

passed xilinx_versal_virt test.py #233093
all

00:00:57

passed xilinx_zynq_virt test.py #233092
all

00:01:00

passed xtfpga test.py #233094
all

00:00:54

 
  World Build
passed build all 32bit ARM platforms #233095
all

00:33:04

passed build all 64bit ARM platforms #233096
all

00:23:58

passed build all other platforms #233098
all

00:06:59

passed build all PowerPC platforms #233097
all

00:11:41