Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 authored by Linus Torvalds on 05 March 2023, 22:52:03 UTC
Linux 6.3-rc1
Tip revision: fe15c26
gpio-davinci.h
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * DaVinci GPIO Platform Related Defines
 *
 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
 */

#ifndef __DAVINCI_GPIO_PLATFORM_H
#define __DAVINCI_GPIO_PLATFORM_H

struct davinci_gpio_platform_data {
	bool	no_auto_base;
	u32	base;
	u32	ngpio;
	u32	gpio_unbanked;
};

/* Convert GPIO signal to GPIO pin number */
#define GPIO_TO_PIN(bank, gpio)	(16 * (bank) + (gpio))

#endif
back to top