u-boot/arch
Philipp Tomsich f5a432959a rockchip: clk: rk3368: implement MMC/SD clock reparenting
The original clock support for MMC/SD cards on the RK3368 suffered
from a tendency to select a divider less-or-equal to the the one
giving the requested clock-rate: this can lead to higher-than-expected
(or rather: higher than supported) clock rates for the MMC/SD
communiction.

This change rewrites the MMC/SD clock generation to:
 * always generate a clock less-than-or-equal to the requested clock
 * support reparenting among the CPLL, GPLL and OSC24M parents to
   generate the highest clock that does not exceed the requested rate

In addition to this, the Linux DTS uses HCLK_MMC/HCLK_SDMMC instead of
SCLK_MMC/SCLK_SDMMC: to match this (and to ensure that clock setup
always works), we adjust the driver appropriately.

This includes the changes from:
 - rockchip: clk: rk3368: convert MMC_PLL_SEL_* definitions to shifted-value form

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-13 17:12:32 +02:00
..
arc arc: Add support for HS Development Kit board 2017-06-29 19:34:10 +03:00
arm rockchip: clk: rk3368: implement MMC/SD clock reparenting 2017-08-13 17:12:32 +02:00
m68k Convert CONFIG_ENV_IS_IN_FLASH to Kconfig 2017-07-25 21:20:02 -04:00
microblaze microblaze: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
mips mips: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
nds32 nds32: Remove include files from common.h 2017-06-05 11:02:36 -04:00
nios2 fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
powerpc Convert CONFIG_CMD_REGINFO to Kconfig 2017-08-11 15:41:53 -04:00
sandbox sandbox: remove os_putc() and os_puts() 2017-07-28 12:02:47 -06:00
sh Convert CONFIG_CMD_SH_ZIMAGEBOOT to Kconfig 2017-08-11 15:41:57 -04:00
x86 x86: acpi: Fix build error with certain configuration 2017-08-08 21:13:05 +08:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig Convert CONFIG_CMD_ZBOOT to Kconfig 2017-08-11 17:44:53 -04:00