Lines Matching +full:pixel +full:- +full:clock +full:- +full:frequency

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 */
262 * fxtl, Txtl Frequency, period of the system crystal (3.6864 MHz
264 * fua, Tua Frequency, period of the UART communication.
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] */
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 */
328 #define UTCR0_RCE 0x00000020 /* Receive Clock Edge select */
329 #define UTCR0_RcRsEdg (UTCR0_RCE*0) /* Receive clock Rising-Edge */
330 #define UTCR0_RcFlEdg (UTCR0_RCE*1) /* Receive clock Falling-Edge */
331 #define UTCR0_TCE 0x00000040 /* Transmit Clock Edge select */
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) << \
361 #define UTCR3_RIE 0x00000008 /* Receive FIFO 1/3-to-2/3-full or */
363 #define UTCR3_TIE 0x00000010 /* Transmit FIFO 1/2-full or less */
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) */
424 * fxtl, Txtl Frequency, period of the system crystal (3.6864 MHz
426 * fsd, Tsd Frequency, period of the SDLC communication.
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]) */
449 #define SDCR0_SCD 0x00000020 /* Sample Clock Direction select */
451 #define SDCR0_SClkIn (SDCR0_SCD*0) /* Sample Clock Input */
452 #define SDCR0_SClkOut (SDCR0_SCD*1) /* Sample Clock Output */
453 #define SDCR0_RCE 0x00000040 /* Receive Clock Edge select */
454 #define SDCR0_RcRsEdg (SDCR0_RCE*0) /* Receive clock Rising-Edge */
455 #define SDCR0_RcFlEdg (SDCR0_RCE*1) /* Receive clock Falling-Edge */
456 #define SDCR0_TCE 0x00000080 /* Transmit Clock Edge select */
457 #define SDCR0_TrRsEdg (SDCR0_TCE*0) /* Transmit clock Rising-Edge */
458 #define SDCR0_TrFlEdg (SDCR0_TCE*1) /* Transmit clock Falling-Edge */
464 #define SDCR1_RIE 0x00000008 /* Receive FIFO 1/3-to-2/3-full or */
466 #define SDCR1_TIE 0x00000010 /* Transmit FIFO 1/2-full or less */
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 */
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 */
559 #define HSCR0_RIE 0x00000020 /* Receive FIFO 2/5-to-3/5-full or */
561 #define HSCR0_TIE 0x00000040 /* Transmit FIFO 1/2-full or less */
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.]
624 * fmc, Tmc Frequency, period of the MCP communication (10 MHz,
626 * faud, Taud Frequency, period of the audio sampling.
627 * ftcm, Ttcm Frequency, period of the telecom sampling.
664 #define MCCR0_ECS 0x00020000 /* External Clock Select */
665 #define MCCR0_IntClk (MCCR0_ECS*0) /* Internal Clock (10 or 12 MHz) */
666 #define MCCR0_ExtClk (MCCR0_ECS*1) /* External Clock (GPIO [21]) */
671 #define MCCR0_TTE 0x00080000 /* Telecom Transmit FIFO 1/2-full */
673 #define MCCR0_TRE 0x00100000 /* Telecom Receive FIFO 1/2-full */
675 #define MCCR0_ATE 0x00200000 /* Audio Transmit FIFO 1/2-full */
677 #define MCCR0_ARE 0x00400000 /* Audio Receive FIFO 1/2-full or */
679 #define MCCR0_LBM 0x00800000 /* Look-Back Mode */
680 #define MCCR0_ECP Fld (2, 24) /* External Clock Prescaler - 1 */
681 #define MCCR0_ExtClkDiv(Div) /* External Clock Divisor [1..4] */ \
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 */
725 #define MCCR1_CFS 0x00100000 /* Clock Freq. Select */
741 * (rev. = 8) and higher of the StrongARM SA-1100.]
748 * fxtl, Txtl Frequency, period of the system crystal (3.6864 MHz
750 * fss, Tss Frequency, period of the SSP communication.
758 #define SSCR0_DSS Fld (4, 0) /* Data Size - 1 Select [3..15] */
760 (((Size) - 1) << FShft (SSCR0_DSS))
771 #define SSCR0_SCR Fld (8, 8) /* Serial Clock Rate divisor/2 - 1 */
774 #define SSCR0_SerClkDiv(Div) /* Serial Clock Divisor [2..512] */ \
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 */
785 #define SSCR1_TIE 0x00000002 /* Transmit FIFO 1/2-full or less */
787 #define SSCR1_LBM 0x00000004 /* Look-Back Mode */
788 #define SSCR1_SPO 0x00000008 /* Sample clock (SCLK) POlarity */
789 #define SSCR1_SClkIactL (SSCR1_SPO*0) /* Sample Clock Inactive Low */
790 #define SSCR1_SClkIactH (SSCR1_SPO*1) /* Sample Clock Inactive High */
791 #define SSCR1_SP 0x00000010 /* Sample clock (SCLK) Phase */
792 #define SSCR1_SClk1P (SSCR1_SP*0) /* Sample Clock active 1 Period */
794 #define SSCR1_SClk1_2P (SSCR1_SP*1) /* Sample Clock active 1/2 Period */
796 #define SSCR1_ECS 0x00000020 /* External Clock Select */
797 #define SSCR1_IntClk (SSCR1_ECS*0) /* Internal Clock */
798 #define SSCR1_ExtClk (SSCR1_ECS*1) /* External Clock (GPIO [19]) */
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
840 #define OWER io_p2v(0x90000018) /* OS timer Watch-dog Enable Reg. */
850 #define OWER_WME 0x00000001 /* Watch-dog Match Enable */
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)
879 * fxtl, Txtl Frequency, period of the system crystal (3.6864 MHz
881 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
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 */
934 #define PCFR_ClkRun (PCFR_OPDE*0) /* Clock Running in sleep mode */
935 #define PCFR_ClkStp (PCFR_OPDE*1) /* Clock Stopped in sleep mode */
945 #define PPCR_CCF Fld (5, 0) /* CPU core Clock (CCLK) Freq. */
1032 #define RCSR_WDR 0x00000004 /* Watch-Dog Reset */
1033 #define RCSR_SMR 0x00000008 /* Sleep-Mode Reset */
1054 #define TUCR_CTB Fld (3, 20) /* Clock Test Bits */
1059 #define TUCR_TSEL Fld (3, 29) /* clock Test SELect on GPIO [27] */
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
1101 * Clock
1102 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
1109 #define GRER __REG(0x90040010) /* GPIO Rising-Edge detect Reg. */
1110 #define GFER __REG(0x90040014) /* GPIO Falling-Edge detect Reg. */
1149 GPIO_GPIO ((Nb) - 6)
1161 #define GPIO_SSP_SCLK GPIO_GPIO (12) /* SSP Sample CLocK (O) */
1166 #define GPIO_SDLC_SCLK GPIO_GPIO (16) /* SDLC Sample CLocK (I/O) */
1168 #define GPIO_UART_SCLK1 GPIO_GPIO (18) /* UART Sample CLocK 1 (I) */
1170 #define GPIO_SSP_CLK GPIO_GPIO (19) /* SSP external CLocK (I) */
1172 #define GPIO_UART_SCLK3 GPIO_GPIO (20) /* UART Sample CLocK 3 (I) */
1174 #define GPIO_MCP_CLK GPIO_GPIO (21) /* MCP CLocK (I) */
1181 #define GPIO_1Hz GPIO_GPIO (25) /* 1 Hz clock (O) */
1182 #define GPIO_RCLK GPIO_GPIO (26) /* internal (R) CLocK (O, fcpu/2) */
1183 #define GPIO_32_768kHz GPIO_GPIO (27) /* 32.768 kHz clock (O, RTC) */
1200 * (rev. = 8) and higher of the StrongARM SA-1100.]
1206 * StrongARM SA-1100, it is active high (non-inverted) in
1253 #define IC_RTC1Hz 0x40000000 /* RTC 1 Hz clock */
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 */
1277 * PSDR Peripheral Pin Controller (PPC) Sleep-mode pin
1286 #define PSDR __REG(0x9006000C) /* PPC Sleep-mode pin Direction Reg. */
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 */
1315 #define PPC_SCLK 0x00100000 /* MCP/SSP Sample CLocK */
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)
1363 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
1364 * fmem, Tmem Frequency, period of the memory clock (fmem = fcpu/2).
1365 * fcas, Tcas Frequency, period of the DRAM CAS shift registers.
1380 #define MDCNFG_DRAC Fld (2, 4) /* DRAM Row Address Count - 9 */
1382 (((Add) - 9) << FShft (MDCNFG_DRAC))
1383 #define MDCNFG_CDB2 0x00000040 /* shift reg. Clock Divide By 2 */
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))
1411 #define MDCNFG_SA1110_CDB20 0x00000080 /* Mem Clock divide by 2 0/1 */
1422 #define MDCNFG_SA1110_CDB22 0x00800000 /* Mem Clock divide by 2 0/1 */
1439 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
1440 * fmem, Tmem Frequency, period of the memory clock (fmem = fcpu/2).
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))
1507 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
1508 * fmem, Tmem Frequency, period of the memory clock (fmem = fcpu/2).
1509 * fbclk, Tbclk Frequency, period of the PCMCIA clock (BCLK).
1520 #define MECR_BSIO Fld (5, 0) /* BCLK Select I/O - 1 [Tmem] */
1521 #define MECR_IOClk(Tcpu) /* I/O Clock [2..64 Tcpu] */ \
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 */
1527 #define MECR_AttrClk(Tcpu) /* Attribute Clock [2..64 Tcpu] */ \
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] */
1532 #define MECR_MemClk(Tcpu) /* Memory Clock [2..64 Tcpu] */ \
1533 ((((Tcpu) - 2)/2) << FShft (MECR_BSM))
1535 ((((Tcpu) - 1)/2) << FShft (MECR_BSM))
1573 * SA-1100.]
1577 * and 1.1 (rev. = 2) of the StrongARM SA-1100, it can be
1592 * StrongARM SA-1100, it can be written and read in
1598 * StrongARM SA-1100, it can be written and read in
1604 * StrongARM SA-1100, it can be written and read in
1607 * the StrongARM SA-1100.]
1610 * fcpu, Tcpu Frequency, period of the CPU core clock (CCLK).
1611 * fmem, Tmem Frequency, period of the memory clock (fmem = fcpu/2).
1612 * fpix, Tpix Frequency, period of the pixel clock.
1613 * fln, Tln Frequency, period of the line clock.
1614 * fac, Tac Frequency, period of the AC bias clock.
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] */ \
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 */ \
1679 #define LCCR0_DPD 0x00000200 /* Double Pixel Data (monochrome */
1681 #define LCCR0_4PixMono (LCCR0_DPD*0) /* 4-Pixel/clock Monochrome */
1683 #define LCCR0_8PixMono (LCCR0_DPD*1) /* 8-Pixel/clock Monochrome */
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 */
1713 #define LCCR1_DisWdth(Pixel) /* Display Width [16..1024 pix.] */ \ argument
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 */
1754 #define LCCR3_PixClkDiv(Div) /* Pixel Clock Divisor [6..514] */ \
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))
1774 #define LCCR3_ACBsCntOff /* AC Bias clock transition Count */ \
1777 #define LCCR3_ACBsCnt(Trans) /* AC Bias clock transition Count */ \
1792 #define LCCR3_PCP 0x00400000 /* Pixel Clock Polarity (L_PCLK) */
1793 #define LCCR3_PixRsEdg (LCCR3_PCP*0) /* Pixel clock Rising-Edge */
1794 #define LCCR3_PixFlEdg (LCCR3_PCP*1) /* Pixel clock Falling-Edge */