Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi add sun4i-a10 support



details:   https://anonhg.NetBSD.org/src/rev/236ef246cd54
branches:  trunk
changeset: 826999:236ef246cd54
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 08 13:48:40 2017 +0000

description:
add sun4i-a10 support

diffstat:

 sys/arch/arm/sunxi/sunxi_mmc.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r e22d9d99dc6b -r 236ef246cd54 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c    Sun Oct 08 13:35:03 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c    Sun Oct 08 13:48:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.8 2017/10/07 12:21:53 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.9 2017/10/08 13:48:40 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.8 2017/10/07 12:21:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.9 2017/10/08 13:48:40 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -171,6 +171,13 @@
 #define MMC_READ(sc, reg) \
        bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, (reg))
 
+static const struct sunxi_mmc_config sun4i_a10_mmc_config = {
+       .idma_xferlen = 0x2000,
+       .dma_ftrglevel = 0x20070008,
+       .delays = NULL,
+       .flags = 0,
+};
+
 static const struct sunxi_mmc_config sun5i_a13_mmc_config = {
        .idma_xferlen = 0x10000,
        .dma_ftrglevel = 0x20070008,
@@ -195,6 +202,7 @@
 };
 
 static const struct of_compat_data compat_data[] = {
+       { "allwinner,sun4i-a10-mmc",    (uintptr_t)&sun4i_a10_mmc_config },
        { "allwinner,sun5i-a13-mmc",    (uintptr_t)&sun5i_a13_mmc_config },
        { "allwinner,sun7i-a20-mmc",    (uintptr_t)&sun7i_a20_mmc_config },
        { "allwinner,sun50i-a64-mmc",   (uintptr_t)&sun50i_a64_mmc_config },



Home | Main Index | Thread Index | Old Index