Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Add TIAM335X SDMMC BASE definitions
details: https://anonhg.NetBSD.org/src/rev/5cde8f96db0e
branches: trunk
changeset: 787665:5cde8f96db0e
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 28 00:50:22 2013 +0000
description:
Add TIAM335X SDMMC BASE definitions
diffstat:
sys/arch/arm/omap/omap3_sdhc.c | 10 +++++-----
sys/arch/arm/omap/omap3_sdmmcreg.h | 6 +++++-
2 files changed, 10 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 27d20193dc47 -r 5cde8f96db0e sys/arch/arm/omap/omap3_sdhc.c
--- a/sys/arch/arm/omap/omap3_sdhc.c Thu Jun 27 23:22:04 2013 +0000
+++ b/sys/arch/arm/omap/omap3_sdhc.c Fri Jun 28 00:50:22 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omap3_sdhc.c,v 1.11 2013/06/18 15:04:53 matt Exp $ */
+/* $NetBSD: omap3_sdhc.c,v 1.12 2013/06/28 00:50:22 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.11 2013/06/18 15:04:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.12 2013/06/28 00:50:22 matt Exp $");
#include "opt_omap.h"
@@ -89,9 +89,9 @@
static const struct am335x_sdhc am335x_sdhc[] = {
/* XXX All offset by 0x100 because of the am335x's mmc registers. */
- { "MMCHS0", 0x48060100, 64, { AM335X_PRCM_CM_PER, 0x3c } },
- { "MMC1", 0x481d8100, 28, { AM335X_PRCM_CM_PER, 0xf4 } },
- { "MMCHS2", 0x47810100, 29, { AM335X_PRCM_CM_WKUP, 0xf8 } },
+ { "MMCHS0", SDMMC1_BASE_TIAM335X, 64, { AM335X_PRCM_CM_PER, 0x3c } },
+ { "MMC1", SDMMC2_BASE_TIAM335X, 28, { AM335X_PRCM_CM_PER, 0xf4 } },
+ { "MMCHS2", SDMMC3_BASE_TIAM335X, 29, { AM335X_PRCM_CM_WKUP, 0xf8 } },
};
#endif
diff -r 27d20193dc47 -r 5cde8f96db0e sys/arch/arm/omap/omap3_sdmmcreg.h
--- a/sys/arch/arm/omap/omap3_sdmmcreg.h Thu Jun 27 23:22:04 2013 +0000
+++ b/sys/arch/arm/omap/omap3_sdmmcreg.h Fri Jun 28 00:50:22 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omap3_sdmmcreg.h,v 1.5 2013/06/18 15:04:53 matt Exp $ */
+/* $NetBSD: omap3_sdmmcreg.h,v 1.6 2013/06/28 00:50:23 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -45,6 +45,10 @@
#define SDMMC4_BASE_4430 0x480D1000 // same for omap5
#define SDMMC5_BASE_4430 0x480D5000 // same for omap5
+#define SDMMC1_BASE_TIAM335X 0x48006100
+#define SDMMC2_BASE_TIAM335X 0x481d8100
+#define SDMMC3_BASE_TIAM335X 0x47810100
+
#define OMAP3_SDMMC_SDHC_OFFSET 0x100
#define OMAP3_SDMMC_SDHC_SIZE 0x100
Home |
Main Index |
Thread Index |
Old Index