diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 12:25:27 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 12:25:27 +0000 |
| commit | ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e (patch) | |
| tree | 70e8e8655208a51f303abb09c4be6a7b93cb1f57 /firmware/export/r61509.h | |
| parent | dff382cb9c94f36246ed5aeea1ef4ddb26686588 (diff) | |
| download | rockbox-ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e.zip rockbox-ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e.tar.gz rockbox-ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e.tar.bz2 rockbox-ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e.tar.xz | |
Use register defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/r61509.h')
| -rw-r--r-- | firmware/export/r61509.h | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/firmware/export/r61509.h b/firmware/export/r61509.h new file mode 100644 index 0000000..ca966ee --- /dev/null +++ b/firmware/export/r61509.h @@ -0,0 +1,105 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2008 by Maurus Cuelenaere + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +/* + * Register definitions for the Renesas R61509 TFT Panel + */ +#ifndef __R61509_H +#define __R61509_H + +/* Register list */ +#define REG_DRIVER_OUTPUT 0x001 +#define REG_LCD_DR_WAVE_CTRL 0x002 +#define REG_ENTRY_MODE 0x003 +#define REG_DISP_CTRL1 0x007 +#define REG_DISP_CTRL2 0x008 +#define REG_DISP_CTRL3 0x009 +#define REG_LPCTRL 0x00B +#define REG_EXT_DISP_CTRL1 0x00C +#define REG_EXT_DISP_CTRL2 0x00F +#define REG_PAN_INTF_CTRL1 0x010 +#define REG_PAN_INTF_CTRL2 0x011 +#define REG_PAN_INTF_CTRL3 0x012 +#define REG_PAN_INTF_CTRL4 0x020 +#define REG_PAN_INTF_CTRL5 0x021 +#define REG_PAN_INTF_CTRL6 0x022 +#define REG_FRM_MRKR_CTRL 0x090 + +#define REG_PWR_CTRL1 0x100 +#define REG_PWR_CTRL2 0x101 +#define REG_PWR_CTRL3 0x102 +#define REG_PWR_CTRL4 0x103 +#define REG_PWR_CTRL5 0x107 +#define REG_PWR_CTRL6 0x110 +#define REG_PWR_CTRL7 0x112 + +#define REG_RAM_HADDR_SET 0x200 +#define REG_RAM_VADDR_SET 0x201 +#define REG_RW_GRAM 0x202 +#define REG_RAM_HADDR_START 0x210 +#define REG_RAM_HADDR_END 0x211 +#define REG_RAM_VADDR_START 0x212 +#define REG_RAM_VADDR_END 0x213 +#define REG_RW_NVM 0x280 +#define REG_VCOM_HVOLTAGE1 0x281 +#define REG_VCOM_HVOLTAGE2 0x282 + +#define REG_GAMMA_CTRL1 0x300 +#define REG_GAMMA_CTRL2 0x301 +#define REG_GAMMA_CTRL3 0x302 +#define REG_GAMMA_CTRL4 0x303 +#define REG_GAMMA_CTRL5 0x304 +#define REG_GAMMA_CTRL6 0x305 +#define REG_GAMMA_CTRL7 0x306 +#define REG_GAMMA_CTRL8 0x307 +#define REG_GAMMA_CTRL9 0x308 +#define REG_GAMMA_CTRL10 0x309 +#define REG_GAMMA_CTRL11 0x30A +#define REG_GAMMA_CTRL12 0x30B +#define REG_GAMMA_CTRL13 0x30C +#define REG_GAMMA_CTRL14 0x30D + +#define REG_BIMG_NR_LINE 0x400 +#define REG_BIMG_DISP_CTRL 0x401 +#define REG_BIMG_VSCROLL_CTRL 0x404 + +#define REG_PARTIMG1_POS 0x500 +#define REG_PARTIMG1_RAM_START 0x501 +#define REG_PARTIMG1_RAM_END 0x502 +#define REG_PARTIMG2_POS 0x503 +#define REG_PARTIMG2_RAM_START 0x504 +#define REG_PARTIMG2_RAM_END 0x505 + +#define REG_SOFT_RESET 0x600 +#define REG_ENDIAN_CTRL 0x606 +#define REG_NVM_ACCESS_CTRL 0x6F0 + +/* Bits */ +#define DRIVER_OUTPUT_SS_BIT (1 << 8) +#define DRIVER_OUTPUT_SM_BIT (1 << 10) + +#define SOFT_RESET_EN (1 << 0) +#define SOFT_RESET_DIS (0 << 0) + +#define ENDIAN_CTRL_BIG +#define ENDIAN_CTRL_LITTLE + +#endif /* __R61509_H */
\ No newline at end of file |