13cf391a1SAdrian Chadd# 23cf391a1SAdrian Chadd# Copyright (c) 2012 Adrian Chadd, Xenion Pty Ltd 33cf391a1SAdrian Chadd# All rights reserved. 43cf391a1SAdrian Chadd# 53cf391a1SAdrian Chadd# Redistribution and use in source and binary forms, with or without 63cf391a1SAdrian Chadd# modification, are permitted provided that the following conditions 73cf391a1SAdrian Chadd# are met: 83cf391a1SAdrian Chadd# 1. Redistributions of source code must retain the above copyright 93cf391a1SAdrian Chadd# notice, this list of conditions and the following disclaimer, 103cf391a1SAdrian Chadd# without modification. 113cf391a1SAdrian Chadd# 2. Redistributions in binary form must reproduce at minimum a disclaimer 123cf391a1SAdrian Chadd# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 133cf391a1SAdrian Chadd# redistribution must be conditioned upon including a substantially 143cf391a1SAdrian Chadd# similar Disclaimer requirement for further binary redistribution. 153cf391a1SAdrian Chadd# 163cf391a1SAdrian Chadd# NO WARRANTY 173cf391a1SAdrian Chadd# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 183cf391a1SAdrian Chadd# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 193cf391a1SAdrian Chadd# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 203cf391a1SAdrian Chadd# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 213cf391a1SAdrian Chadd# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 223cf391a1SAdrian Chadd# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 233cf391a1SAdrian Chadd# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 243cf391a1SAdrian Chadd# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 253cf391a1SAdrian Chadd# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 263cf391a1SAdrian Chadd# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 273cf391a1SAdrian Chadd# THE POSSIBILITY OF SUCH DAMAGES. 283cf391a1SAdrian Chadd# 293cf391a1SAdrian Chadd# $FreeBSD$ 303cf391a1SAdrian Chadd# 313cf391a1SAdrian Chadd 32193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/gpio/ 333cf391a1SAdrian Chadd 343cf391a1SAdrian ChaddKMOD= gpiobus 351dd2aa86SLuiz Otavio O SouzaSRCS= gpiobus.c gpioc.c 36606efbc7SIan LeporeSRCS+= gpio_if.c gpio_if.h gpiobus_if.c gpiobus_if.h ofw_bus_if.h 371dd2aa86SLuiz Otavio O SouzaSRCS+= device_if.h bus_if.h opt_platform.h 383cf391a1SAdrian Chadd 39*f1a48eafSJustin Hibbits.if !empty(OPT_FDT) 40*f1a48eafSJustin HibbitsSRCS+= ofw_gpiobus.c 41*f1a48eafSJustin Hibbits.endif 42*f1a48eafSJustin Hibbits 43193d9e76SEnji CooperCFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/ 443cf391a1SAdrian Chadd 453cf391a1SAdrian Chadd.include <bsd.kmod.mk> 46