1*0ab3f9a7SHaojian Zhuang /* 2*0ab3f9a7SHaojian Zhuang * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. 3*0ab3f9a7SHaojian Zhuang * 4*0ab3f9a7SHaojian Zhuang * Redistribution and use in source and binary forms, with or without 5*0ab3f9a7SHaojian Zhuang * modification, are permitted provided that the following conditions are met: 6*0ab3f9a7SHaojian Zhuang * 7*0ab3f9a7SHaojian Zhuang * Redistributions of source code must retain the above copyright notice, this 8*0ab3f9a7SHaojian Zhuang * list of conditions and the following disclaimer. 9*0ab3f9a7SHaojian Zhuang * 10*0ab3f9a7SHaojian Zhuang * Redistributions in binary form must reproduce the above copyright notice, 11*0ab3f9a7SHaojian Zhuang * this list of conditions and the following disclaimer in the documentation 12*0ab3f9a7SHaojian Zhuang * and/or other materials provided with the distribution. 13*0ab3f9a7SHaojian Zhuang * 14*0ab3f9a7SHaojian Zhuang * Neither the name of ARM nor the names of its contributors may be used 15*0ab3f9a7SHaojian Zhuang * to endorse or promote products derived from this software without specific 16*0ab3f9a7SHaojian Zhuang * prior written permission. 17*0ab3f9a7SHaojian Zhuang * 18*0ab3f9a7SHaojian Zhuang * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19*0ab3f9a7SHaojian Zhuang * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*0ab3f9a7SHaojian Zhuang * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*0ab3f9a7SHaojian Zhuang * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22*0ab3f9a7SHaojian Zhuang * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*0ab3f9a7SHaojian Zhuang * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*0ab3f9a7SHaojian Zhuang * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*0ab3f9a7SHaojian Zhuang * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*0ab3f9a7SHaojian Zhuang * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*0ab3f9a7SHaojian Zhuang * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*0ab3f9a7SHaojian Zhuang * POSSIBILITY OF SUCH DAMAGE. 29*0ab3f9a7SHaojian Zhuang */ 30*0ab3f9a7SHaojian Zhuang 31*0ab3f9a7SHaojian Zhuang #ifndef __PL061_GPIO_H__ 32*0ab3f9a7SHaojian Zhuang #define __PL061_GPIO_H__ 33*0ab3f9a7SHaojian Zhuang 34*0ab3f9a7SHaojian Zhuang #include <gpio.h> 35*0ab3f9a7SHaojian Zhuang 36*0ab3f9a7SHaojian Zhuang void pl061_gpio_register(uintptr_t base_addr, int gpio_dev); 37*0ab3f9a7SHaojian Zhuang void pl061_gpio_init(void); 38*0ab3f9a7SHaojian Zhuang 39*0ab3f9a7SHaojian Zhuang #endif /* __PL061_GPIO_H__ */ 40