]> git.baikalelectronics.ru Git - uboot.git/commit
serial: uniphier: set clock rate without clock-frequency property
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 19 Jun 2018 07:11:45 +0000 (16:11 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 22 Jun 2018 16:28:15 +0000 (01:28 +0900)
commit4744f9463397dc8bac3f20fc4096e152fe6707ce
tree6919d60fed007a5abe0f72866bae67f1e002da6b
parente81c6afc7ecd5b0f189922071870e099c55e29f5
serial: uniphier: set clock rate without clock-frequency property

In Linux, the clock rate of the UART is given by the clock driver.

If you try to follow that in U-Boot, you would end up with adding
more u-boot,dm-pre-reloc properties, and also the clock driver would
be too big for SPL, which is used for UniPhier ARMv7 platform.

The current solution is to add 'clock-frequency' property to the
UART nodes, but it does not exist in the DT files in Linux.  I do
not want to let DT diverge for U-Boot.

Check the SoC compatible and set the clock rate according to it.
This will be helpful to sync DT between Linux and U-Boot.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/serial/serial_uniphier.c