summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2012-01-26 01:14:09 +0530
committerGerrit <chrome-bot@google.com>2012-02-24 12:25:38 -0800
commitd8403a167014adc0751c3b8a3044560fe3b8f2d5 (patch)
treef6f8330de8fb4020d2866ccfa9d1e3f798680a45
parent5e43dbeb6f4132629c65b619bf2b78fc4cd93f53 (diff)
arm: tegra3: header file for sdmmc controller registers
BUG=chromium-os:23496 TEST=build for Cardhu, Waluigi and Seaboard Change-Id: Ifa06f941798ff242197dcd31f4091567d91fe4b2 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: https://gerrit.chromium.org/gerrit/14810
-rw-r--r--arch/arm/include/asm/arch-tegra3/sdmmc.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra3/sdmmc.h b/arch/arm/include/asm/arch-tegra3/sdmmc.h
new file mode 100644
index 0000000000..e330d58e85
--- /dev/null
+++ b/arch/arm/include/asm/arch-tegra3/sdmmc.h
@@ -0,0 +1,54 @@
+/*
+ * (C) Copyright 2010,2011
+ * NVIDIA Corporation <www.nvidia.com>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _SDMMC_H_
+#define _SDMMC_H_
+
+/* SD/MMC Controller regs */
+struct sdmmc_ctlr {
+ uint reserved0[9]; /* 0x0 ~ 0x20 */
+ uint present_state; /* 0x24 */
+ uint reserved2[2]; /* 0x28, 0x2c */
+ uint int_status; /* 0x30 */
+ uint int_status_enb; /* 0x34 */
+ uint int_sig_enb; /* 0x38 */
+ uint reserved3[5]; /* 0x3c ~ 0x4c */
+ uint force_event; /* 0x50 */
+ uint reserved5[43]; /* 0x54 ~ 0xfc */
+ uint vendor_clk_cntrl; /* _VENDOR_CLOCK_CNTRL_0, 0x100 */
+ uint vendor_spi_cntrl; /* _VENDOR_SPI_CNTRL_0, 0x104 */
+ uint vendor_spi_intr_status;/* _VENDOR_SPI_INTR_STATUS_0, 0x108 */
+ uint reserved10; /* 0x10c */
+ uint vendor_boot_cntrl; /* _VENDOR_BOOT_CNTRL_0, 0x110 */
+ uint vendor_boot_ack_timeout;/* _VENDOR_BOOT_ACK_TIMEOUT, 0x114 */
+ uint vendor_boot_dat_timeout;/* _VENDOR_BOOT_DAT_TIMEOUT, 0x118 */
+ uint vendor_debounce_cnt; /* _VENDOR_DEBOUNCE_COUNT_0, 0x11c */
+ uint vendor_misc_cntrl; /* _VENDOR_MISC_CNTRL_0, 0x120 */
+ uint reserved11[47]; /* 0x124 ~ 0x1dc */
+ uint sdmemcomp_pad_ctrl; /* _SDMEMCOMPPADCTRL_0, 0x1e0 */
+ uint auto_cal_config; /* _AUTO_CAL_CONFIG_0, 0x1e4 */
+ uint auto_cal_interval; /* _AUTO_CAL_INTERVAL_0, 0x1e8 */
+ uint auto_cal_status; /* _AUTO_CAL_STATUS_0, 0x1ec */
+};
+
+#endif