Message ID | 20200614235229.1835920-6-seanga2@gmail.com |
---|---|
State | Superseded |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=fEHQlr0v; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49lWXS07Vsz9sQx for <incoming@patchwork.ozlabs.org>; Mon, 15 Jun 2020 09:54:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7BF381D15; Mon, 15 Jun 2020 01:53:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fEHQlr0v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B6E6C81CA0; Mon, 15 Jun 2020 01:53:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C68D6813A9 for <u-boot@lists.denx.de>; Mon, 15 Jun 2020 01:52:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x744.google.com with SMTP id n141so14193662qke.2 for <u-boot@lists.denx.de>; Sun, 14 Jun 2020 16:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7KFpAckuhfYhGoQV/EDzmE8WU2161sHXlsuRkAaYvvY=; b=fEHQlr0vb/znn6RucNfCo3XpZ9YjvFUEM/HeH7vBidr5PYU4thXGpoiUwLu/cXa2An ibDivGIcHMDggMk7veXazyxmYd543GsDQTFv+GM+UeduO/7FL/Jmn8pgtrYTny1xlPoB 1vRMgBJn+r1tXh+kR3sc5Tjo3pnDf7Jkye/1pWnrJx3Dp9bPM7Azpuo8nSBcORWbHS71 J89KeAMJ052DXJ15JeOd6mJyHqmOb83xpcRdA1C0EPDsIwv1yBSwTb6bpEA/L5wCsTIO Ktt3Z1EXDp1CvCOahatKdbtyaC/SAYTzYZSf/hiPkic0s3Al30vTtEYalTd5VtCrrI23 ZOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7KFpAckuhfYhGoQV/EDzmE8WU2161sHXlsuRkAaYvvY=; b=IN39Tho0pViYXVA7SAChi66zX13wEQ3u+842smAwmBOy/UyiMF+qLt9xXCh7v0553Q +yfGgrsqiOvPzE6t04HfBFO3jnSVglSNcGVzvUXU3AA+9eqBaEh1r7dGXiNLuX4n896+ Zq2y55BdcTBy8eIIpkmX0lSiyoqNTppBoYmOD1yQKjBa780obf1hDm9yGq2e2jTCb8ne 45KR1J5ZA7KxYnGR7d2bsgafoLYcarYSRdys222eGVPT5OWcu5RFOTFwvT10OMWREPpz 5s+Los6SuL1uWMe2WNsEcvpi70MnOTdWa5+yWTGa4SOurNYFlgAsXj0BgfQ1SSNonXZu ETgQ== X-Gm-Message-State: AOAM531RRHinpXVeA5zxbtZVi+dswrZI/FCBpffCPf+9NOjJ9hcTQVpu vqB8i6fm3LbXgL/azODuERTig2t40hnuTQ== X-Google-Smtp-Source: ABdhPJw+owjFP/iTv1wmLdfBY1YJCoSmfX+/+ubPI/gywwMz8alOalFYPkzqb766jvwyIzKsBwc+Zw== X-Received: by 2002:a37:4594:: with SMTP id s142mr12972101qka.183.1592178776396; Sun, 14 Jun 2020 16:52:56 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id d23sm10212084qtn.38.2020.06.14.16.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 16:52:55 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>, Rick Chen <rickchen36@gmail.com>, Sean Anderson <seanga2@gmail.com>, Ley Foon Tan <ley.foon.tan@intel.com>, Anatolij Gustschin <agust@denx.de>, Marek Vasut <marex@denx.de>, Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Subject: [PATCH v3 05/10] gpio: dw: Fix warnings about casting int to pointer Date: Sun, 14 Jun 2020 19:52:24 -0400 Message-Id: <20200614235229.1835920-6-seanga2@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614235229.1835920-1-seanga2@gmail.com> References: <20200614235229.1835920-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
riscv: Add FPIOA and GPIO support for Kendryte K210
|
expand
|
diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c index e5e3518194..bf324f5239 100644 --- a/drivers/gpio/dwapb_gpio.c +++ b/drivers/gpio/dwapb_gpio.c @@ -40,7 +40,7 @@ struct gpio_dwapb_platdata { const char *name; int bank; int pins; - fdt_addr_t base; + void __iomem *base; }; static int dwapb_gpio_direction_input(struct udevice *dev, unsigned pin) @@ -176,7 +176,7 @@ static int gpio_dwapb_bind(struct udevice *dev) if (!plat) return -ENOMEM; - plat->base = base; + plat->base = (void *)base; plat->bank = bank; plat->pins = ofnode_read_u32_default(node, "snps,nr-gpios", 0);