The DWMMC controller internally divided clock by values in CLKSEL registers, so we must adjust MMC clock for that. Added a divide function to stdlib.h which should be useful in other contexts. BUG=none TEST=emerge-peach_pit chromeos-coreboot-peach_pit # and boots successfully. Change-Id: I44f55b634cfc6fd81d76631595b6928c862a219f Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/66657 Commit-Queue: Ronald G. Minnich <rminnich@chromium.org> Reviewed-by: Ronald G. Minnich <rminnich@chromium.org> Tested-by: Ronald G. Minnich <rminnich@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org> |
||
|---|---|---|
| .. | ||
| amd | ||
| armltd | ||
| intel | ||
| samsung | ||
| via | ||
| x86 | ||
| Kconfig | ||
| Makefile.inc | ||