diff options
author | glebius <glebius@FreeBSD.org> | 2012-02-09 10:20:41 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-02-09 10:20:41 +0000 |
commit | bdf6c01f6dc2ef7a36886ddf75d1be91cb6d8680 (patch) | |
tree | 0a7f04eb96ef79c3499e757b4c94d9324735cea2 /sys/dev/sdhci/sdhci.h | |
parent | 27a58a0dde89f99954c275fce42e656d2c5a7cbf (diff) | |
download | FreeBSD-src-bdf6c01f6dc2ef7a36886ddf75d1be91cb6d8680.zip FreeBSD-src-bdf6c01f6dc2ef7a36886ddf75d1be91cb6d8680.tar.gz |
Add support for RICOH R5CE823 card reader, that can be found in
some Lenovo laptops.
The conroller needs a quirk to lower its frequency, and after
that it operates normally.
Diffstat (limited to 'sys/dev/sdhci/sdhci.h')
-rw-r--r-- | sys/dev/sdhci/sdhci.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/sdhci/sdhci.h b/sys/dev/sdhci/sdhci.h index a0ad133..5c0253e 100644 --- a/sys/dev/sdhci/sdhci.h +++ b/sys/dev/sdhci/sdhci.h @@ -38,6 +38,15 @@ #define PCI_SLOT_INFO_FIRST_BAR(x) ((x) & 7) /* + * RICOH specific PCI registers + */ +#define SDHC_PCI_MODE_KEY 0xf9 +#define SDHC_PCI_MODE 0x150 +#define SDHC_PCI_MODE_SD20 0x10 +#define SDHC_PCI_BASE_FREQ_KEY 0xfc +#define SDHC_PCI_BASE_FREQ 0xe1 + +/* * Controller registers */ |