1 /* 2 * $Id: lcd.h,v 1.5 2005/09/29 08:51:07 telka Exp $ 3 * 4 * StrongARM SA-1110 LCD Controller Registers 5 * Copyright (C) 2002 ETC s.r.o. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. Neither the name of the ETC s.r.o. nor the names of its contributors 17 * may be used to endorse or promote products derived from this software 18 * without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * Written by Marcel Telka <marcel@telka.sk>, 2002. 32 * 33 * Documentation: 34 * [1] Intel Corporation, "Intel StrongARM SA-1110 Microprocessor 35 * Developer's Manual", October 2001, Order Number: 278240-004 36 * 37 */ 38 39 #ifndef SA11X0_LCD_H 40 #define SA11X0_LCD_H 41 42 #include <openwince.h> 43 44 #if LANGUAGE == C 45 #include <stdint.h> 46 #endif 47 48 /* LCD Controller Registers */ 49 50 #define LCD_BASE 0xB0100000 51 52 #if LANGUAGE == C 53 typedef volatile struct LCD_registers { 54 uint32_t lccr0; 55 uint32_t lcsr; 56 uint32_t __reserved[2]; 57 uint32_t dbar1; 58 uint32_t dcar1; 59 uint32_t dbar2; 60 uint32_t dcar2; 61 uint32_t lccr1; 62 uint32_t lccr2; 63 uint32_t lccr3; 64 } LCD_registers_t; 65 66 #ifdef SA11X0_UNMAPPED 67 #define LCD_pointer ((LCD_registers_t*) LCD_BASE) 68 #endif 69 70 #define LCCR0 LCD_pointer->lccr0 71 #define LCSR LCD_pointer->lcsr 72 #define DBAR! LCD_pointer->dbar1 73 #define DCAR! LCD_pointer->dcar1 74 #define DBAR2 LCD_pointer->dbar2 75 #define DCAR2 LCD_pointer->dcar2 76 #define LCCR1 LCD_pointer->lccr1 77 #define LCCR2 LCD_pointer->lccr2 78 #define LCCR3 LCD_pointer->lccr3 79 #endif /* LANGUAGE == C */ 80 81 #define LCCR0_OFFSET 0x00 82 #define LCSR_OFFSET 0x04 83 #define DBAR1_OFFSET 0x10 84 #define DCAR1_OFFSET 0x14 85 #define DBAR2_OFFSET 0x18 86 #define DCAR2_OFFSET 0x1C 87 #define LCCR1_OFFSET 0x20 88 #define LCCR2_OFFSET 0x24 89 #define LCCR3_OFFSET 0x28 90 91 #endif /* SA11X0_LCD_H */ 92