1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright 2008 Openmoko, Inc. 4 * Copyright 2008 Simtec Electronics 5 * http://armlinux.simtec.co.uk/ 6 * Ben Dooks <ben@simtec.co.uk> 7 * 8 * Samsung Platform - GPIO pin configuration helper definitions 9 */ 10 11 /* This is meant for core cpu support, machine or other driver files 12 * should not be including this header. 13 */ 14 15 #ifndef __PLAT_GPIO_CFG_HELPERS_H 16 #define __PLAT_GPIO_CFG_HELPERS_H __FILE__ 17 18 /* As a note, all gpio configuration functions are entered exclusively, either 19 * with the relevant lock held or the system prevented from doing anything else 20 * by disabling interrupts. 21 */ 22 23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, 24 unsigned int off, unsigned int config) 25 { 26 return (chip->config->set_config)(chip, off, config); 27 } 28 29 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, 30 unsigned int off, samsung_gpio_pull_t pull) 31 { 32 return (chip->config->set_pull)(chip, off, pull); 33 } 34 35 #endif /* __PLAT_GPIO_CFG_HELPERS_H */ 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.