From patchwork Mon Mar 9 20:40:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 5971191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 22A989F39D for ; Mon, 9 Mar 2015 20:43:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B4DB2024D for ; Mon, 9 Mar 2015 20:43:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F408A20450 for ; Mon, 9 Mar 2015 20:43:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV4U6-0006vl-AR; Mon, 09 Mar 2015 20:41:06 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YV4U1-0006qI-PV for linux-arm-kernel@lists.infradead.org; Mon, 09 Mar 2015 20:41:02 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t29KeY0N019777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Mar 2015 16:40:34 -0400 Received: from shalem.localdomain.com (vpn1-6-38.ams2.redhat.com [10.36.6.38]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t29KeTVq020725; Mon, 9 Mar 2015 16:40:32 -0400 From: Hans de Goede To: Felipe Balbi , Kishon Vijay Abraham I , Maxime Ripard Subject: [PATCH 01/15] ARM: sunxi: Add register bit definitions for SRAM mapping syscon Date: Mon, 9 Mar 2015 21:40:14 +0100 Message-Id: <1425933628-9672-2-git-send-email-hdegoede@redhat.com> In-Reply-To: <1425933628-9672-1-git-send-email-hdegoede@redhat.com> References: <1425933628-9672-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150309_134101_883554_D25AA8E3 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: devicetree , Roman Byshko , linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede , Chen-Yu Tsai , Jens Kuske , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chen-Yu Tsai Signed-off-by: Chen-Yu Tsai Signed-off-by: Jens Kuske Acked-by: Lee Jones Signed-off-by: Hans de Goede --- include/linux/mfd/syscon/sun4i-sc.h | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/linux/mfd/syscon/sun4i-sc.h diff --git a/include/linux/mfd/syscon/sun4i-sc.h b/include/linux/mfd/syscon/sun4i-sc.h new file mode 100644 index 0000000..fb970d9 --- /dev/null +++ b/include/linux/mfd/syscon/sun4i-sc.h @@ -0,0 +1,42 @@ +/** + * sun4i-sc.h - Allwinner sun4i system control register bit definitions + * + * Copyright (C) 2014 Chen-Yu Tsai + * + * Chen-Yu Tsai + * + * 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. + */ + +#ifndef __LINUX_SUN4I_SC_H +#define __LINUX_SUN4I_SC_H + +#include + +/* Registers */ +#define SUN4I_SC0 0x00 +#define SUN4I_SC1 0x04 + +/* SRAM control register 0 bits */ +#define SUN4I_SC0_SRAM_C1_MAP_VE 0x7fffffff + +/* SRAM control register 1 bits */ +#define SUN4I_SC1_BIST_NDMA_CTRL_SEL BIT(31) +#define SUN4I_SC1_SRAM_C3_MAP_ISP BIT(12) +#define SUN4I_SC1_SRAM_C2_MAP_MASK 0x0300 +#define SUN4I_SC1_SRAM_C2_MAP_AE 0x0100 +#define SUN4I_SC1_SRAM_C2_MAP_CE 0x0200 +#define SUN4I_SC1_SRAM_C2_MAP_ACE 0x0300 +#define SUN4I_SC1_SRAM_A3_A4_MAP_MASK 0x0030 +#define SUN4I_SC1_SRAM_A3_A4_MAP_EMAC 0x0010 +#define SUN4I_SC1_SRAM_D_MAP_USB0 BIT(0) + +#endif /* __LINUX_SUN4I_SC_H */