diff options
author | Pali Rohár <pali@kernel.org> | 2022-08-17 22:37:49 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-08-23 13:38:47 +0300 |
commit | f395cf9cacb1c54f95bce09473e37b8ac2b5517d (patch) | |
tree | d8189f05edb628d23eb4bfabf660442583eb2c14 /board/Synology | |
parent | 616278bd2c563a6d12a2347ce5cfc3512f77ee42 (diff) | |
download | u-boot-f395cf9cacb1c54f95bce09473e37b8ac2b5517d.tar.xz |
arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register
Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 MHz.
This information is undocumented in public Marvell Kirkwood Functional
Specifications [2], but is available in Linux v3.15 kirkwood code [1].
Commit 8ac303d49f89 ("arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK")
broke support for Marvell 88F6281 SoCs because it was expected that all
those SoCs have TCLK running at 200 MHz as specified in Marvell 88F6281
Hardware Specifications [3].
Fix broken support for 88F6281 by detecting CONFIG_SYS_TCLK from SAR
register, like it was doing Linux v3.15.
[1] - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/mach-kirkwood/common.c?h=v3.15#n542
[2] - https://web.archive.org/web/20130730091033/http://www.marvell.com/embedded-processors/kirkwood/assets/FS_88F6180_9x_6281_OpenSource.pdf
[3] - https://web.archive.org/web/20120620073511/http://www.marvell.com/embedded-processors/kirkwood/assets/HW_88F6281_OpenSource.pdf
Update by Stefan 2022-08-23:
- Fix compilation error for ds109
Fixes: 8ac303d49f89 ("arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/Synology')
-rw-r--r-- | board/Synology/ds109/ds109.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/Synology/ds109/ds109.c b/board/Synology/ds109/ds109.c index 3914faaf37..9e7f6ac6c7 100644 --- a/board/Synology/ds109/ds109.c +++ b/board/Synology/ds109/ds109.c @@ -10,6 +10,7 @@ #include <miiphy.h> #include <net.h> #include <asm/global_data.h> +#include <asm/io.h> #include <asm/setup.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> |