Skip to content
Snippets Groups Projects
Commit f388a26d authored by Hans de Goede's avatar Hans de Goede
Browse files

sunxi: Fix sun5i mbus speed when booting old kernels


Older linux-sunxi-3.4 kernels override our PLL6 setting with 300 MHz,
halving the mbus frequency, so set it to 300 MHz ourselves and base the
mbus divider on that.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
parent 52defe8f
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,16 @@ struct sunxi_ccm_reg {
#define PLL1_CFG_DEFAULT 0xa1005000
#if defined CONFIG_OLD_SUNXI_KERNEL_COMPAT && defined CONFIG_MACH_SUN5I
/*
* Older linux-sunxi-3.4 kernels override our PLL6 setting with 300 MHz,
* halving the mbus frequency, so set it to 300 MHz ourselves and base the
* mbus divider on that.
*/
#define PLL6_CFG_DEFAULT 0xa1009900
#else
#define PLL6_CFG_DEFAULT 0xa1009911
#endif
/* nand clock */
#define NAND_CLK_SRC_OSC24 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment