📄 pxa-regs.h
字号:
#define GPIO_ALT_FN_1_OUT 0x180#define GPIO_ALT_FN_2_IN 0x200#define GPIO_ALT_FN_2_OUT 0x280#define GPIO_ALT_FN_3_IN 0x300#define GPIO_ALT_FN_3_OUT 0x380#define GPIO_MD_MASK_NR 0x07f#define GPIO_MD_MASK_DIR 0x080#define GPIO_MD_MASK_FN 0x300#define GPIO1_RTS_MD ( 1 | GPIO_ALT_FN_1_IN)#define GPIO6_MMCCLK_MD ( 6 | GPIO_ALT_FN_1_OUT)#define GPIO8_48MHz_MD ( 8 | GPIO_ALT_FN_1_OUT)#define GPIO8_MMCCS0_MD ( 8 | GPIO_ALT_FN_1_OUT)#define GPIO9_MMCCS1_MD ( 9 | GPIO_ALT_FN_1_OUT)#define GPIO10_RTCCLK_MD (10 | GPIO_ALT_FN_1_OUT)#define GPIO11_3_6MHz_MD (11 | GPIO_ALT_FN_1_OUT)#define GPIO12_32KHz_MD (12 | GPIO_ALT_FN_1_OUT)#define GPIO13_MBGNT_MD (13 | GPIO_ALT_FN_2_OUT)#define GPIO14_MBREQ_MD (14 | GPIO_ALT_FN_1_IN)#define GPIO15_nCS_1_MD (15 | GPIO_ALT_FN_2_OUT)#define GPIO16_PWM0_MD (16 | GPIO_ALT_FN_2_OUT)#define GPIO17_PWM1_MD (17 | GPIO_ALT_FN_2_OUT)#define GPIO18_RDY_MD (18 | GPIO_ALT_FN_1_IN)#define GPIO19_DREQ1_MD (19 | GPIO_ALT_FN_1_IN)#define GPIO20_DREQ0_MD (20 | GPIO_ALT_FN_1_IN)#define GPIO23_SCLK_md (23 | GPIO_ALT_FN_2_OUT)#define GPIO24_SFRM_MD (24 | GPIO_ALT_FN_2_OUT)#define GPIO25_STXD_MD (25 | GPIO_ALT_FN_2_OUT)#define GPIO26_SRXD_MD (26 | GPIO_ALT_FN_1_IN)#define GPIO27_SEXTCLK_MD (27 | GPIO_ALT_FN_1_IN)#define GPIO28_BITCLK_AC97_MD (28 | GPIO_ALT_FN_1_IN)#define GPIO28_BITCLK_I2S_MD (28 | GPIO_ALT_FN_2_IN)#define GPIO29_SDATA_IN_AC97_MD (29 | GPIO_ALT_FN_1_IN)#define GPIO29_SDATA_IN_I2S_MD (29 | GPIO_ALT_FN_2_IN)#define GPIO30_SDATA_OUT_AC97_MD (30 | GPIO_ALT_FN_2_OUT)#define GPIO30_SDATA_OUT_I2S_MD (30 | GPIO_ALT_FN_1_OUT)#define GPIO31_SYNC_AC97_MD (31 | GPIO_ALT_FN_2_OUT)#define GPIO31_SYNC_I2S_MD (31 | GPIO_ALT_FN_1_OUT)#define GPIO32_SDATA_IN1_AC97_MD (32 | GPIO_ALT_FN_1_IN)#define GPIO33_nCS_5_MD (33 | GPIO_ALT_FN_2_OUT)#define GPIO34_FFRXD_MD (34 | GPIO_ALT_FN_1_IN)#define GPIO34_MMCCS0_MD (34 | GPIO_ALT_FN_2_OUT)#define GPIO35_FFCTS_MD (35 | GPIO_ALT_FN_1_IN)#define GPIO36_FFDCD_MD (36 | GPIO_ALT_FN_1_IN)#define GPIO37_FFDSR_MD (37 | GPIO_ALT_FN_1_IN)#define GPIO38_FFRI_MD (38 | GPIO_ALT_FN_1_IN)#define GPIO39_MMCCS1_MD (39 | GPIO_ALT_FN_1_OUT)#define GPIO39_FFTXD_MD (39 | GPIO_ALT_FN_2_OUT)#define GPIO40_FFDTR_MD (40 | GPIO_ALT_FN_2_OUT)#define GPIO41_FFRTS_MD (41 | GPIO_ALT_FN_2_OUT)#define GPIO42_BTRXD_MD (42 | GPIO_ALT_FN_1_IN)#define GPIO43_BTTXD_MD (43 | GPIO_ALT_FN_2_OUT)#define GPIO44_BTCTS_MD (44 | GPIO_ALT_FN_1_IN)#define GPIO45_BTRTS_MD (45 | GPIO_ALT_FN_2_OUT)#define GPIO46_ICPRXD_MD (46 | GPIO_ALT_FN_1_IN)#define GPIO46_STRXD_MD (46 | GPIO_ALT_FN_2_IN)#define GPIO47_ICPTXD_MD (47 | GPIO_ALT_FN_2_OUT)#define GPIO47_STTXD_MD (47 | GPIO_ALT_FN_1_OUT)#define GPIO48_nPOE_MD (48 | GPIO_ALT_FN_2_OUT)#define GPIO49_nPWE_MD (49 | GPIO_ALT_FN_2_OUT)#define GPIO50_nPIOR_MD (50 | GPIO_ALT_FN_2_OUT)#define GPIO51_nPIOW_MD (51 | GPIO_ALT_FN_2_OUT)#define GPIO52_nPCE_1_MD (52 | GPIO_ALT_FN_2_OUT)#define GPIO53_nPCE_2_MD (53 | GPIO_ALT_FN_2_OUT)#define GPIO53_MMCCLK_MD (53 | GPIO_ALT_FN_1_OUT)#define GPIO54_MMCCLK_MD (54 | GPIO_ALT_FN_1_OUT)#define GPIO54_pSKTSEL_MD (54 | GPIO_ALT_FN_2_OUT)#define GPIO55_nPREG_MD (55 | GPIO_ALT_FN_2_OUT)#define GPIO56_nPWAIT_MD (56 | GPIO_ALT_FN_1_IN)#define GPIO57_nIOIS16_MD (57 | GPIO_ALT_FN_1_IN)#define GPIO58_LDD_0_MD (58 | GPIO_ALT_FN_2_OUT)#define GPIO59_LDD_1_MD (59 | GPIO_ALT_FN_2_OUT)#define GPIO60_LDD_2_MD (60 | GPIO_ALT_FN_2_OUT)#define GPIO61_LDD_3_MD (61 | GPIO_ALT_FN_2_OUT)#define GPIO62_LDD_4_MD (62 | GPIO_ALT_FN_2_OUT)#define GPIO63_LDD_5_MD (63 | GPIO_ALT_FN_2_OUT)#define GPIO64_LDD_6_MD (64 | GPIO_ALT_FN_2_OUT)#define GPIO65_LDD_7_MD (65 | GPIO_ALT_FN_2_OUT)#define GPIO66_LDD_8_MD (66 | GPIO_ALT_FN_2_OUT)#define GPIO66_MBREQ_MD (66 | GPIO_ALT_FN_1_IN)#define GPIO67_LDD_9_MD (67 | GPIO_ALT_FN_2_OUT)#define GPIO67_MMCCS0_MD (67 | GPIO_ALT_FN_1_OUT)#define GPIO68_LDD_10_MD (68 | GPIO_ALT_FN_2_OUT)#define GPIO68_MMCCS1_MD (68 | GPIO_ALT_FN_1_OUT)#define GPIO69_LDD_11_MD (69 | GPIO_ALT_FN_2_OUT)#define GPIO69_MMCCLK_MD (69 | GPIO_ALT_FN_1_OUT)#define GPIO70_LDD_12_MD (70 | GPIO_ALT_FN_2_OUT)#define GPIO70_RTCCLK_MD (70 | GPIO_ALT_FN_1_OUT)#define GPIO71_LDD_13_MD (71 | GPIO_ALT_FN_2_OUT)#define GPIO71_3_6MHz_MD (71 | GPIO_ALT_FN_1_OUT)#define GPIO72_LDD_14_MD (72 | GPIO_ALT_FN_2_OUT)#define GPIO72_32kHz_MD (72 | GPIO_ALT_FN_1_OUT)#define GPIO73_LDD_15_MD (73 | GPIO_ALT_FN_2_OUT)#define GPIO73_MBGNT_MD (73 | GPIO_ALT_FN_1_OUT)#define GPIO74_LCD_FCLK_MD (74 | GPIO_ALT_FN_2_OUT)#define GPIO75_LCD_LCLK_MD (75 | GPIO_ALT_FN_2_OUT)#define GPIO76_LCD_PCLK_MD (76 | GPIO_ALT_FN_2_OUT)#define GPIO77_LCD_ACBIAS_MD (77 | GPIO_ALT_FN_2_OUT)#define GPIO78_nCS_2_MD (78 | GPIO_ALT_FN_2_OUT)#define GPIO79_nCS_3_MD (79 | GPIO_ALT_FN_2_OUT)#define GPIO80_nCS_4_MD (80 | GPIO_ALT_FN_2_OUT)#define GPIO117_SCL (117 | GPIO_ALT_FN_1_OUT)#define GPIO118_SDA (118 | GPIO_ALT_FN_1_OUT)/* * Power Manager */#define PMCR __REG(0x40F00000) /* Power Manager Control Register */#define PSSR __REG(0x40F00004) /* Power Manager Sleep Status Register */#define PSPR __REG(0x40F00008) /* Power Manager Scratch Pad Register */#define PWER __REG(0x40F0000C) /* Power Manager Wake-up Enable Register */#define PRER __REG(0x40F00010) /* Power Manager GPIO Rising-Edge Detect Enable Register */#define PFER __REG(0x40F00014) /* Power Manager GPIO Falling-Edge Detect Enable Register */#define PEDR __REG(0x40F00018) /* Power Manager GPIO Edge Detect Status Register */#define PCFR __REG(0x40F0001C) /* Power Manager General Configuration Register */#define PGSR0 __REG(0x40F00020) /* Power Manager GPIO Sleep State Register for GP[31-0] */#define PGSR1 __REG(0x40F00024) /* Power Manager GPIO Sleep State Register for GP[63-32] */#define PGSR2 __REG(0x40F00028) /* Power Manager GPIO Sleep State Register for GP[84-64] */#define PGSR3 __REG(0x40F0002C) /* Power Manager GPIO Sleep State Register for GP[118-96] */#define RCSR __REG(0x40F00030) /* Reset Controller Status Register */#define PSLR __REG(0x40F00034) /* Power Manager Sleep Config Register */#define PSTR __REG(0x40F00038) /*Power Manager Standby Config Register */#define PSNR __REG(0x40F0003C) /*Power Manager Sense Config Register */#define PVCR __REG(0x40F00040) /*Power Manager VoltageControl Register */#define PKWR __REG(0x40F00050) /* Power Manager KB Wake-up Enable Reg */#define PKSR __REG(0x40F00054) /* Power Manager KB Level-Detect Register */#define PCMD(x) __REG(0x40F00080 + x*4)#define PCMD0 __REG(0x40F00080 + 0 * 4)#define PCMD1 __REG(0x40F00080 + 1 * 4)#define PCMD2 __REG(0x40F00080 + 2 * 4)#define PCMD3 __REG(0x40F00080 + 3 * 4)#define PCMD4 __REG(0x40F00080 + 4 * 4)#define PCMD5 __REG(0x40F00080 + 5 * 4)#define PCMD6 __REG(0x40F00080 + 6 * 4)#define PCMD7 __REG(0x40F00080 + 7 * 4)#define PCMD8 __REG(0x40F00080 + 8 * 4)#define PCMD9 __REG(0x40F00080 + 9 * 4)#define PCMD10 __REG(0x40F00080 + 10 * 4)#define PCMD11 __REG(0x40F00080 + 11 * 4)#define PCMD12 __REG(0x40F00080 + 12 * 4)#define PCMD13 __REG(0x40F00080 + 13 * 4)#define PCMD14 __REG(0x40F00080 + 14 * 4)#define PCMD15 __REG(0x40F00080 + 15 * 4)#define PCMD16 __REG(0x40F00080 + 16 * 4)#define PCMD17 __REG(0x40F00080 + 17 * 4)#define PCMD18 __REG(0x40F00080 + 18 * 4)#define PCMD19 __REG(0x40F00080 + 19 * 4)#define PCMD20 __REG(0x40F00080 + 20 * 4)#define PCMD21 __REG(0x40F00080 + 21 * 4)#define PCMD22 __REG(0x40F00080 + 22 * 4)#define PCMD23 __REG(0x40F00080 + 23 * 4)#define PCMD24 __REG(0x40F00080 + 24 * 4)#define PCMD25 __REG(0x40F00080 + 25 * 4)#define PCMD26 __REG(0x40F00080 + 26 * 4)#define PCMD27 __REG(0x40F00080 + 27 * 4)#define PCMD28 __REG(0x40F00080 + 28 * 4)#define PCMD29 __REG(0x40F00080 + 29 * 4)#define PCMD30 __REG(0x40F00080 + 30 * 4)#define PCMD31 __REG(0x40F00080 + 31 * 4)#define PCMD_MBC (1<<12)#define PCMD_DCE (1<<11)#define PCMD_LC (1<<10)/* FIXME: PCMD_SQC need be checked. */#define PCMD_SQC (3<<8) // currently only bit 8 is changerable, // bit 9 should be 0 all day.#define PVCR_VCSA (0x1<<14)#define PVCR_CommandDelay (0xf80)/* define MACRO for Power Manager General Configuration Register (PCFR) */#define PCFR_FVC (0x1 << 10)#define PCFR_PI2C_EN (0x1 << 6)#define PSSR_OTGPH (1 << 6) /* OTG Peripheral control Hold */#define PSSR_RDH (1 << 5) /* Read Disable Hold */#define PSSR_PH (1 << 4) /* Peripheral Control Hold */#define PSSR_VFS (1 << 2) /* VDD Fault Status */#define PSSR_BFS (1 << 1) /* Battery Fault Status */#define PSSR_SSS (1 << 0) /* Software Sleep Status */#define PCFR_DS (1 << 3) /* Deep Sleep Mode */#define PCFR_FS (1 << 2) /* Float Static Chip Selects */#define PCFR_FP (1 << 1) /* Float PCMCIA controls */#define PCFR_OPDE (1 << 0) /* 3.6864 MHz oscillator power-down enable */#define RCSR_GPR (1 << 3) /* GPIO Reset */#define RCSR_SMR (1 << 2) /* Sleep Mode */#define RCSR_WDR (1 << 1) /* Watchdog Reset */#define RCSR_HWR (1 << 0) /* Hardware Reset *//* * SSP Serial Port Registers */#define SSCR0 __REG(0x41000000) /* SSP Control Register 0 */#define SSCR1 __REG(0x41000004) /* SSP Control Register 1 */#define SSSR __REG(0x41000008) /* SSP Status Register */#define SSITR __REG(0x4100000C) /* SSP Interrupt Test Register */#define SSDR __REG(0x41000010) /* (Write / Read) SSP Data Write Register/SSP Data Read Register *//* * MultiMediaCard (MMC) controller */#define MMC_STRPCL __REG(0x41100000) /* Control to start and stop MMC clock */#define MMC_STAT __REG(0x41100004) /* MMC Status Register (read only) */#define MMC_CLKRT __REG(0x41100008) /* MMC clock rate */#define MMC_SPI __REG(0x4110000c) /* SPI mode control bits */#define MMC_CMDAT __REG(0x41100010) /* Command/response/data sequence control */#define MMC_RESTO __REG(0x41100014) /* Expected response time out */#define MMC_RDTO __REG(0x41100018) /* Expected data read time out */#define MMC_BLKLEN __REG(0x4110001c) /* Block length of data transaction */#define MMC_NOB __REG(0x41100020) /* Number of blocks, for block mode */#define MMC_PRTBUF __REG(0x41100024) /* Partial MMC_TXFIFO FIFO written */#define MMC_I_MASK __REG(0x41100028) /* Interrupt Mask */#define MMC_I_REG __REG(0x4110002c) /* Interrupt Register (read only) */#define MMC_CMD __REG(0x41100030) /* Index of current command */#define MMC_ARGH __REG(0x41100034) /* MSW part of the current command argument */#define MMC_ARGL __REG(0x41100038) /* LSW part of the current command argument */#define MMC_RES __REG(0x4110003c) /* Response FIFO (read only) */#define MMC_RXFIFO __REG(0x41100040) /* Receive FIFO (read only) */#define MMC_TXFIFO __REG(0x41100044) /* Transmit FIFO (write only) *//* * Core Clock */#define CCCR __REG(0x41300000) /* Core Clock Configuration Register */#define CKEN __REG(0x41300004) /* Clock Enable Register */#define OSCC __REG(0x41300008) /* Oscillator Configuration Register */#define CCCR_N_MASK 0x0380 /* Run Mode Frequency to Turbo Mode Frequency Multiplier */#if !defined(CONFIG_PXA27X)#define CCCR_M_MASK 0x0060 /* Memory Frequency to Run Mode Frequency Multiplier */#endif#define CCCR_L_MASK 0x001f /* Crystal Frequency to Memory Frequency Multiplier */#define CKEN24_CAMERA (1 << 24) /* Camera Interface Clock Enable */#define CKEN23_SSP1 (1 << 23) /* SSP1 Unit Clock Enable */#define CKEN22_MEMC (1 << 22) /* Memory Controller Clock Enable */#define CKEN21_MEMSTK (1 << 21) /* Memory Stick Host Controller */#define CKEN20_IM (1 << 20) /* Internal Memory Clock Enable */#define CKEN19_KEYPAD (1 << 19) /* Keypad Interface Clock Enable */#define CKEN18_USIM (1 << 18) /* USIM Unit Clock Enable */#define CKEN17_MSL (1 << 17) /* MSL Unit Clock Enable */#define CKEN16_LCD (1 << 16) /* LCD Unit Clock Enable */#define CKEN15_PWRI2C (1 << 15) /* PWR I2C Unit Clock Enable */#define CKEN14_I2C (1 << 14) /* I2C Unit Clock Enable */#define CKEN13_FICP (1 << 13) /* FICP Unit Clock Enable */#define CKEN12_MMC (1 << 12) /* MMC Unit Clock Enable */#define CKEN11_USB (1 << 11) /* USB Unit Clock Enable */#if defined(CONFIG_PXA27X)#define CKEN10_USBHOST (1 << 10) /* USB Host Unit Clock Enable */#define CKEN24_CAMERA (1 << 24) /* Camera Unit Clock Enable */#endif#define CKEN8_I2S (1 << 8) /* I2S Unit Clock Enable */#define CKEN7_BTUART (1 << 7) /* BTUART Unit Clock Enable */#define CKEN6_FFUART (1 << 6) /* FFUAR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -