include/dt-bindings/pinctrl/am33xx.h

Source file repositories/reference/linux-study-clean/include/dt-bindings/pinctrl/am33xx.h

File Facts

System
Linux kernel
Corpus path
include/dt-bindings/pinctrl/am33xx.h
Extension
.h
Size
5703 bytes
Lines
173
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _DT_BINDINGS_PINCTRL_AM33XX_H
#define _DT_BINDINGS_PINCTRL_AM33XX_H

#include <dt-bindings/pinctrl/omap.h>

/* am33xx specific mux bit defines */
#undef PULL_ENA
#undef INPUT_EN

#define PULL_DISABLE		(1 << 3)
#define INPUT_EN		(1 << 5)
#define SLEWCTRL_SLOW		(1 << 6)
#define SLEWCTRL_FAST		0

/* update macro depending on INPUT_EN and PULL_ENA */
#undef PIN_OUTPUT
#undef PIN_OUTPUT_PULLUP
#undef PIN_OUTPUT_PULLDOWN
#undef PIN_INPUT
#undef PIN_INPUT_PULLUP
#undef PIN_INPUT_PULLDOWN

#define PIN_OUTPUT		(PULL_DISABLE)
#define PIN_OUTPUT_PULLUP	(PULL_UP)
#define PIN_OUTPUT_PULLDOWN	0
#define PIN_INPUT		(INPUT_EN | PULL_DISABLE)
#define PIN_INPUT_PULLUP	(INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN	(INPUT_EN)

/* undef non-existing modes */
#undef PIN_OFF_NONE
#undef PIN_OFF_OUTPUT_HIGH
#undef PIN_OFF_OUTPUT_LOW
#undef PIN_OFF_INPUT_PULLUP
#undef PIN_OFF_INPUT_PULLDOWN
#undef PIN_OFF_WAKEUPENABLE

#define AM335X_PIN_OFFSET_MIN			0x0800U

#define AM335X_PIN_GPMC_AD0			0x800
#define AM335X_PIN_GPMC_AD1			0x804
#define AM335X_PIN_GPMC_AD2			0x808
#define AM335X_PIN_GPMC_AD3			0x80c
#define AM335X_PIN_GPMC_AD4			0x810
#define AM335X_PIN_GPMC_AD5			0x814
#define AM335X_PIN_GPMC_AD6			0x818
#define AM335X_PIN_GPMC_AD7			0x81c
#define AM335X_PIN_GPMC_AD8			0x820
#define AM335X_PIN_GPMC_AD9			0x824
#define AM335X_PIN_GPMC_AD10			0x828
#define AM335X_PIN_GPMC_AD11			0x82c
#define AM335X_PIN_GPMC_AD12			0x830
#define AM335X_PIN_GPMC_AD13			0x834
#define AM335X_PIN_GPMC_AD14			0x838
#define AM335X_PIN_GPMC_AD15			0x83c
#define AM335X_PIN_GPMC_A0			0x840
#define AM335X_PIN_GPMC_A1			0x844
#define AM335X_PIN_GPMC_A2			0x848
#define AM335X_PIN_GPMC_A3			0x84c
#define AM335X_PIN_GPMC_A4			0x850
#define AM335X_PIN_GPMC_A5			0x854
#define AM335X_PIN_GPMC_A6			0x858
#define AM335X_PIN_GPMC_A7			0x85c
#define AM335X_PIN_GPMC_A8			0x860
#define AM335X_PIN_GPMC_A9			0x864
#define AM335X_PIN_GPMC_A10			0x868
#define AM335X_PIN_GPMC_A11			0x86c
#define AM335X_PIN_GPMC_WAIT0			0x870
#define AM335X_PIN_GPMC_WPN			0x874
#define AM335X_PIN_GPMC_BEN1			0x878
#define AM335X_PIN_GPMC_CSN0			0x87c
#define AM335X_PIN_GPMC_CSN1			0x880
#define AM335X_PIN_GPMC_CSN2			0x884
#define AM335X_PIN_GPMC_CSN3			0x888
#define AM335X_PIN_GPMC_CLK			0x88c
#define AM335X_PIN_GPMC_ADVN_ALE		0x890
#define AM335X_PIN_GPMC_OEN_REN			0x894
#define AM335X_PIN_GPMC_WEN			0x898
#define AM335X_PIN_GPMC_BEN0_CLE		0x89c
#define AM335X_PIN_LCD_DATA0			0x8a0
#define AM335X_PIN_LCD_DATA1			0x8a4
#define AM335X_PIN_LCD_DATA2			0x8a8
#define AM335X_PIN_LCD_DATA3			0x8ac
#define AM335X_PIN_LCD_DATA4			0x8b0
#define AM335X_PIN_LCD_DATA5			0x8b4
#define AM335X_PIN_LCD_DATA6			0x8b8
#define AM335X_PIN_LCD_DATA7			0x8bc
#define AM335X_PIN_LCD_DATA8			0x8c0
#define AM335X_PIN_LCD_DATA9			0x8c4
#define AM335X_PIN_LCD_DATA10			0x8c8

Annotation

Implementation Notes