aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpu/riscv_cpu.c
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2019-02-25 08:15:08 +0000
committerAndes <uboot@andestech.com>2019-02-27 09:12:33 +0800
commitee0633ef8b027960bd53ab62abb6f6fc25b1c66b (patch)
tree5a0c2f82bc53413bf9a5130e2839dd4089ec4c85 /drivers/cpu/riscv_cpu.c
parenta3682008a03c0d4a58bcf62ca1e4a37187c9a8df (diff)
downloadu-boot-ee0633ef8b027960bd53ab62abb6f6fc25b1c66b.zip
u-boot-ee0633ef8b027960bd53ab62abb6f6fc25b1c66b.tar.gz
u-boot-ee0633ef8b027960bd53ab62abb6f6fc25b1c66b.tar.bz2
drivers: serial_sifive: Skip baudrate config if no input clock
It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'drivers/cpu/riscv_cpu.c')
0 files changed, 0 insertions, 0 deletions