3ec66893e3
Change-Id: I7517e7d5459e129dcfc9465c6fbd708619888fbe
446 lines
22 KiB
C
446 lines
22 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
* \/ \/ \/ \/ \/
|
|
* This file was automatically generated by headergen, DO NOT EDIT it.
|
|
* headergen version: 3.0.0
|
|
* x1000 version: 1.0
|
|
* x1000 authors: Aidan MacDonald
|
|
*
|
|
* Copyright (C) 2015 by the authors
|
|
*
|
|
* 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.
|
|
*
|
|
****************************************************************************/
|
|
#ifndef __HEADERGEN_LCD_H__
|
|
#define __HEADERGEN_LCD_H__
|
|
|
|
#include "macro.h"
|
|
|
|
#define REG_LCD_CFG jz_reg(LCD_CFG)
|
|
#define JA_LCD_CFG (0xb3050000 + 0x0)
|
|
#define JT_LCD_CFG JIO_32_RW
|
|
#define JN_LCD_CFG LCD_CFG
|
|
#define JI_LCD_CFG
|
|
#define BP_LCD_CFG_INVDAT 17
|
|
#define BM_LCD_CFG_INVDAT 0x20000
|
|
#define BF_LCD_CFG_INVDAT(v) (((v) & 0x1) << 17)
|
|
#define BFM_LCD_CFG_INVDAT(v) BM_LCD_CFG_INVDAT
|
|
#define BF_LCD_CFG_INVDAT_V(e) BF_LCD_CFG_INVDAT(BV_LCD_CFG_INVDAT__##e)
|
|
#define BFM_LCD_CFG_INVDAT_V(v) BM_LCD_CFG_INVDAT
|
|
|
|
#define REG_LCD_CTRL jz_reg(LCD_CTRL)
|
|
#define JA_LCD_CTRL (0xb3050000 + 0x30)
|
|
#define JT_LCD_CTRL JIO_32_RW
|
|
#define JN_LCD_CTRL LCD_CTRL
|
|
#define JI_LCD_CTRL
|
|
#define BP_LCD_CTRL_BURST 28
|
|
#define BM_LCD_CTRL_BURST 0x70000000
|
|
#define BV_LCD_CTRL_BURST__4WORD 0x0
|
|
#define BV_LCD_CTRL_BURST__8WORD 0x1
|
|
#define BV_LCD_CTRL_BURST__16WORD 0x2
|
|
#define BV_LCD_CTRL_BURST__32WORD 0x3
|
|
#define BV_LCD_CTRL_BURST__64WORD 0x4
|
|
#define BF_LCD_CTRL_BURST(v) (((v) & 0x7) << 28)
|
|
#define BFM_LCD_CTRL_BURST(v) BM_LCD_CTRL_BURST
|
|
#define BF_LCD_CTRL_BURST_V(e) BF_LCD_CTRL_BURST(BV_LCD_CTRL_BURST__##e)
|
|
#define BFM_LCD_CTRL_BURST_V(v) BM_LCD_CTRL_BURST
|
|
#define BP_LCD_CTRL_BPP 0
|
|
#define BM_LCD_CTRL_BPP 0x7
|
|
#define BV_LCD_CTRL_BPP__15BIT_OR_16BIT 0x4
|
|
#define BV_LCD_CTRL_BPP__18BIT_OR_24BIT 0x5
|
|
#define BV_LCD_CTRL_BPP__24BIT_COMPRESSED 0x6
|
|
#define BV_LCD_CTRL_BPP__30BIT 0x7
|
|
#define BF_LCD_CTRL_BPP(v) (((v) & 0x7) << 0)
|
|
#define BFM_LCD_CTRL_BPP(v) BM_LCD_CTRL_BPP
|
|
#define BF_LCD_CTRL_BPP_V(e) BF_LCD_CTRL_BPP(BV_LCD_CTRL_BPP__##e)
|
|
#define BFM_LCD_CTRL_BPP_V(v) BM_LCD_CTRL_BPP
|
|
#define BP_LCD_CTRL_EOFM 13
|
|
#define BM_LCD_CTRL_EOFM 0x2000
|
|
#define BF_LCD_CTRL_EOFM(v) (((v) & 0x1) << 13)
|
|
#define BFM_LCD_CTRL_EOFM(v) BM_LCD_CTRL_EOFM
|
|
#define BF_LCD_CTRL_EOFM_V(e) BF_LCD_CTRL_EOFM(BV_LCD_CTRL_EOFM__##e)
|
|
#define BFM_LCD_CTRL_EOFM_V(v) BM_LCD_CTRL_EOFM
|
|
#define BP_LCD_CTRL_SOFM 12
|
|
#define BM_LCD_CTRL_SOFM 0x1000
|
|
#define BF_LCD_CTRL_SOFM(v) (((v) & 0x1) << 12)
|
|
#define BFM_LCD_CTRL_SOFM(v) BM_LCD_CTRL_SOFM
|
|
#define BF_LCD_CTRL_SOFM_V(e) BF_LCD_CTRL_SOFM(BV_LCD_CTRL_SOFM__##e)
|
|
#define BFM_LCD_CTRL_SOFM_V(v) BM_LCD_CTRL_SOFM
|
|
#define BP_LCD_CTRL_IFUM 10
|
|
#define BM_LCD_CTRL_IFUM 0x400
|
|
#define BF_LCD_CTRL_IFUM(v) (((v) & 0x1) << 10)
|
|
#define BFM_LCD_CTRL_IFUM(v) BM_LCD_CTRL_IFUM
|
|
#define BF_LCD_CTRL_IFUM_V(e) BF_LCD_CTRL_IFUM(BV_LCD_CTRL_IFUM__##e)
|
|
#define BFM_LCD_CTRL_IFUM_V(v) BM_LCD_CTRL_IFUM
|
|
#define BP_LCD_CTRL_QDM 7
|
|
#define BM_LCD_CTRL_QDM 0x80
|
|
#define BF_LCD_CTRL_QDM(v) (((v) & 0x1) << 7)
|
|
#define BFM_LCD_CTRL_QDM(v) BM_LCD_CTRL_QDM
|
|
#define BF_LCD_CTRL_QDM_V(e) BF_LCD_CTRL_QDM(BV_LCD_CTRL_QDM__##e)
|
|
#define BFM_LCD_CTRL_QDM_V(v) BM_LCD_CTRL_QDM
|
|
#define BP_LCD_CTRL_BEDN 6
|
|
#define BM_LCD_CTRL_BEDN 0x40
|
|
#define BF_LCD_CTRL_BEDN(v) (((v) & 0x1) << 6)
|
|
#define BFM_LCD_CTRL_BEDN(v) BM_LCD_CTRL_BEDN
|
|
#define BF_LCD_CTRL_BEDN_V(e) BF_LCD_CTRL_BEDN(BV_LCD_CTRL_BEDN__##e)
|
|
#define BFM_LCD_CTRL_BEDN_V(v) BM_LCD_CTRL_BEDN
|
|
#define BP_LCD_CTRL_PEDN 5
|
|
#define BM_LCD_CTRL_PEDN 0x20
|
|
#define BF_LCD_CTRL_PEDN(v) (((v) & 0x1) << 5)
|
|
#define BFM_LCD_CTRL_PEDN(v) BM_LCD_CTRL_PEDN
|
|
#define BF_LCD_CTRL_PEDN_V(e) BF_LCD_CTRL_PEDN(BV_LCD_CTRL_PEDN__##e)
|
|
#define BFM_LCD_CTRL_PEDN_V(v) BM_LCD_CTRL_PEDN
|
|
#define BP_LCD_CTRL_ENABLE 3
|
|
#define BM_LCD_CTRL_ENABLE 0x8
|
|
#define BF_LCD_CTRL_ENABLE(v) (((v) & 0x1) << 3)
|
|
#define BFM_LCD_CTRL_ENABLE(v) BM_LCD_CTRL_ENABLE
|
|
#define BF_LCD_CTRL_ENABLE_V(e) BF_LCD_CTRL_ENABLE(BV_LCD_CTRL_ENABLE__##e)
|
|
#define BFM_LCD_CTRL_ENABLE_V(v) BM_LCD_CTRL_ENABLE
|
|
|
|
#define REG_LCD_STATE jz_reg(LCD_STATE)
|
|
#define JA_LCD_STATE (0xb3050000 + 0x34)
|
|
#define JT_LCD_STATE JIO_32_RW
|
|
#define JN_LCD_STATE LCD_STATE
|
|
#define JI_LCD_STATE
|
|
#define BP_LCD_STATE_QD 7
|
|
#define BM_LCD_STATE_QD 0x80
|
|
#define BF_LCD_STATE_QD(v) (((v) & 0x1) << 7)
|
|
#define BFM_LCD_STATE_QD(v) BM_LCD_STATE_QD
|
|
#define BF_LCD_STATE_QD_V(e) BF_LCD_STATE_QD(BV_LCD_STATE_QD__##e)
|
|
#define BFM_LCD_STATE_QD_V(v) BM_LCD_STATE_QD
|
|
#define BP_LCD_STATE_EOF 5
|
|
#define BM_LCD_STATE_EOF 0x20
|
|
#define BF_LCD_STATE_EOF(v) (((v) & 0x1) << 5)
|
|
#define BFM_LCD_STATE_EOF(v) BM_LCD_STATE_EOF
|
|
#define BF_LCD_STATE_EOF_V(e) BF_LCD_STATE_EOF(BV_LCD_STATE_EOF__##e)
|
|
#define BFM_LCD_STATE_EOF_V(v) BM_LCD_STATE_EOF
|
|
#define BP_LCD_STATE_SOF 4
|
|
#define BM_LCD_STATE_SOF 0x10
|
|
#define BF_LCD_STATE_SOF(v) (((v) & 0x1) << 4)
|
|
#define BFM_LCD_STATE_SOF(v) BM_LCD_STATE_SOF
|
|
#define BF_LCD_STATE_SOF_V(e) BF_LCD_STATE_SOF(BV_LCD_STATE_SOF__##e)
|
|
#define BFM_LCD_STATE_SOF_V(v) BM_LCD_STATE_SOF
|
|
#define BP_LCD_STATE_IFU 2
|
|
#define BM_LCD_STATE_IFU 0x4
|
|
#define BF_LCD_STATE_IFU(v) (((v) & 0x1) << 2)
|
|
#define BFM_LCD_STATE_IFU(v) BM_LCD_STATE_IFU
|
|
#define BF_LCD_STATE_IFU_V(e) BF_LCD_STATE_IFU(BV_LCD_STATE_IFU__##e)
|
|
#define BFM_LCD_STATE_IFU_V(v) BM_LCD_STATE_IFU
|
|
|
|
#define REG_LCD_OSDCTRL jz_reg(LCD_OSDCTRL)
|
|
#define JA_LCD_OSDCTRL (0xb3050000 + 0x104)
|
|
#define JT_LCD_OSDCTRL JIO_32_RW
|
|
#define JN_LCD_OSDCTRL LCD_OSDCTRL
|
|
#define JI_LCD_OSDCTRL
|
|
|
|
#define REG_LCD_BGC jz_reg(LCD_BGC)
|
|
#define JA_LCD_BGC (0xb3050000 + 0x10c)
|
|
#define JT_LCD_BGC JIO_32_RW
|
|
#define JN_LCD_BGC LCD_BGC
|
|
#define JI_LCD_BGC
|
|
|
|
#define REG_LCD_DAH jz_reg(LCD_DAH)
|
|
#define JA_LCD_DAH (0xb3050000 + 0x10)
|
|
#define JT_LCD_DAH JIO_32_RW
|
|
#define JN_LCD_DAH LCD_DAH
|
|
#define JI_LCD_DAH
|
|
|
|
#define REG_LCD_DAV jz_reg(LCD_DAV)
|
|
#define JA_LCD_DAV (0xb3050000 + 0x14)
|
|
#define JT_LCD_DAV JIO_32_RW
|
|
#define JN_LCD_DAV LCD_DAV
|
|
#define JI_LCD_DAV
|
|
|
|
#define REG_LCD_VAT jz_reg(LCD_VAT)
|
|
#define JA_LCD_VAT (0xb3050000 + 0xc)
|
|
#define JT_LCD_VAT JIO_32_RW
|
|
#define JN_LCD_VAT LCD_VAT
|
|
#define JI_LCD_VAT
|
|
|
|
#define REG_LCD_VSYNC jz_reg(LCD_VSYNC)
|
|
#define JA_LCD_VSYNC (0xb3050000 + 0x4)
|
|
#define JT_LCD_VSYNC JIO_32_RW
|
|
#define JN_LCD_VSYNC LCD_VSYNC
|
|
#define JI_LCD_VSYNC
|
|
|
|
#define REG_LCD_HSYNC jz_reg(LCD_HSYNC)
|
|
#define JA_LCD_HSYNC (0xb3050000 + 0x8)
|
|
#define JT_LCD_HSYNC JIO_32_RW
|
|
#define JN_LCD_HSYNC LCD_HSYNC
|
|
#define JI_LCD_HSYNC
|
|
|
|
#define REG_LCD_IID jz_reg(LCD_IID)
|
|
#define JA_LCD_IID (0xb3050000 + 0x38)
|
|
#define JT_LCD_IID JIO_32_RW
|
|
#define JN_LCD_IID LCD_IID
|
|
#define JI_LCD_IID
|
|
|
|
#define REG_LCD_DA jz_reg(LCD_DA)
|
|
#define JA_LCD_DA (0xb3050000 + 0x40)
|
|
#define JT_LCD_DA JIO_32_RW
|
|
#define JN_LCD_DA LCD_DA
|
|
#define JI_LCD_DA
|
|
|
|
#define REG_LCD_MCFG jz_reg(LCD_MCFG)
|
|
#define JA_LCD_MCFG (0xb3050000 + 0xa0)
|
|
#define JT_LCD_MCFG JIO_32_RW
|
|
#define JN_LCD_MCFG LCD_MCFG
|
|
#define JI_LCD_MCFG
|
|
#define BP_LCD_MCFG_CWIDTH 8
|
|
#define BM_LCD_MCFG_CWIDTH 0x300
|
|
#define BV_LCD_MCFG_CWIDTH__16BIT_OR_9BIT 0x0
|
|
#define BV_LCD_MCFG_CWIDTH__8BIT 0x1
|
|
#define BV_LCD_MCFG_CWIDTH__18BIT 0x2
|
|
#define BV_LCD_MCFG_CWIDTH__24BIT 0x3
|
|
#define BF_LCD_MCFG_CWIDTH(v) (((v) & 0x3) << 8)
|
|
#define BFM_LCD_MCFG_CWIDTH(v) BM_LCD_MCFG_CWIDTH
|
|
#define BF_LCD_MCFG_CWIDTH_V(e) BF_LCD_MCFG_CWIDTH(BV_LCD_MCFG_CWIDTH__##e)
|
|
#define BFM_LCD_MCFG_CWIDTH_V(v) BM_LCD_MCFG_CWIDTH
|
|
|
|
#define REG_LCD_MCFG_NEW jz_reg(LCD_MCFG_NEW)
|
|
#define JA_LCD_MCFG_NEW (0xb3050000 + 0xb8)
|
|
#define JT_LCD_MCFG_NEW JIO_32_RW
|
|
#define JN_LCD_MCFG_NEW LCD_MCFG_NEW
|
|
#define JI_LCD_MCFG_NEW
|
|
#define BP_LCD_MCFG_NEW_DWIDTH 13
|
|
#define BM_LCD_MCFG_NEW_DWIDTH 0xe000
|
|
#define BV_LCD_MCFG_NEW_DWIDTH__8BIT 0x0
|
|
#define BV_LCD_MCFG_NEW_DWIDTH__9BIT 0x1
|
|
#define BV_LCD_MCFG_NEW_DWIDTH__16BIT 0x2
|
|
#define BV_LCD_MCFG_NEW_DWIDTH__18BIT 0x3
|
|
#define BV_LCD_MCFG_NEW_DWIDTH__24BIT 0x4
|
|
#define BF_LCD_MCFG_NEW_DWIDTH(v) (((v) & 0x7) << 13)
|
|
#define BFM_LCD_MCFG_NEW_DWIDTH(v) BM_LCD_MCFG_NEW_DWIDTH
|
|
#define BF_LCD_MCFG_NEW_DWIDTH_V(e) BF_LCD_MCFG_NEW_DWIDTH(BV_LCD_MCFG_NEW_DWIDTH__##e)
|
|
#define BFM_LCD_MCFG_NEW_DWIDTH_V(v) BM_LCD_MCFG_NEW_DWIDTH
|
|
#define BP_LCD_MCFG_NEW_DTIMES 8
|
|
#define BM_LCD_MCFG_NEW_DTIMES 0x300
|
|
#define BV_LCD_MCFG_NEW_DTIMES__1TIME 0x0
|
|
#define BV_LCD_MCFG_NEW_DTIMES__2TIME 0x1
|
|
#define BV_LCD_MCFG_NEW_DTIMES__3TIME 0x2
|
|
#define BF_LCD_MCFG_NEW_DTIMES(v) (((v) & 0x3) << 8)
|
|
#define BFM_LCD_MCFG_NEW_DTIMES(v) BM_LCD_MCFG_NEW_DTIMES
|
|
#define BF_LCD_MCFG_NEW_DTIMES_V(e) BF_LCD_MCFG_NEW_DTIMES(BV_LCD_MCFG_NEW_DTIMES__##e)
|
|
#define BFM_LCD_MCFG_NEW_DTIMES_V(v) BM_LCD_MCFG_NEW_DTIMES
|
|
#define BP_LCD_MCFG_NEW_6800_MODE 11
|
|
#define BM_LCD_MCFG_NEW_6800_MODE 0x800
|
|
#define BF_LCD_MCFG_NEW_6800_MODE(v) (((v) & 0x1) << 11)
|
|
#define BFM_LCD_MCFG_NEW_6800_MODE(v) BM_LCD_MCFG_NEW_6800_MODE
|
|
#define BF_LCD_MCFG_NEW_6800_MODE_V(e) BF_LCD_MCFG_NEW_6800_MODE(BV_LCD_MCFG_NEW_6800_MODE__##e)
|
|
#define BFM_LCD_MCFG_NEW_6800_MODE_V(v) BM_LCD_MCFG_NEW_6800_MODE
|
|
#define BP_LCD_MCFG_NEW_CMD_9BIT 10
|
|
#define BM_LCD_MCFG_NEW_CMD_9BIT 0x400
|
|
#define BF_LCD_MCFG_NEW_CMD_9BIT(v) (((v) & 0x1) << 10)
|
|
#define BFM_LCD_MCFG_NEW_CMD_9BIT(v) BM_LCD_MCFG_NEW_CMD_9BIT
|
|
#define BF_LCD_MCFG_NEW_CMD_9BIT_V(e) BF_LCD_MCFG_NEW_CMD_9BIT(BV_LCD_MCFG_NEW_CMD_9BIT__##e)
|
|
#define BFM_LCD_MCFG_NEW_CMD_9BIT_V(v) BM_LCD_MCFG_NEW_CMD_9BIT
|
|
#define BP_LCD_MCFG_NEW_CSPLY 5
|
|
#define BM_LCD_MCFG_NEW_CSPLY 0x20
|
|
#define BF_LCD_MCFG_NEW_CSPLY(v) (((v) & 0x1) << 5)
|
|
#define BFM_LCD_MCFG_NEW_CSPLY(v) BM_LCD_MCFG_NEW_CSPLY
|
|
#define BF_LCD_MCFG_NEW_CSPLY_V(e) BF_LCD_MCFG_NEW_CSPLY(BV_LCD_MCFG_NEW_CSPLY__##e)
|
|
#define BFM_LCD_MCFG_NEW_CSPLY_V(v) BM_LCD_MCFG_NEW_CSPLY
|
|
#define BP_LCD_MCFG_NEW_RSPLY 4
|
|
#define BM_LCD_MCFG_NEW_RSPLY 0x10
|
|
#define BF_LCD_MCFG_NEW_RSPLY(v) (((v) & 0x1) << 4)
|
|
#define BFM_LCD_MCFG_NEW_RSPLY(v) BM_LCD_MCFG_NEW_RSPLY
|
|
#define BF_LCD_MCFG_NEW_RSPLY_V(e) BF_LCD_MCFG_NEW_RSPLY(BV_LCD_MCFG_NEW_RSPLY__##e)
|
|
#define BFM_LCD_MCFG_NEW_RSPLY_V(v) BM_LCD_MCFG_NEW_RSPLY
|
|
#define BP_LCD_MCFG_NEW_CLKPLY 3
|
|
#define BM_LCD_MCFG_NEW_CLKPLY 0x8
|
|
#define BF_LCD_MCFG_NEW_CLKPLY(v) (((v) & 0x1) << 3)
|
|
#define BFM_LCD_MCFG_NEW_CLKPLY(v) BM_LCD_MCFG_NEW_CLKPLY
|
|
#define BF_LCD_MCFG_NEW_CLKPLY_V(e) BF_LCD_MCFG_NEW_CLKPLY(BV_LCD_MCFG_NEW_CLKPLY__##e)
|
|
#define BFM_LCD_MCFG_NEW_CLKPLY_V(v) BM_LCD_MCFG_NEW_CLKPLY
|
|
#define BP_LCD_MCFG_NEW_DTYPE 2
|
|
#define BM_LCD_MCFG_NEW_DTYPE 0x4
|
|
#define BV_LCD_MCFG_NEW_DTYPE__SERIAL 0x1
|
|
#define BV_LCD_MCFG_NEW_DTYPE__PARALLEL 0x0
|
|
#define BF_LCD_MCFG_NEW_DTYPE(v) (((v) & 0x1) << 2)
|
|
#define BFM_LCD_MCFG_NEW_DTYPE(v) BM_LCD_MCFG_NEW_DTYPE
|
|
#define BF_LCD_MCFG_NEW_DTYPE_V(e) BF_LCD_MCFG_NEW_DTYPE(BV_LCD_MCFG_NEW_DTYPE__##e)
|
|
#define BFM_LCD_MCFG_NEW_DTYPE_V(v) BM_LCD_MCFG_NEW_DTYPE
|
|
#define BP_LCD_MCFG_NEW_CTYPE 1
|
|
#define BM_LCD_MCFG_NEW_CTYPE 0x2
|
|
#define BV_LCD_MCFG_NEW_CTYPE__SERIAL 0x1
|
|
#define BV_LCD_MCFG_NEW_CTYPE__PARALLEL 0x0
|
|
#define BF_LCD_MCFG_NEW_CTYPE(v) (((v) & 0x1) << 1)
|
|
#define BFM_LCD_MCFG_NEW_CTYPE(v) BM_LCD_MCFG_NEW_CTYPE
|
|
#define BF_LCD_MCFG_NEW_CTYPE_V(e) BF_LCD_MCFG_NEW_CTYPE(BV_LCD_MCFG_NEW_CTYPE__##e)
|
|
#define BFM_LCD_MCFG_NEW_CTYPE_V(v) BM_LCD_MCFG_NEW_CTYPE
|
|
#define BP_LCD_MCFG_NEW_FMT_CONV 0
|
|
#define BM_LCD_MCFG_NEW_FMT_CONV 0x1
|
|
#define BF_LCD_MCFG_NEW_FMT_CONV(v) (((v) & 0x1) << 0)
|
|
#define BFM_LCD_MCFG_NEW_FMT_CONV(v) BM_LCD_MCFG_NEW_FMT_CONV
|
|
#define BF_LCD_MCFG_NEW_FMT_CONV_V(e) BF_LCD_MCFG_NEW_FMT_CONV(BV_LCD_MCFG_NEW_FMT_CONV__##e)
|
|
#define BFM_LCD_MCFG_NEW_FMT_CONV_V(v) BM_LCD_MCFG_NEW_FMT_CONV
|
|
|
|
#define REG_LCD_MCTRL jz_reg(LCD_MCTRL)
|
|
#define JA_LCD_MCTRL (0xb3050000 + 0xa4)
|
|
#define JT_LCD_MCTRL JIO_32_RW
|
|
#define JN_LCD_MCTRL LCD_MCTRL
|
|
#define JI_LCD_MCTRL
|
|
#define BP_LCD_MCTRL_NARROW_TE 10
|
|
#define BM_LCD_MCTRL_NARROW_TE 0x400
|
|
#define BF_LCD_MCTRL_NARROW_TE(v) (((v) & 0x1) << 10)
|
|
#define BFM_LCD_MCTRL_NARROW_TE(v) BM_LCD_MCTRL_NARROW_TE
|
|
#define BF_LCD_MCTRL_NARROW_TE_V(e) BF_LCD_MCTRL_NARROW_TE(BV_LCD_MCTRL_NARROW_TE__##e)
|
|
#define BFM_LCD_MCTRL_NARROW_TE_V(v) BM_LCD_MCTRL_NARROW_TE
|
|
#define BP_LCD_MCTRL_TE_INV 9
|
|
#define BM_LCD_MCTRL_TE_INV 0x200
|
|
#define BF_LCD_MCTRL_TE_INV(v) (((v) & 0x1) << 9)
|
|
#define BFM_LCD_MCTRL_TE_INV(v) BM_LCD_MCTRL_TE_INV
|
|
#define BF_LCD_MCTRL_TE_INV_V(e) BF_LCD_MCTRL_TE_INV(BV_LCD_MCTRL_TE_INV__##e)
|
|
#define BFM_LCD_MCTRL_TE_INV_V(v) BM_LCD_MCTRL_TE_INV
|
|
#define BP_LCD_MCTRL_NOT_USE_TE 8
|
|
#define BM_LCD_MCTRL_NOT_USE_TE 0x100
|
|
#define BF_LCD_MCTRL_NOT_USE_TE(v) (((v) & 0x1) << 8)
|
|
#define BFM_LCD_MCTRL_NOT_USE_TE(v) BM_LCD_MCTRL_NOT_USE_TE
|
|
#define BF_LCD_MCTRL_NOT_USE_TE_V(e) BF_LCD_MCTRL_NOT_USE_TE(BV_LCD_MCTRL_NOT_USE_TE__##e)
|
|
#define BFM_LCD_MCTRL_NOT_USE_TE_V(v) BM_LCD_MCTRL_NOT_USE_TE
|
|
#define BP_LCD_MCTRL_DCSI_SEL 7
|
|
#define BM_LCD_MCTRL_DCSI_SEL 0x80
|
|
#define BF_LCD_MCTRL_DCSI_SEL(v) (((v) & 0x1) << 7)
|
|
#define BFM_LCD_MCTRL_DCSI_SEL(v) BM_LCD_MCTRL_DCSI_SEL
|
|
#define BF_LCD_MCTRL_DCSI_SEL_V(e) BF_LCD_MCTRL_DCSI_SEL(BV_LCD_MCTRL_DCSI_SEL__##e)
|
|
#define BFM_LCD_MCTRL_DCSI_SEL_V(v) BM_LCD_MCTRL_DCSI_SEL
|
|
#define BP_LCD_MCTRL_MIPI_SLCD 6
|
|
#define BM_LCD_MCTRL_MIPI_SLCD 0x40
|
|
#define BF_LCD_MCTRL_MIPI_SLCD(v) (((v) & 0x1) << 6)
|
|
#define BFM_LCD_MCTRL_MIPI_SLCD(v) BM_LCD_MCTRL_MIPI_SLCD
|
|
#define BF_LCD_MCTRL_MIPI_SLCD_V(e) BF_LCD_MCTRL_MIPI_SLCD(BV_LCD_MCTRL_MIPI_SLCD__##e)
|
|
#define BFM_LCD_MCTRL_MIPI_SLCD_V(v) BM_LCD_MCTRL_MIPI_SLCD
|
|
#define BP_LCD_MCTRL_FAST_MODE 4
|
|
#define BM_LCD_MCTRL_FAST_MODE 0x10
|
|
#define BF_LCD_MCTRL_FAST_MODE(v) (((v) & 0x1) << 4)
|
|
#define BFM_LCD_MCTRL_FAST_MODE(v) BM_LCD_MCTRL_FAST_MODE
|
|
#define BF_LCD_MCTRL_FAST_MODE_V(e) BF_LCD_MCTRL_FAST_MODE(BV_LCD_MCTRL_FAST_MODE__##e)
|
|
#define BFM_LCD_MCTRL_FAST_MODE_V(v) BM_LCD_MCTRL_FAST_MODE
|
|
#define BP_LCD_MCTRL_GATE_MASK 3
|
|
#define BM_LCD_MCTRL_GATE_MASK 0x8
|
|
#define BF_LCD_MCTRL_GATE_MASK(v) (((v) & 0x1) << 3)
|
|
#define BFM_LCD_MCTRL_GATE_MASK(v) BM_LCD_MCTRL_GATE_MASK
|
|
#define BF_LCD_MCTRL_GATE_MASK_V(e) BF_LCD_MCTRL_GATE_MASK(BV_LCD_MCTRL_GATE_MASK__##e)
|
|
#define BFM_LCD_MCTRL_GATE_MASK_V(v) BM_LCD_MCTRL_GATE_MASK
|
|
#define BP_LCD_MCTRL_DMA_MODE 2
|
|
#define BM_LCD_MCTRL_DMA_MODE 0x4
|
|
#define BF_LCD_MCTRL_DMA_MODE(v) (((v) & 0x1) << 2)
|
|
#define BFM_LCD_MCTRL_DMA_MODE(v) BM_LCD_MCTRL_DMA_MODE
|
|
#define BF_LCD_MCTRL_DMA_MODE_V(e) BF_LCD_MCTRL_DMA_MODE(BV_LCD_MCTRL_DMA_MODE__##e)
|
|
#define BFM_LCD_MCTRL_DMA_MODE_V(v) BM_LCD_MCTRL_DMA_MODE
|
|
#define BP_LCD_MCTRL_DMA_START 1
|
|
#define BM_LCD_MCTRL_DMA_START 0x2
|
|
#define BF_LCD_MCTRL_DMA_START(v) (((v) & 0x1) << 1)
|
|
#define BFM_LCD_MCTRL_DMA_START(v) BM_LCD_MCTRL_DMA_START
|
|
#define BF_LCD_MCTRL_DMA_START_V(e) BF_LCD_MCTRL_DMA_START(BV_LCD_MCTRL_DMA_START__##e)
|
|
#define BFM_LCD_MCTRL_DMA_START_V(v) BM_LCD_MCTRL_DMA_START
|
|
#define BP_LCD_MCTRL_DMA_TX_EN 0
|
|
#define BM_LCD_MCTRL_DMA_TX_EN 0x1
|
|
#define BF_LCD_MCTRL_DMA_TX_EN(v) (((v) & 0x1) << 0)
|
|
#define BFM_LCD_MCTRL_DMA_TX_EN(v) BM_LCD_MCTRL_DMA_TX_EN
|
|
#define BF_LCD_MCTRL_DMA_TX_EN_V(e) BF_LCD_MCTRL_DMA_TX_EN(BV_LCD_MCTRL_DMA_TX_EN__##e)
|
|
#define BFM_LCD_MCTRL_DMA_TX_EN_V(v) BM_LCD_MCTRL_DMA_TX_EN
|
|
|
|
#define REG_LCD_MSTATE jz_reg(LCD_MSTATE)
|
|
#define JA_LCD_MSTATE (0xb3050000 + 0xa8)
|
|
#define JT_LCD_MSTATE JIO_32_RW
|
|
#define JN_LCD_MSTATE LCD_MSTATE
|
|
#define JI_LCD_MSTATE
|
|
#define BP_LCD_MSTATE_LCD_ID 16
|
|
#define BM_LCD_MSTATE_LCD_ID 0xffff0000
|
|
#define BF_LCD_MSTATE_LCD_ID(v) (((v) & 0xffff) << 16)
|
|
#define BFM_LCD_MSTATE_LCD_ID(v) BM_LCD_MSTATE_LCD_ID
|
|
#define BF_LCD_MSTATE_LCD_ID_V(e) BF_LCD_MSTATE_LCD_ID(BV_LCD_MSTATE_LCD_ID__##e)
|
|
#define BFM_LCD_MSTATE_LCD_ID_V(v) BM_LCD_MSTATE_LCD_ID
|
|
#define BP_LCD_MSTATE_BUSY 0
|
|
#define BM_LCD_MSTATE_BUSY 0x1
|
|
#define BF_LCD_MSTATE_BUSY(v) (((v) & 0x1) << 0)
|
|
#define BFM_LCD_MSTATE_BUSY(v) BM_LCD_MSTATE_BUSY
|
|
#define BF_LCD_MSTATE_BUSY_V(e) BF_LCD_MSTATE_BUSY(BV_LCD_MSTATE_BUSY__##e)
|
|
#define BFM_LCD_MSTATE_BUSY_V(v) BM_LCD_MSTATE_BUSY
|
|
|
|
#define REG_LCD_MDATA jz_reg(LCD_MDATA)
|
|
#define JA_LCD_MDATA (0xb3050000 + 0xac)
|
|
#define JT_LCD_MDATA JIO_32_RW
|
|
#define JN_LCD_MDATA LCD_MDATA
|
|
#define JI_LCD_MDATA
|
|
#define BP_LCD_MDATA_TYPE 30
|
|
#define BM_LCD_MDATA_TYPE 0xc0000000
|
|
#define BV_LCD_MDATA_TYPE__CMD 0x1
|
|
#define BV_LCD_MDATA_TYPE__DAT 0x0
|
|
#define BF_LCD_MDATA_TYPE(v) (((v) & 0x3) << 30)
|
|
#define BFM_LCD_MDATA_TYPE(v) BM_LCD_MDATA_TYPE
|
|
#define BF_LCD_MDATA_TYPE_V(e) BF_LCD_MDATA_TYPE(BV_LCD_MDATA_TYPE__##e)
|
|
#define BFM_LCD_MDATA_TYPE_V(v) BM_LCD_MDATA_TYPE
|
|
#define BP_LCD_MDATA_DATA 0
|
|
#define BM_LCD_MDATA_DATA 0xffffff
|
|
#define BF_LCD_MDATA_DATA(v) (((v) & 0xffffff) << 0)
|
|
#define BFM_LCD_MDATA_DATA(v) BM_LCD_MDATA_DATA
|
|
#define BF_LCD_MDATA_DATA_V(e) BF_LCD_MDATA_DATA(BV_LCD_MDATA_DATA__##e)
|
|
#define BFM_LCD_MDATA_DATA_V(v) BM_LCD_MDATA_DATA
|
|
|
|
#define REG_LCD_WTIME jz_reg(LCD_WTIME)
|
|
#define JA_LCD_WTIME (0xb3050000 + 0xb0)
|
|
#define JT_LCD_WTIME JIO_32_RW
|
|
#define JN_LCD_WTIME LCD_WTIME
|
|
#define JI_LCD_WTIME
|
|
#define BP_LCD_WTIME_DHTIME 24
|
|
#define BM_LCD_WTIME_DHTIME 0xff000000
|
|
#define BF_LCD_WTIME_DHTIME(v) (((v) & 0xff) << 24)
|
|
#define BFM_LCD_WTIME_DHTIME(v) BM_LCD_WTIME_DHTIME
|
|
#define BF_LCD_WTIME_DHTIME_V(e) BF_LCD_WTIME_DHTIME(BV_LCD_WTIME_DHTIME__##e)
|
|
#define BFM_LCD_WTIME_DHTIME_V(v) BM_LCD_WTIME_DHTIME
|
|
#define BP_LCD_WTIME_DLTIME 16
|
|
#define BM_LCD_WTIME_DLTIME 0xff0000
|
|
#define BF_LCD_WTIME_DLTIME(v) (((v) & 0xff) << 16)
|
|
#define BFM_LCD_WTIME_DLTIME(v) BM_LCD_WTIME_DLTIME
|
|
#define BF_LCD_WTIME_DLTIME_V(e) BF_LCD_WTIME_DLTIME(BV_LCD_WTIME_DLTIME__##e)
|
|
#define BFM_LCD_WTIME_DLTIME_V(v) BM_LCD_WTIME_DLTIME
|
|
#define BP_LCD_WTIME_CHTIME 8
|
|
#define BM_LCD_WTIME_CHTIME 0xff00
|
|
#define BF_LCD_WTIME_CHTIME(v) (((v) & 0xff) << 8)
|
|
#define BFM_LCD_WTIME_CHTIME(v) BM_LCD_WTIME_CHTIME
|
|
#define BF_LCD_WTIME_CHTIME_V(e) BF_LCD_WTIME_CHTIME(BV_LCD_WTIME_CHTIME__##e)
|
|
#define BFM_LCD_WTIME_CHTIME_V(v) BM_LCD_WTIME_CHTIME
|
|
#define BP_LCD_WTIME_CLTIME 0
|
|
#define BM_LCD_WTIME_CLTIME 0xff
|
|
#define BF_LCD_WTIME_CLTIME(v) (((v) & 0xff) << 0)
|
|
#define BFM_LCD_WTIME_CLTIME(v) BM_LCD_WTIME_CLTIME
|
|
#define BF_LCD_WTIME_CLTIME_V(e) BF_LCD_WTIME_CLTIME(BV_LCD_WTIME_CLTIME__##e)
|
|
#define BFM_LCD_WTIME_CLTIME_V(v) BM_LCD_WTIME_CLTIME
|
|
|
|
#define REG_LCD_TASH jz_reg(LCD_TASH)
|
|
#define JA_LCD_TASH (0xb3050000 + 0xb4)
|
|
#define JT_LCD_TASH JIO_32_RW
|
|
#define JN_LCD_TASH LCD_TASH
|
|
#define JI_LCD_TASH
|
|
#define BP_LCD_TASH_TAH 8
|
|
#define BM_LCD_TASH_TAH 0xff00
|
|
#define BF_LCD_TASH_TAH(v) (((v) & 0xff) << 8)
|
|
#define BFM_LCD_TASH_TAH(v) BM_LCD_TASH_TAH
|
|
#define BF_LCD_TASH_TAH_V(e) BF_LCD_TASH_TAH(BV_LCD_TASH_TAH__##e)
|
|
#define BFM_LCD_TASH_TAH_V(v) BM_LCD_TASH_TAH
|
|
#define BP_LCD_TASH_TAS 0
|
|
#define BM_LCD_TASH_TAS 0xff
|
|
#define BF_LCD_TASH_TAS(v) (((v) & 0xff) << 0)
|
|
#define BFM_LCD_TASH_TAS(v) BM_LCD_TASH_TAS
|
|
#define BF_LCD_TASH_TAS_V(e) BF_LCD_TASH_TAS(BV_LCD_TASH_TAS__##e)
|
|
#define BFM_LCD_TASH_TAS_V(v) BM_LCD_TASH_TAS
|
|
|
|
#define REG_LCD_SMWT jz_reg(LCD_SMWT)
|
|
#define JA_LCD_SMWT (0xb3050000 + 0xbc)
|
|
#define JT_LCD_SMWT JIO_32_RW
|
|
#define JN_LCD_SMWT LCD_SMWT
|
|
#define JI_LCD_SMWT
|
|
|
|
#endif /* __HEADERGEN_LCD_H__*/
|