From owner-svn-src-head@freebsd.org Sun Nov 20 01:59:23 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C87E1C3E234; Sun, 20 Nov 2016 01:59:23 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A9E5812; Sun, 20 Nov 2016 01:59:23 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAK1xM8w093388; Sun, 20 Nov 2016 01:59:22 GMT (envelope-from kan@FreeBSD.org) Received: (from kan@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAK1xMWx093387; Sun, 20 Nov 2016 01:59:22 GMT (envelope-from kan@FreeBSD.org) Message-Id: <201611200159.uAK1xMWx093387@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kan set sender to kan@FreeBSD.org using -f From: Alexander Kabaev Date: Sun, 20 Nov 2016 01:59:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308872 - head/sys/mips/ingenic X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2016 01:59:23 -0000 Author: kan Date: Sun Nov 20 01:59:22 2016 New Revision: 308872 URL: https://svnweb.freebsd.org/changeset/base/308872 Log: Use ofw_gpiobus instead of plain gpiobus for CI20 Requesed by: mmel Modified: head/sys/mips/ingenic/jz4780_gpio.c Modified: head/sys/mips/ingenic/jz4780_gpio.c ============================================================================== --- head/sys/mips/ingenic/jz4780_gpio.c Sat Nov 19 23:58:50 2016 (r308871) +++ head/sys/mips/ingenic/jz4780_gpio.c Sun Nov 20 01:59:22 2016 (r308872) @@ -786,6 +786,13 @@ jz4780_gpio_intr(void *arg) return (FILTER_HANDLED); } +static phandle_t +jz4780_gpio_bus_get_node(device_t bus, device_t dev) +{ + + return (ofw_bus_get_node(bus)); +} + static device_method_t jz4780_gpio_methods[] = { /* Device interface */ DEVMETHOD(device_probe, jz4780_gpio_probe), @@ -815,6 +822,9 @@ static device_method_t jz4780_gpio_metho DEVMETHOD(pic_post_ithread, jz4780_gpio_pic_post_ithread), DEVMETHOD(pic_pre_ithread, jz4780_gpio_pic_pre_ithread), + /* ofw_bus interface */ + DEVMETHOD(ofw_bus_get_node, jz4780_gpio_bus_get_node), + DEVMETHOD_END };