~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/arm/include/asm/arch-tegra/gpio.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2011, Google Inc. All rights reserved.
 
3
 * SPDX-License-Identifier:     GPL-2.0+
 
4
 */
 
5
 
 
6
#ifndef _TEGRA_GPIO_H_
 
7
#define _TEGRA_GPIO_H_
 
8
 
 
9
#define MAX_NUM_GPIOS           (TEGRA_GPIO_PORTS * TEGRA_GPIO_BANKS * 8)
 
10
#define GPIO_NAME_SIZE          20      /* gpio_request max label len */
 
11
 
 
12
#define GPIO_BANK(x)            ((x) >> 5)
 
13
#define GPIO_PORT(x)            (((x) >> 3) & 0x3)
 
14
#define GPIO_FULLPORT(x)        ((x) >> 3)
 
15
#define GPIO_BIT(x)             ((x) & 0x7)
 
16
 
 
17
/*
 
18
 * Tegra-specific GPIO API
 
19
 */
 
20
 
 
21
void gpio_info(void);
 
22
 
 
23
#define gpio_status()   gpio_info()
 
24
#endif  /* TEGRA_GPIO_H_ */