arch/arm/mach-mv78xx0/mpp.h

Source file repositories/reference/linux-study-clean/arch/arm/mach-mv78xx0/mpp.h

File Facts

System
Linux kernel
Corpus path
arch/arm/mach-mv78xx0/mpp.h
Extension
.h
Size
11511 bytes
Lines
338
Domain
Architecture Layer
Bucket
arch/arm
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __MV78X00_MPP_H
#define __MV78X00_MPP_H

#define MPP(_num, _sel, _in, _out, _78100_A0) (\
    /* MPP number */        ((_num) & 0xff) | \
    /* MPP select value */        (((_sel) & 0xf) << 8) | \
    /* may be input signal */    ((!!(_in)) << 12) | \
    /* may be output signal */    ((!!(_out)) << 13) | \
    /* available on A0 */    ((!!(_78100_A0)) << 14))

                /*   num sel  i  o  78100_A0  */

#define MPP_78100_A0_MASK    MPP(0, 0x0, 0, 0, 1)

#define MPP0_GPIO        MPP(0, 0x0, 1, 1, 1)
#define MPP0_GE0_COL        MPP(0, 0x1, 0, 0, 1)
#define MPP0_GE1_TXCLK        MPP(0, 0x2, 0, 0, 1)
#define MPP0_UNUSED        MPP(0, 0x3, 0, 0, 1)

#define MPP1_GPIO        MPP(1, 0x0, 1, 1, 1)
#define MPP1_GE0_RXERR        MPP(1, 0x1, 0, 0, 1)
#define MPP1_GE1_TXCTL        MPP(1, 0x2, 0, 0, 1)
#define MPP1_UNUSED        MPP(1, 0x3, 0, 0, 1)

#define MPP2_GPIO        MPP(2, 0x0, 1, 1, 1)
#define MPP2_GE0_CRS        MPP(2, 0x1, 0, 0, 1)
#define MPP2_GE1_RXCTL        MPP(2, 0x2, 0, 0, 1)
#define MPP2_UNUSED        MPP(2, 0x3, 0, 0, 1)

#define MPP3_GPIO        MPP(3, 0x0, 1, 1, 1)
#define MPP3_GE0_TXERR        MPP(3, 0x1, 0, 0, 1)
#define MPP3_GE1_RXCLK        MPP(3, 0x2, 0, 0, 1)
#define MPP3_UNUSED        MPP(3, 0x3, 0, 0, 1)

#define MPP4_GPIO        MPP(4, 0x0, 1, 1, 1)
#define MPP4_GE0_TXD4        MPP(4, 0x1, 0, 0, 1)
#define MPP4_GE1_TXD0        MPP(4, 0x2, 0, 0, 1)
#define MPP4_UNUSED        MPP(4, 0x3, 0, 0, 1)

#define MPP5_GPIO        MPP(5, 0x0, 1, 1, 1)
#define MPP5_GE0_TXD5        MPP(5, 0x1, 0, 0, 1)
#define MPP5_GE1_TXD1        MPP(5, 0x2, 0, 0, 1)
#define MPP5_UNUSED        MPP(5, 0x3, 0, 0, 1)

#define MPP6_GPIO        MPP(6, 0x0, 1, 1, 1)
#define MPP6_GE0_TXD6        MPP(6, 0x1, 0, 0, 1)
#define MPP6_GE1_TXD2        MPP(6, 0x2, 0, 0, 1)
#define MPP6_UNUSED        MPP(6, 0x3, 0, 0, 1)

#define MPP7_GPIO        MPP(7, 0x0, 1, 1, 1)
#define MPP7_GE0_TXD7        MPP(7, 0x1, 0, 0, 1)
#define MPP7_GE1_TXD3        MPP(7, 0x2, 0, 0, 1)
#define MPP7_UNUSED        MPP(7, 0x3, 0, 0, 1)

#define MPP8_GPIO        MPP(8, 0x0, 1, 1, 1)
#define MPP8_GE0_RXD4        MPP(8, 0x1, 0, 0, 1)
#define MPP8_GE1_RXD0        MPP(8, 0x2, 0, 0, 1)
#define MPP8_UNUSED        MPP(8, 0x3, 0, 0, 1)

#define MPP9_GPIO        MPP(9, 0x0, 1, 1, 1)
#define MPP9_GE0_RXD5        MPP(9, 0x1, 0, 0, 1)
#define MPP9_GE1_RXD1        MPP(9, 0x2, 0, 0, 1)
#define MPP9_UNUSED        MPP(9, 0x3, 0, 0, 1)

#define MPP10_GPIO        MPP(10, 0x0, 1, 1, 1)
#define MPP10_GE0_RXD6        MPP(10, 0x1, 0, 0, 1)
#define MPP10_GE1_RXD2        MPP(10, 0x2, 0, 0, 1)
#define MPP10_UNUSED        MPP(10, 0x3, 0, 0, 1)

#define MPP11_GPIO        MPP(11, 0x0, 1, 1, 1)
#define MPP11_GE0_RXD7        MPP(11, 0x1, 0, 0, 1)
#define MPP11_GE1_RXD3        MPP(11, 0x2, 0, 0, 1)
#define MPP11_UNUSED        MPP(11, 0x3, 0, 0, 1)

#define MPP12_GPIO        MPP(12, 0x0, 1, 1, 1)
#define MPP12_M_BB        MPP(12, 0x3, 0, 0, 1)
#define MPP12_UA0_CTSn        MPP(12, 0x4, 0, 0, 1)
#define MPP12_NAND_FLASH_REn0    MPP(12, 0x5, 0, 0, 1)
#define MPP12_TDM0_SCSn        MPP(12, 0X6, 0, 0, 1)
#define MPP12_UNUSED        MPP(12, 0x1, 0, 0, 1)

#define MPP13_GPIO        MPP(13, 0x0, 1, 1, 1)
#define MPP13_SYSRST_OUTn    MPP(13, 0x3, 0, 0, 1)
#define MPP13_UA0_RTSn        MPP(13, 0x4, 0, 0, 1)
#define MPP13_NAN_FLASH_WEn0    MPP(13, 0x5, 0, 0, 1)
#define MPP13_TDM_SCLK        MPP(13, 0x6, 0, 0, 1)
#define MPP13_UNUSED        MPP(13, 0x1, 0, 0, 1)

#define MPP14_GPIO        MPP(14, 0x0, 1, 1, 1)
#define MPP14_SATA1_ACTn    MPP(14, 0x3, 0, 0, 1)

Annotation

Implementation Notes