Lines Matching +full:enable +full:- +full:lcd +full:- +full:bias
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * FILE SA-1100.h
9 * System StrongARM SA-1100
12 * SA-1100 microprocessor (Advanced RISC Machine (ARM)
14 * StrongARM SA-1100 data sheet version 2.2.
21 #error You must include hardware.h not SA-1100.h
91 * Controller (UDC) Control/Status register end-point 0
94 * Controller (UDC) Control/Status register end-point 1
97 * Controller (UDC) Control/Status register end-point 2
100 * Controller (UDC) Data register end-point 0
103 * Controller (UDC) Write Count register end-point 0
115 #define Ser0UDCCS0 __REG(0x80000010) /* Ser. port 0 UDC Control/Status reg. end-point 0 */
116 #define Ser0UDCCS1 __REG(0x80000014) /* Ser. port 0 UDC Control/Status reg. end-point 1 (output) */
117 #define Ser0UDCCS2 __REG(0x80000018) /* Ser. port 0 UDC Control/Status reg. end-point 2 (input) */
118 #define Ser0UDCD0 __REG(0x8000001C) /* Ser. port 0 UDC Data reg. end-point 0 */
119 #define Ser0UDCWC __REG(0x80000020) /* Ser. port 0 UDC Write Count reg. end-point 0 */
126 #define UDCCR_EIM 0x00000008 /* End-point 0 Interrupt Mask */
139 #define UDCOMP_OUTMAXP Fld (8, 0) /* OUTput MAXimum Packet size - 1 */
143 (((Size) - 1) << FShft (UDCOMP_OUTMAXP))
145 #define UDCIMP_INMAXP Fld (8, 0) /* INput MAXimum Packet size - 1 */
149 (((Size) - 1) << FShft (UDCIMP_INMAXP))
161 #define UDCCS1_RFS 0x00000001 /* Receive FIFO 12-bytes or more */
169 #define UDCCS2_TFS 0x00000001 /* Transmit FIFO 8-bytes or less */
173 #define UDCCS2_TUR 0x00000008 /* Transmit FIFO Under-Run */
183 #define UDCSR_EIR 0x00000001 /* End-point 0 Interrupt Request */
267 #define _UTCR0(Nb) __REG(0x80010000 + ((Nb) - 1)*0x00020000) /* UART Control Reg. 0 [1..3] */
268 #define _UTCR1(Nb) __REG(0x80010004 + ((Nb) - 1)*0x00020000) /* UART Control Reg. 1 [1..3] */
269 #define _UTCR2(Nb) __REG(0x80010008 + ((Nb) - 1)*0x00020000) /* UART Control Reg. 2 [1..3] */
270 #define _UTCR3(Nb) __REG(0x8001000C + ((Nb) - 1)*0x00020000) /* UART Control Reg. 3 [1..3] */
271 #define _UTCR4(Nb) __REG(0x80010010 + ((Nb) - 1)*0x00020000) /* UART Control Reg. 4 [2] */
272 #define _UTDR(Nb) __REG(0x80010014 + ((Nb) - 1)*0x00020000) /* UART Data Reg. [1..3] */
273 #define _UTSR0(Nb) __REG(0x8001001C + ((Nb) - 1)*0x00020000) /* UART Status Reg. 0 [1..3] */
274 #define _UTSR1(Nb) __REG(0x80010020 + ((Nb) - 1)*0x00020000) /* UART Status Reg. 1 [1..3] */
315 #define UTCR0_PE 0x00000001 /* Parity Enable */
323 #define UTCR0_7BitData (UTCR0_DSS*0) /* 7-Bit Data */
324 #define UTCR0_8BitData (UTCR0_DSS*1) /* 8-Bit Data */
325 #define UTCR0_SCE 0x00000010 /* Sample Clock Enable */
329 #define UTCR0_RcRsEdg (UTCR0_RCE*0) /* Receive clock Rising-Edge */
330 #define UTCR0_RcFlEdg (UTCR0_RCE*1) /* Receive clock Falling-Edge */
332 #define UTCR0_TrRsEdg (UTCR0_TCE*0) /* Transmit clock Rising-Edge */
333 #define UTCR0_TrFlEdg (UTCR0_TCE*1) /* Transmit clock Falling-Edge */
337 #define UTCR1_BRD Fld (4, 0) /* Baud Rate Divisor/16 - 1 [11:8] */
338 #define UTCR2_BRD Fld (8, 0) /* Baud Rate Divisor/16 - 1 [7:0] */
342 (((Div) - 16)/16 >> FSize (UTCR2_BRD) << \
345 (((Div) - 16)/16 & FAlnMsk (UTCR2_BRD) << \
350 (((Div) - 1)/16 >> FSize (UTCR2_BRD) << \
353 (((Div) - 1)/16 & FAlnMsk (UTCR2_BRD) << \
358 #define UTCR3_RXE 0x00000001 /* Receive Enable */
359 #define UTCR3_TXE 0x00000002 /* Transmit Enable */
361 #define UTCR3_RIE 0x00000008 /* Receive FIFO 1/3-to-2/3-full or */
362 /* more Interrupt Enable */
363 #define UTCR3_TIE 0x00000010 /* Transmit FIFO 1/2-full or less */
364 /* Interrupt Enable */
365 #define UTCR3_LBM 0x00000020 /* Look-Back Mode */
370 #define UTCR4_HSE 0x00000001 /* Hewlett-Packard Serial InfraRed */
371 /* (HP-SIR) modulation Enable */
372 #define UTCR4_NRZ (UTCR4_HSE*0) /* Non-Return to Zero modulation */
373 #define UTCR4_HPSIR (UTCR4_HSE*1) /* HP-SIR modulation */
374 #define UTCR4_LPM 0x00000002 /* Low-Power Mode */
382 #define UTDR_ROR 0x00000400 /* Receive FIFO Over-Run (read) */
385 #define UTSR0_TFS 0x00000001 /* Transmit FIFO 1/2-full or less */
387 #define UTSR0_RFS 0x00000002 /* Receive FIFO 1/3-to-2/3-full or */
399 #define UTSR1_ROR 0x00000020 /* Receive FIFO Over-Run (read) */
444 #define SDCR0_LBM 0x00000004 /* Look-Back Mode */
447 #define SDCR0_NRZ (SDCR0_BMS*1) /* Non-Return to Zero modulation */
448 #define SDCR0_SCE 0x00000010 /* Sample Clock Enable (GPIO [16]) */
454 #define SDCR0_RcRsEdg (SDCR0_RCE*0) /* Receive clock Rising-Edge */
455 #define SDCR0_RcFlEdg (SDCR0_RCE*1) /* Receive clock Falling-Edge */
457 #define SDCR0_TrRsEdg (SDCR0_TCE*0) /* Transmit clock Rising-Edge */
458 #define SDCR0_TrFlEdg (SDCR0_TCE*1) /* Transmit clock Falling-Edge */
460 #define SDCR1_AAF 0x00000001 /* Abort After Frame enable */
462 #define SDCR1_TXE 0x00000002 /* Transmit Enable */
463 #define SDCR1_RXE 0x00000004 /* Receive Enable */
464 #define SDCR1_RIE 0x00000008 /* Receive FIFO 1/3-to-2/3-full or */
465 /* more Interrupt Enable */
466 #define SDCR1_TIE 0x00000010 /* Transmit FIFO 1/2-full or less */
467 /* Interrupt Enable */
468 #define SDCR1_AME 0x00000020 /* Address Match Enable */
469 #define SDCR1_TUS 0x00000040 /* Transmit FIFO Under-run Select */
470 #define SDCR1_EFrmURn (SDCR1_TUS*0) /* End Frame on Under-Run */
471 #define SDCR1_AbortURn (SDCR1_TUS*1) /* Abort on Under-Run */
472 #define SDCR1_RAE 0x00000080 /* Receive Abort interrupt Enable */
476 #define SDCR3_BRD Fld (4, 0) /* Baud Rate Divisor/16 - 1 [11:8] */
477 #define SDCR4_BRD Fld (8, 0) /* Baud Rate Divisor/16 - 1 [7:0] */
481 (((Div) - 16)/16 >> FSize (SDCR4_BRD) << \
484 (((Div) - 16)/16 & FAlnMsk (SDCR4_BRD) << \
489 (((Div) - 1)/16 >> FSize (SDCR4_BRD) << \
492 (((Div) - 1)/16 & FAlnMsk (SDCR4_BRD) << \
499 #define SDDR_EOF 0x00000100 /* receive End-Of-Frame (read) */
501 #define SDDR_ROR 0x00000400 /* Receive FIFO Over-Run (read) */
505 #define SDSR0_TUR 0x00000002 /* Transmit FIFO Under-Run */
507 #define SDSR0_TFS 0x00000008 /* Transmit FIFO 1/2-full or less */
509 #define SDSR0_RFS 0x00000010 /* Receive FIFO 1/3-to-2/3-full or */
517 #define SDSR1_EOF 0x00000020 /* receive End-Of-Frame (read) */
519 #define SDSR1_ROR 0x00000080 /* Receive FIFO Over-Run (read) */
523 * High-Speed Serial to Parallel controller (HSSP) control registers
526 * Ser2HSCR0 Serial port 2 High-Speed Serial to Parallel
528 * Ser2HSCR1 Serial port 2 High-Speed Serial to Parallel
530 * Ser2HSDR Serial port 2 High-Speed Serial to Parallel
532 * Ser2HSSR0 Serial port 2 High-Speed Serial to Parallel
534 * Ser2HSSR1 Serial port 2 High-Speed Serial to Parallel
536 * Ser2HSCR2 Serial port 2 High-Speed Serial to Parallel
540 * SA-1100.]
553 #define HSCR0_LBM 0x00000002 /* Look-Back Mode */
554 #define HSCR0_TUS 0x00000004 /* Transmit FIFO Under-run Select */
555 #define HSCR0_EFrmURn (HSCR0_TUS*0) /* End Frame on Under-Run */
556 #define HSCR0_AbortURn (HSCR0_TUS*1) /* Abort on Under-Run */
557 #define HSCR0_TXE 0x00000008 /* Transmit Enable */
558 #define HSCR0_RXE 0x00000010 /* Receive Enable */
559 #define HSCR0_RIE 0x00000020 /* Receive FIFO 2/5-to-3/5-full or */
560 /* more Interrupt Enable */
561 #define HSCR0_TIE 0x00000040 /* Transmit FIFO 1/2-full or less */
562 /* Interrupt Enable */
563 #define HSCR0_AME 0x00000080 /* Address Match Enable */
569 #define HSDR_EOF 0x00000100 /* receive End-Of-Frame (read) */
571 #define HSDR_ROR 0x00000400 /* Receive FIFO Over-Run (read) */
575 #define HSSR0_TUR 0x00000002 /* Transmit FIFO Under-Run */
577 #define HSSR0_TFS 0x00000008 /* Transmit FIFO 1/2-full or less */
579 #define HSSR0_RFS 0x00000010 /* Receive FIFO 2/5-to-3/5-full or */
587 #define HSSR1_EOF 0x00000010 /* receive End-Of-Frame (read) */
589 #define HSSR1_ROR 0x00000040 /* Receive FIFO Over-Run (read) */
595 /* (non-inverted) */
600 /* (non-inverted) */
604 * Multi-media Communications Port (MCP) control registers
607 * Ser4MCCR0 Serial port 4 Multi-media Communications Port (MCP)
609 * Ser4MCDR0 Serial port 4 Multi-media Communications Port (MCP)
611 * Ser4MCDR1 Serial port 4 Multi-media Communications Port (MCP)
613 * Ser4MCDR2 Serial port 4 Multi-media Communications Port (MCP)
615 * Ser4MCSR Serial port 4 Multi-media Communications Port (MCP)
617 * Ser4MCCR1 Serial port 4 Multi-media Communications Port (MCP)
621 * SA-1100.]
663 #define MCCR0_MCE 0x00010000 /* MCP Enable */
671 #define MCCR0_TTE 0x00080000 /* Telecom Transmit FIFO 1/2-full */
672 /* or less interrupt Enable */
673 #define MCCR0_TRE 0x00100000 /* Telecom Receive FIFO 1/2-full */
674 /* or more interrupt Enable */
675 #define MCCR0_ATE 0x00200000 /* Audio Transmit FIFO 1/2-full */
676 /* or less interrupt Enable */
677 #define MCCR0_ARE 0x00400000 /* Audio Receive FIFO 1/2-full or */
678 /* more interrupt Enable */
679 #define MCCR0_LBM 0x00800000 /* Look-Back Mode */
680 #define MCCR0_ECP Fld (2, 24) /* External Clock Prescaler - 1 */
682 (((Div) - 1) << FShft (MCCR0_ECP))
698 #define MCSR_ATS 0x00000001 /* Audio Transmit FIFO 1/2-full */
700 #define MCSR_ARS 0x00000002 /* Audio Receive FIFO 1/2-full or */
702 #define MCSR_TTS 0x00000004 /* Telecom Transmit FIFO 1/2-full */
704 #define MCSR_TRS 0x00000008 /* Telecom Receive FIFO 1/2-full */
706 #define MCSR_ATU 0x00000010 /* Audio Transmit FIFO Under-run */
707 #define MCSR_ARO 0x00000020 /* Audio Receive FIFO Over-run */
708 #define MCSR_TTU 0x00000040 /* Telecom Transmit FIFO Under-run */
709 #define MCSR_TRO 0x00000080 /* Telecom Receive FIFO Over-run */
741 * (rev. = 8) and higher of the StrongARM SA-1100.]
758 #define SSCR0_DSS Fld (4, 0) /* Data Size - 1 Select [3..15] */
760 (((Size) - 1) << FShft (SSCR0_DSS))
770 #define SSCR0_SSE 0x00000080 /* SSP Enable */
771 #define SSCR0_SCR Fld (8, 8) /* Serial Clock Rate divisor/2 - 1 */
775 (((Div) - 2)/2 << FShft (SSCR0_SCR))
779 (((Div) - 1)/2 << FShft (SSCR0_SCR))
783 #define SSCR1_RIE 0x00000001 /* Receive FIFO 1/2-full or more */
784 /* Interrupt Enable */
785 #define SSCR1_TIE 0x00000002 /* Transmit FIFO 1/2-full or less */
786 /* Interrupt Enable */
787 #define SSCR1_LBM 0x00000004 /* Look-Back Mode */
805 #define SSSR_TFS 0x00000010 /* Transmit FIFO 1/2-full or less */
807 #define SSSR_RFS 0x00000020 /* Receive FIFO 1/2-full or more */
809 #define SSSR_ROR 0x00000040 /* Receive FIFO Over-Run */
828 * OWER Operating System (OS) timer Watch-dog Enable Register
830 * OIER Operating System (OS) timer Interrupt Enable Register
840 #define OWER io_p2v(0x90000018) /* OS timer Watch-dog Enable Reg. */
841 #define OIER io_p2v(0x9000001C) /* OS timer Interrupt Enable Reg. */
850 #define OWER_WME 0x00000001 /* Watch-dog Match Enable */
853 #define OIER_E(Nb) /* match interrupt Enable [0..3] */ \
855 #define OIER_E0 OIER_E (0) /* match interrupt Enable 0 */
856 #define OIER_E1 OIER_E (1) /* match interrupt Enable 1 */
857 #define OIER_E2 OIER_E (2) /* match interrupt Enable 2 */
858 #define OIER_E3 OIER_E (3) /* match interrupt Enable 3 */
867 * PSPR Power Manager (PM) Scratch-Pad Register (read/write).
868 * PWER Power Manager (PM) Wake-up Enable Register
872 * PPCR Power Manager (PM) Phase-Locked Loop (PLL)
874 * PGSR Power Manager (PM) General-Purpose Input/Output (GPIO)
886 #define PSPR __REG(0x90020008) /* PM Scratch-Pad Reg. */
887 #define PWER __REG(0x9002000C) /* PM Wake-up Enable Reg. */
902 #define PWER_GPIO(Nb) GPIO_GPIO (Nb) /* GPIO [0..27] wake-up enable */
903 #define PWER_GPIO0 PWER_GPIO (0) /* GPIO [0] wake-up enable */
904 #define PWER_GPIO1 PWER_GPIO (1) /* GPIO [1] wake-up enable */
905 #define PWER_GPIO2 PWER_GPIO (2) /* GPIO [2] wake-up enable */
906 #define PWER_GPIO3 PWER_GPIO (3) /* GPIO [3] wake-up enable */
907 #define PWER_GPIO4 PWER_GPIO (4) /* GPIO [4] wake-up enable */
908 #define PWER_GPIO5 PWER_GPIO (5) /* GPIO [5] wake-up enable */
909 #define PWER_GPIO6 PWER_GPIO (6) /* GPIO [6] wake-up enable */
910 #define PWER_GPIO7 PWER_GPIO (7) /* GPIO [7] wake-up enable */
911 #define PWER_GPIO8 PWER_GPIO (8) /* GPIO [8] wake-up enable */
912 #define PWER_GPIO9 PWER_GPIO (9) /* GPIO [9] wake-up enable */
913 #define PWER_GPIO10 PWER_GPIO (10) /* GPIO [10] wake-up enable */
914 #define PWER_GPIO11 PWER_GPIO (11) /* GPIO [11] wake-up enable */
915 #define PWER_GPIO12 PWER_GPIO (12) /* GPIO [12] wake-up enable */
916 #define PWER_GPIO13 PWER_GPIO (13) /* GPIO [13] wake-up enable */
917 #define PWER_GPIO14 PWER_GPIO (14) /* GPIO [14] wake-up enable */
918 #define PWER_GPIO15 PWER_GPIO (15) /* GPIO [15] wake-up enable */
919 #define PWER_GPIO16 PWER_GPIO (16) /* GPIO [16] wake-up enable */
920 #define PWER_GPIO17 PWER_GPIO (17) /* GPIO [17] wake-up enable */
921 #define PWER_GPIO18 PWER_GPIO (18) /* GPIO [18] wake-up enable */
922 #define PWER_GPIO19 PWER_GPIO (19) /* GPIO [19] wake-up enable */
923 #define PWER_GPIO20 PWER_GPIO (20) /* GPIO [20] wake-up enable */
924 #define PWER_GPIO21 PWER_GPIO (21) /* GPIO [21] wake-up enable */
925 #define PWER_GPIO22 PWER_GPIO (22) /* GPIO [22] wake-up enable */
926 #define PWER_GPIO23 PWER_GPIO (23) /* GPIO [23] wake-up enable */
927 #define PWER_GPIO24 PWER_GPIO (24) /* GPIO [24] wake-up enable */
928 #define PWER_GPIO25 PWER_GPIO (25) /* GPIO [25] wake-up enable */
929 #define PWER_GPIO26 PWER_GPIO (26) /* GPIO [26] wake-up enable */
930 #define PWER_GPIO27 PWER_GPIO (27) /* GPIO [27] wake-up enable */
931 #define PWER_RTC 0x80000000 /* RTC alarm wake-up enable */
933 #define PCFR_OPDE 0x00000001 /* Oscillator Power-Down Enable */
943 /* (32.768 kHz) enable On */
1032 #define RCSR_WDR 0x00000004 /* Watch-Dog Reset */
1033 #define RCSR_SMR 0x00000008 /* Sleep-Mode Reset */
1081 * General-Purpose Input/Output (GPIO) control registers
1084 * GPLR General-Purpose Input/Output (GPIO) Pin Level
1086 * GPDR General-Purpose Input/Output (GPIO) Pin Direction
1088 * GPSR General-Purpose Input/Output (GPIO) Pin output Set
1090 * GPCR General-Purpose Input/Output (GPIO) Pin output Clear
1092 * GRER General-Purpose Input/Output (GPIO) Rising-Edge
1094 * GFER General-Purpose Input/Output (GPIO) Falling-Edge
1096 * GEDR General-Purpose Input/Output (GPIO) Edge Detect
1098 * GAFR General-Purpose Input/Output (GPIO) Alternate
1109 #define GRER __REG(0x90040010) /* GPIO Rising-Edge detect Reg. */
1110 #define GFER __REG(0x90040014) /* GPIO Falling-Edge detect Reg. */
1148 #define GPIO_LDD(Nb) /* LCD Data [8..15] (O) */ \
1149 GPIO_GPIO ((Nb) - 6)
1150 #define GPIO_LDD8 GPIO_LDD (8) /* LCD Data [8] (O) */
1151 #define GPIO_LDD9 GPIO_LDD (9) /* LCD Data [9] (O) */
1152 #define GPIO_LDD10 GPIO_LDD (10) /* LCD Data [10] (O) */
1153 #define GPIO_LDD11 GPIO_LDD (11) /* LCD Data [11] (O) */
1154 #define GPIO_LDD12 GPIO_LDD (12) /* LCD Data [12] (O) */
1155 #define GPIO_LDD13 GPIO_LDD (13) /* LCD Data [13] (O) */
1156 #define GPIO_LDD14 GPIO_LDD (14) /* LCD Data [14] (O) */
1157 #define GPIO_LDD15 GPIO_LDD (15) /* LCD Data [15] (O) */
1200 * (rev. = 8) and higher of the StrongARM SA-1100.]
1206 * StrongARM SA-1100, it is active high (non-inverted) in
1231 #define IC_LCD 0x00001000 /* LCD controller */
1259 #define ICCR_DIM 0x00000001 /* Disable Idle-mode interrupt */
1261 #define ICCR_IdleAllInt (ICCR_DIM*0) /* Idle-mode All Interrupt enable */
1263 #define ICCR_IdleMskInt (ICCR_DIM*1) /* Idle-mode non-Masked Interrupt */
1264 /* enable (ICMR used) */
1277 * PSDR Peripheral Pin Controller (PPC) Sleep-mode pin
1286 #define PSDR __REG(0x9006000C) /* PPC Sleep-mode pin Direction Reg. */
1289 #define PPC_LDD(Nb) /* LCD Data [0..7] */ \
1291 #define PPC_LDD0 PPC_LDD (0) /* LCD Data [0] */
1292 #define PPC_LDD1 PPC_LDD (1) /* LCD Data [1] */
1293 #define PPC_LDD2 PPC_LDD (2) /* LCD Data [2] */
1294 #define PPC_LDD3 PPC_LDD (3) /* LCD Data [3] */
1295 #define PPC_LDD4 PPC_LDD (4) /* LCD Data [4] */
1296 #define PPC_LDD5 PPC_LDD (5) /* LCD Data [5] */
1297 #define PPC_LDD6 PPC_LDD (6) /* LCD Data [6] */
1298 #define PPC_LDD7 PPC_LDD (7) /* LCD Data [7] */
1299 #define PPC_L_PCLK 0x00000100 /* LCD Pixel CLocK */
1300 #define PPC_L_LCLK 0x00000200 /* LCD Line CLocK */
1301 #define PPC_L_FCLK 0x00000400 /* LCD Frame CLocK */
1302 #define PPC_L_BIAS 0x00000800 /* LCD AC BIAS */
1334 #define PPFR_LCD 0x00000001 /* LCD controller */
1347 * Dynamic Random-Access Memory (DRAM) control registers
1350 * MDCNFG Memory system: Dynamic Random-Access Memory (DRAM)
1352 * MDCAS0 Memory system: Dynamic Random-Access Memory (DRAM)
1355 * MDCAS1 Memory system: Dynamic Random-Access Memory (DRAM)
1358 * MDCAS2 Memory system: Dynamic Random-Access Memory (DRAM)
1374 #define MDCNFG_DE(Nb) /* DRAM Enable bank [0..3] */ \
1376 #define MDCNFG_DE0 MDCNFG_DE (0) /* DRAM Enable bank 0 */
1377 #define MDCNFG_DE1 MDCNFG_DE (1) /* DRAM Enable bank 1 */
1378 #define MDCNFG_DE2 MDCNFG_DE (2) /* DRAM Enable bank 2 */
1379 #define MDCNFG_DE3 MDCNFG_DE (3) /* DRAM Enable bank 3 */
1380 #define MDCNFG_DRAC Fld (2, 4) /* DRAM Row Address Count - 9 */
1382 (((Add) - 9) << FShft (MDCNFG_DRAC))
1385 #define MDCNFG_TRP Fld (4, 7) /* Time RAS Pre-charge - 1 [Tmem] */
1386 #define MDCNFG_PrChrg(Tcpu) /* Pre-Charge time [2..32 Tcpu] */ \
1387 (((Tcpu) - 2)/2 << FShft (MDCNFG_TRP))
1389 (((Tcpu) - 1)/2 << FShft (MDCNFG_TRP))
1390 #define MDCNFG_TRASR Fld (4, 11) /* Time RAS Refresh - 1 [Tmem] */
1392 (((Tcpu) - 2)/2 << FShft (MDCNFG_TRASR))
1394 (((Tcpu) - 1)/2 << FShft (MDCNFG_TRASR))
1405 #define MDCNFG_SA1110_DE0 0x00000001 /* DRAM Enable bank 0 */
1406 #define MDCNFG_SA1110_DE1 0x00000002 /* DRAM Enable bank 1 */
1416 #define MDCNFG_SA1110_DE2 0x00010000 /* DRAM Enable bank 0 */
1417 #define MDCNFG_SA1110_DE3 0x00020000 /* DRAM Enable bank 1 */
1455 #define MSC_NonBrst /* Non-Burst static memory */ \
1457 #define MSC_SRAM /* 32-bit byte-writable SRAM */ \
1459 #define MSC_Brst4 /* Burst-of-4 static memory */ \
1461 #define MSC_Brst8 /* Burst-of-8 static memory */ \
1464 #define MSC_32BitStMem (MSC_RBW*0) /* 32-Bit Static Memory */
1465 #define MSC_16BitStMem (MSC_RBW*1) /* 16-Bit Static Memory */
1467 /* First access - 1(.5) [Tmem] */
1470 ((((Tcpu) - 3)/2) << FShft (MSC_RDF))
1472 ((((Tcpu) - 2)/2) << FShft (MSC_RDF))
1473 #define MSC_RdAcc(Tcpu) /* Read Access time (non-burst */ \
1475 ((((Tcpu) - 2)/2) << FShft (MSC_RDF))
1477 ((((Tcpu) - 1)/2) << FShft (MSC_RDF))
1479 /* Next access - 1 [Tmem] */
1482 ((((Tcpu) - 2)/2) << FShft (MSC_RDN))
1484 ((((Tcpu) - 1)/2) << FShft (MSC_RDN))
1485 #define MSC_WrAcc(Tcpu) /* Write Access time (non-burst */ \
1487 ((((Tcpu) - 2)/2) << FShft (MSC_RDN))
1489 ((((Tcpu) - 1)/2) << FShft (MSC_RDN))
1520 #define MECR_BSIO Fld (5, 0) /* BCLK Select I/O - 1 [Tmem] */
1522 ((((Tcpu) - 2)/2) << FShft (MECR_BSIO))
1524 ((((Tcpu) - 1)/2) << FShft (MECR_BSIO))
1525 #define MECR_BSA Fld (5, 5) /* BCLK Select Attribute - 1 */
1528 ((((Tcpu) - 2)/2) << FShft (MECR_BSA))
1530 ((((Tcpu) - 1)/2) << FShft (MECR_BSA))
1531 #define MECR_BSM Fld (5, 10) /* BCLK Select Memory - 1 [Tmem] */
1533 ((((Tcpu) - 2)/2) << FShft (MECR_BSM))
1535 ((((Tcpu) - 1)/2) << FShft (MECR_BSM))
1566 * Liquid Crystal Display (LCD) control registers
1569 * LCCR0 Liquid Crystal Display (LCD) Control Register 0
1573 * SA-1100.]
1574 * LCSR Liquid Crystal Display (LCD) Status Register
1577 * and 1.1 (rev. = 2) of the StrongARM SA-1100, it can be
1580 * DBAR1 Liquid Crystal Display (LCD) Direct Memory Access
1582 * DCAR1 Liquid Crystal Display (LCD) Direct Memory Access
1584 * DBAR2 Liquid Crystal Display (LCD) Direct Memory Access
1586 * DCAR2 Liquid Crystal Display (LCD) Direct Memory Access
1588 * LCCR1 Liquid Crystal Display (LCD) Control Register 1
1592 * StrongARM SA-1100, it can be written and read in
1594 * LCCR2 Liquid Crystal Display (LCD) Control Register 2
1598 * StrongARM SA-1100, it can be written and read in
1600 * LCCR3 Liquid Crystal Display (LCD) Control Register 3
1604 * StrongARM SA-1100, it can be written and read in
1607 * the StrongARM SA-1100.]
1614 * fac, Tac Frequency, period of the AC bias clock.
1617 #define LCD_PEntrySp 2 /* LCD Palette Entry Space [byte] */
1618 #define LCD_4BitPSp /* LCD 4-Bit pixel Palette Space */ \
1621 #define LCD_8BitPSp /* LCD 8-Bit pixel Palette Space */ \
1624 #define LCD_12_16BitPSp /* LCD 12/16-Bit pixel */ \
1625 /* dummy-Palette Space [byte] */ \
1628 #define LCD_PGrey Fld (4, 0) /* LCD Palette entry Grey value */
1629 #define LCD_PBlue Fld (4, 0) /* LCD Palette entry Blue value */
1630 #define LCD_PGreen Fld (4, 4) /* LCD Palette entry Green value */
1631 #define LCD_PRed Fld (4, 8) /* LCD Palette entry Red value */
1632 #define LCD_PBS Fld (2, 12) /* LCD Pixel Bit Size */
1633 #define LCD_4Bit /* LCD 4-Bit pixel mode */ \
1635 #define LCD_8Bit /* LCD 8-Bit pixel mode */ \
1637 #define LCD_12_16Bit /* LCD 12/16-Bit pixel mode */ \
1640 #define LCD_Int0_0 0x0 /* LCD Intensity = 0.0% = 0 */
1641 #define LCD_Int11_1 0x1 /* LCD Intensity = 11.1% = 1/9 */
1642 #define LCD_Int20_0 0x2 /* LCD Intensity = 20.0% = 1/5 */
1643 #define LCD_Int26_7 0x3 /* LCD Intensity = 26.7% = 4/15 */
1644 #define LCD_Int33_3 0x4 /* LCD Intensity = 33.3% = 3/9 */
1645 #define LCD_Int40_0 0x5 /* LCD Intensity = 40.0% = 2/5 */
1646 #define LCD_Int44_4 0x6 /* LCD Intensity = 44.4% = 4/9 */
1647 #define LCD_Int50_0 0x7 /* LCD Intensity = 50.0% = 1/2 */
1648 #define LCD_Int55_6 0x8 /* LCD Intensity = 55.6% = 5/9 */
1649 #define LCD_Int60_0 0x9 /* LCD Intensity = 60.0% = 3/5 */
1650 #define LCD_Int66_7 0xA /* LCD Intensity = 66.7% = 6/9 */
1651 #define LCD_Int73_3 0xB /* LCD Intensity = 73.3% = 11/15 */
1652 #define LCD_Int80_0 0xC /* LCD Intensity = 80.0% = 4/5 */
1653 #define LCD_Int88_9 0xD /* LCD Intensity = 88.9% = 8/9 */
1654 #define LCD_Int100_0 0xE /* LCD Intensity = 100.0% = 1 */
1655 #define LCD_Int100_0A 0xF /* LCD Intensity = 100.0% = 1 */
1658 #define LCCR0_LEN 0x00000001 /* LCD ENable */
1666 #define LCCR0_LDM 0x00000008 /* LCD Disable done (LDD) */
1670 #define LCCR0_ERM 0x00000020 /* LCD ERror (BER, IOL, IUL, IOU, */
1681 #define LCCR0_4PixMono (LCCR0_DPD*0) /* 4-Pixel/clock Monochrome */
1683 #define LCCR0_8PixMono (LCCR0_DPD*1) /* 8-Pixel/clock Monochrome */
1691 #define LCSR_LDD 0x00000001 /* LCD Disable Done */
1694 #define LCSR_ABC 0x00000008 /* AC Bias clock Count */
1695 #define LCSR_IOL 0x00000010 /* Input FIFO Over-run Lower */
1697 #define LCSR_IUL 0x00000020 /* Input FIFO Under-run Lower */
1699 #define LCSR_IOU 0x00000040 /* Input FIFO Over-run Upper */
1701 #define LCSR_IUU 0x00000080 /* Input FIFO Under-run Upper */
1703 #define LCSR_OOL 0x00000100 /* Output FIFO Over-run Lower */
1705 #define LCSR_OUL 0x00000200 /* Output FIFO Under-run Lower */
1707 #define LCSR_OOU 0x00000400 /* Output FIFO Over-run Upper */
1709 #define LCSR_OUU 0x00000800 /* Output FIFO Under-run Upper */
1712 #define LCCR1_PPL Fld (6, 4) /* Pixels Per Line/16 - 1 */
1714 (((Pixel) - 16)/16 << FShft (LCCR1_PPL))
1716 /* pulse Width - 1 [Tpix] (L_LCLK) */
1719 (((Tpix) - 1) << FShft (LCCR1_HSW))
1720 #define LCCR1_ELW Fld (8, 16) /* End-of-Line pixel clock Wait */
1721 /* count - 1 [Tpix] */
1722 #define LCCR1_EndLnDel(Tpix) /* End-of-Line Delay */ \
1724 (((Tpix) - 1) << FShft (LCCR1_ELW))
1725 #define LCCR1_BLW Fld (8, 24) /* Beginning-of-Line pixel clock */
1726 /* Wait count - 1 [Tpix] */
1727 #define LCCR1_BegLnDel(Tpix) /* Beginning-of-Line Delay */ \
1729 (((Tpix) - 1) << FShft (LCCR1_BLW))
1731 #define LCCR2_LPP Fld (10, 0) /* Line Per Panel - 1 */
1733 (((Line) - 1) << FShft (LCCR2_LPP))
1735 /* Width - 1 [Tln] (L_FCLK) */
1738 (((Tln) - 1) << FShft (LCCR2_VSW))
1739 #define LCCR2_EFW Fld (8, 16) /* End-of-Frame line clock Wait */
1741 #define LCCR2_EndFrmDel(Tln) /* End-of-Frame Delay */ \
1744 #define LCCR2_BFW Fld (8, 24) /* Beginning-of-Frame line clock */
1746 #define LCCR2_BegFrmDel(Tln) /* Beginning-of-Frame Delay */ \
1750 #define LCCR3_PCD Fld (8, 0) /* Pixel Clock Divisor/2 - 2 */
1755 (((Div) - 4)/2 << FShft (LCCR3_PCD))
1759 (((Div) - 3)/2 << FShft (LCCR3_PCD))
1762 #define LCCR3_ACB Fld (8, 8) /* AC Bias clock half period - 1 */
1764 #define LCCR3_ACBsDiv(Div) /* AC Bias clock Divisor [2..512] */ \
1765 (((Div) - 2)/2 << FShft (LCCR3_ACB))
1769 (((Div) - 1)/2 << FShft (LCCR3_ACB))
1772 #define LCCR3_API Fld (4, 16) /* AC bias Pin transitions per */
1774 #define LCCR3_ACBsCntOff /* AC Bias clock transition Count */ \
1777 #define LCCR3_ACBsCnt(Trans) /* AC Bias clock transition Count */ \
1793 #define LCCR3_PixRsEdg (LCCR3_PCP*0) /* Pixel clock Rising-Edge */
1794 #define LCCR3_PixFlEdg (LCCR3_PCP*1) /* Pixel clock Falling-Edge */
1795 #define LCCR3_OEP 0x00800000 /* Output Enable Polarity (L_BIAS, */
1797 #define LCCR3_OutEnH (LCCR3_OEP*0) /* Output Enable active High */
1798 #define LCCR3_OutEnL (LCCR3_OEP*1) /* Output Enable active Low */