mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-11 15:23:22 +09:00
![Lukasz Majewski](/assets/img/avatar_default.png)
This patch brings the files from Linux kernel (linux-stable/linux-5.1.y SHA1: 5752b50477da)to provide clocks support as it is used on the Linux kernel with Common Clock Framework [CCF] setup. The directory structure has been preserved. The ported code only supports reading information from PLL, MUX, Divider, etc and enabling/disabling the clocks USDHCx/ECSPIx depending on used bus. Moreover, it is agnostic to the alias numbering as the information about the clock is read from the device tree. One needs to pay attention to the comments indicating necessary for U-Boot's driver model changes. If needed, the code can be extended to support the "set" part of the clock management. Signed-off-by: Lukasz Majewski <lukma@denx.de>
23 lines
523 B
Plaintext
23 lines
523 B
Plaintext
config SPL_CLK_IMX6Q
|
|
bool "SPL clock support for i.MX6Q"
|
|
depends on ARCH_MX6 && SPL
|
|
select SPL_CLK
|
|
select SPL_CLK_CCF
|
|
help
|
|
This enables SPL DM/DTS support for clock driver in i.MX6Q platforms.
|
|
|
|
config CLK_IMX6Q
|
|
bool "Clock support for i.MX6Q"
|
|
depends on ARCH_MX6
|
|
select CLK
|
|
select CLK_CCF
|
|
help
|
|
This enables DM/DTS support for clock driver in i.MX6Q platforms.
|
|
|
|
config CLK_IMX8
|
|
bool "Clock support for i.MX8"
|
|
depends on ARCH_IMX8
|
|
select CLK
|
|
help
|
|
This enables support clock driver for i.MX8 platforms.
|