switch-coreboot/src
David Hendricks e0cfad2b56 exynos5420: re-factor the SDMMC GPIO config routines
The existing GPIO config routines for SDMMC0-2 are over-generalized
and somewhat confusing as a result. It would work nicely if all SDMMC
ports were configured in the same fashion, but there are a few
exceptions.

For example, the inner function runs differently if we're using 8 bits
of data instead of 4, so a big chunk is skipped for SDMMC2. SDMMC0
requires SD_0_CDn to be an output rather than alternate function and
must have a value set.

This patch trades some verbosity for simplicy. Now the SDMMC GPIO
configuration a straight-forward sequence of GPIO operations
without any exceptions.

Signed-off-by: David Hendricks <dhendrix@chromium.org>

Change-Id: If75075b24c6588c4c1b3be3fb9b1aa95e2fac2d1
Reviewed-on: https://gerrit.chromium.org/gerrit/65248
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/4446
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2013-12-21 22:46:05 +01:00
..
arch armv7: Add CPU & MP primitive instructions 2013-12-21 22:45:57 +01:00
console snprintf: lockless operation 2013-12-07 19:27:53 +01:00
cpu exynos5420: re-factor the SDMMC GPIO config routines 2013-12-21 22:46:05 +01:00
device Add Kconfig options to override Subsystem Vendor and Device ID 2013-12-21 12:02:40 +01:00
drivers max77802: update header 2013-12-21 13:29:42 +01:00
ec chromeec: Add event methods for EC requested throttle 2013-12-21 12:02:14 +01:00
include Add a specific post code for S3 resume failures 2013-12-21 12:02:43 +01:00
lib Pit: graphics 2013-12-21 22:45:06 +01:00
mainboard snow: Set up the i2s0 pins during boot 2013-12-21 22:45:37 +01:00
northbridge haswell: add option to change DqPinsInterleaved 2013-12-21 12:02:56 +01:00
southbridge lynxpoint: Add configuration option for SATA gen3 DTLE registers 2013-12-21 12:03:00 +01:00
superio Correct file permissions. 2013-12-07 00:39:09 +01:00
vendorcode chromeos: Check for recovery reason code in shared data 2013-12-21 07:28:37 +01:00
Kconfig Add GRUB2 payload to build system 2013-11-19 01:07:25 +01:00