/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * This file was automatically generated by headergen, DO NOT EDIT it.
 * headergen version: 3.0.0
 * stmp3600 version: 2.4.0
 * stmp3600 authors: Amaury Pouly
 *
 * 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_STMP3600_LCDIF_H__
#define __HEADERGEN_STMP3600_LCDIF_H__

#define HW_LCDIF_CTRL                               HW(LCDIF_CTRL)
#define HWA_LCDIF_CTRL                              (0x80060000 + 0x0)
#define HWT_LCDIF_CTRL                              HWIO_32_RW
#define HWN_LCDIF_CTRL                              LCDIF_CTRL
#define HWI_LCDIF_CTRL                              
#define HW_LCDIF_CTRL_SET                           HW(LCDIF_CTRL_SET)
#define HWA_LCDIF_CTRL_SET                          (HWA_LCDIF_CTRL + 0x4)
#define HWT_LCDIF_CTRL_SET                          HWIO_32_WO
#define HWN_LCDIF_CTRL_SET                          LCDIF_CTRL
#define HWI_LCDIF_CTRL_SET                          
#define HW_LCDIF_CTRL_CLR                           HW(LCDIF_CTRL_CLR)
#define HWA_LCDIF_CTRL_CLR                          (HWA_LCDIF_CTRL + 0x8)
#define HWT_LCDIF_CTRL_CLR                          HWIO_32_WO
#define HWN_LCDIF_CTRL_CLR                          LCDIF_CTRL
#define HWI_LCDIF_CTRL_CLR                          
#define HW_LCDIF_CTRL_TOG                           HW(LCDIF_CTRL_TOG)
#define HWA_LCDIF_CTRL_TOG                          (HWA_LCDIF_CTRL + 0xc)
#define HWT_LCDIF_CTRL_TOG                          HWIO_32_WO
#define HWN_LCDIF_CTRL_TOG                          LCDIF_CTRL
#define HWI_LCDIF_CTRL_TOG                          
#define BP_LCDIF_CTRL_SFTRST                        31
#define BM_LCDIF_CTRL_SFTRST                        0x80000000
#define BF_LCDIF_CTRL_SFTRST(v)                     (((v) & 0x1) << 31)
#define BFM_LCDIF_CTRL_SFTRST(v)                    BM_LCDIF_CTRL_SFTRST
#define BF_LCDIF_CTRL_SFTRST_V(e)                   BF_LCDIF_CTRL_SFTRST(BV_LCDIF_CTRL_SFTRST__##e)
#define BFM_LCDIF_CTRL_SFTRST_V(v)                  BM_LCDIF_CTRL_SFTRST
#define BP_LCDIF_CTRL_CLKGATE                       30
#define BM_LCDIF_CTRL_CLKGATE                       0x40000000
#define BF_LCDIF_CTRL_CLKGATE(v)                    (((v) & 0x1) << 30)
#define BFM_LCDIF_CTRL_CLKGATE(v)                   BM_LCDIF_CTRL_CLKGATE
#define BF_LCDIF_CTRL_CLKGATE_V(e)                  BF_LCDIF_CTRL_CLKGATE(BV_LCDIF_CTRL_CLKGATE__##e)
#define BFM_LCDIF_CTRL_CLKGATE_V(v)                 BM_LCDIF_CTRL_CLKGATE
#define BP_LCDIF_CTRL_PRESENT                       29
#define BM_LCDIF_CTRL_PRESENT                       0x20000000
#define BF_LCDIF_CTRL_PRESENT(v)                    (((v) & 0x1) << 29)
#define BFM_LCDIF_CTRL_PRESENT(v)                   BM_LCDIF_CTRL_PRESENT
#define BF_LCDIF_CTRL_PRESENT_V(e)                  BF_LCDIF_CTRL_PRESENT(BV_LCDIF_CTRL_PRESENT__##e)
#define BFM_LCDIF_CTRL_PRESENT_V(v)                 BM_LCDIF_CTRL_PRESENT
#define BP_LCDIF_CTRL_BUSY_ENABLE                   25
#define BM_LCDIF_CTRL_BUSY_ENABLE                   0x2000000
#define BV_LCDIF_CTRL_BUSY_ENABLE__BUSY_DISABLED    0x0
#define BV_LCDIF_CTRL_BUSY_ENABLE__BUSY_ENABLED     0x1
#define BF_LCDIF_CTRL_BUSY_ENABLE(v)                (((v) & 0x1) << 25)
#define BFM_LCDIF_CTRL_BUSY_ENABLE(v)               BM_LCDIF_CTRL_BUSY_ENABLE
#define BF_LCDIF_CTRL_BUSY_ENABLE_V(e)              BF_LCDIF_CTRL_BUSY_ENABLE(BV_LCDIF_CTRL_BUSY_ENABLE__##e)
#define BFM_LCDIF_CTRL_BUSY_ENABLE_V(v)             BM_LCDIF_CTRL_BUSY_ENABLE
#define BP_LCDIF_CTRL_FIFO_STATUS                   24
#define BM_LCDIF_CTRL_FIFO_STATUS                   0x1000000
#define BV_LCDIF_CTRL_FIFO_STATUS__FIFO_FULL        0x0
#define BV_LCDIF_CTRL_FIFO_STATUS__FIFO_OK          0x1
#define BF_LCDIF_CTRL_FIFO_STATUS(v)                (((v) & 0x1) << 24)
#define BFM_LCDIF_CTRL_FIFO_STATUS(v)               BM_LCDIF_CTRL_FIFO_STATUS
#define BF_LCDIF_CTRL_FIFO_STATUS_V(e)              BF_LCDIF_CTRL_FIFO_STATUS(BV_LCDIF_CTRL_FIFO_STATUS__##e)
#define BFM_LCDIF_CTRL_FIFO_STATUS_V(v)             BM_LCDIF_CTRL_FIFO_STATUS
#define BP_LCDIF_CTRL_DMA_REQ                       23
#define BM_LCDIF_CTRL_DMA_REQ                       0x800000
#define BF_LCDIF_CTRL_DMA_REQ(v)                    (((v) & 0x1) << 23)
#define BFM_LCDIF_CTRL_DMA_REQ(v)                   BM_LCDIF_CTRL_DMA_REQ
#define BF_LCDIF_CTRL_DMA_REQ_V(e)                  BF_LCDIF_CTRL_DMA_REQ(BV_LCDIF_CTRL_DMA_REQ__##e)
#define BFM_LCDIF_CTRL_DMA_REQ_V(v)                 BM_LCDIF_CTRL_DMA_REQ
#define BP_LCDIF_CTRL_DATA_SWIZZLE                  21
#define BM_LCDIF_CTRL_DATA_SWIZZLE                  0x600000
#define BV_LCDIF_CTRL_DATA_SWIZZLE__NO_SWAP         0x0
#define BV_LCDIF_CTRL_DATA_SWIZZLE__LITTLE_ENDIAN   0x0
#define BV_LCDIF_CTRL_DATA_SWIZZLE__BIG_ENDIAN_SWAP 0x1
#define BV_LCDIF_CTRL_DATA_SWIZZLE__SWAP_ALL_BYTES  0x1
#define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_SWAP        0x2
#define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_BYTE_SWAP   0x3
#define BF_LCDIF_CTRL_DATA_SWIZZLE(v)               (((v) & 0x3) << 21)
#define BFM_LCDIF_CTRL_DATA_SWIZZLE(v)              BM_LCDIF_CTRL_DATA_SWIZZLE
#define BF_LCDIF_CTRL_DATA_SWIZZLE_V(e)             BF_LCDIF_CTRL_DATA_SWIZZLE(BV_LCDIF_CTRL_DATA_SWIZZLE__##e)
#define BFM_LCDIF_CTRL_DATA_SWIZZLE_V(v)            BM_LCDIF_CTRL_DATA_SWIZZLE
#define BP_LCDIF_CTRL_RESET                         20
#define BM_LCDIF_CTRL_RESET                         0x100000
#define BV_LCDIF_CTRL_RESET__LCDRESET_LOW           0x0
#define BV_LCDIF_CTRL_RESET__LCDRESET_HIGH          0x1
#define BF_LCDIF_CTRL_RESET(v)                      (((v) & 0x1) << 20)
#define BFM_LCDIF_CTRL_RESET(v)                     BM_LCDIF_CTRL_RESET
#define BF_LCDIF_CTRL_RESET_V(e)                    BF_LCDIF_CTRL_RESET(BV_LCDIF_CTRL_RESET__##e)
#define BFM_LCDIF_CTRL_RESET_V(v)                   BM_LCDIF_CTRL_RESET
#define BP_LCDIF_CTRL_MODE86                        19
#define BM_LCDIF_CTRL_MODE86                        0x80000
#define BV_LCDIF_CTRL_MODE86__8080_MODE             0x0
#define BV_LCDIF_CTRL_MODE86__6800_MODE             0x1
#define BF_LCDIF_CTRL_MODE86(v)                     (((v) & 0x1) << 19)
#define BFM_LCDIF_CTRL_MODE86(v)                    BM_LCDIF_CTRL_MODE86
#define BF_LCDIF_CTRL_MODE86_V(e)                   BF_LCDIF_CTRL_MODE86(BV_LCDIF_CTRL_MODE86__##e)
#define BFM_LCDIF_CTRL_MODE86_V(v)                  BM_LCDIF_CTRL_MODE86
#define BP_LCDIF_CTRL_DATA_SELECT                   18
#define BM_LCDIF_CTRL_DATA_SELECT                   0x40000
#define BV_LCDIF_CTRL_DATA_SELECT__CMD_MODE         0x0
#define BV_LCDIF_CTRL_DATA_SELECT__DATA_MODE        0x1
#define BF_LCDIF_CTRL_DATA_SELECT(v)                (((v) & 0x1) << 18)
#define BFM_LCDIF_CTRL_DATA_SELECT(v)               BM_LCDIF_CTRL_DATA_SELECT
#define BF_LCDIF_CTRL_DATA_SELECT_V(e)              BF_LCDIF_CTRL_DATA_SELECT(BV_LCDIF_CTRL_DATA_SELECT__##e)
#define BFM_LCDIF_CTRL_DATA_SELECT_V(v)             BM_LCDIF_CTRL_DATA_SELECT
#define BP_LCDIF_CTRL_WORD_LENGTH                   17
#define BM_LCDIF_CTRL_WORD_LENGTH                   0x20000
#define BV_LCDIF_CTRL_WORD_LENGTH__16_BIT           0x0
#define BV_LCDIF_CTRL_WORD_LENGTH__8_BIT            0x1
#define BF_LCDIF_CTRL_WORD_LENGTH(v)                (((v) & 0x1) << 17)
#define BFM_LCDIF_CTRL_WORD_LENGTH(v)               BM_LCDIF_CTRL_WORD_LENGTH
#define BF_LCDIF_CTRL_WORD_LENGTH_V(e)              BF_LCDIF_CTRL_WORD_LENGTH(BV_LCDIF_CTRL_WORD_LENGTH__##e)
#define BFM_LCDIF_CTRL_WORD_LENGTH_V(v)             BM_LCDIF_CTRL_WORD_LENGTH
#define BP_LCDIF_CTRL_RUN                           16
#define BM_LCDIF_CTRL_RUN                           0x10000
#define BF_LCDIF_CTRL_RUN(v)                        (((v) & 0x1) << 16)
#define BFM_LCDIF_CTRL_RUN(v)                       BM_LCDIF_CTRL_RUN
#define BF_LCDIF_CTRL_RUN_V(e)                      BF_LCDIF_CTRL_RUN(BV_LCDIF_CTRL_RUN__##e)
#define BFM_LCDIF_CTRL_RUN_V(v)                     BM_LCDIF_CTRL_RUN
#define BP_LCDIF_CTRL_COUNT                         0
#define BM_LCDIF_CTRL_COUNT                         0xffff
#define BF_LCDIF_CTRL_COUNT(v)                      (((v) & 0xffff) << 0)
#define BFM_LCDIF_CTRL_COUNT(v)                     BM_LCDIF_CTRL_COUNT
#define BF_LCDIF_CTRL_COUNT_V(e)                    BF_LCDIF_CTRL_COUNT(BV_LCDIF_CTRL_COUNT__##e)
#define BFM_LCDIF_CTRL_COUNT_V(v)                   BM_LCDIF_CTRL_COUNT

#define HW_LCDIF_TIMING                     HW(LCDIF_TIMING)
#define HWA_LCDIF_TIMING                    (0x80060000 + 0x10)
#define HWT_LCDIF_TIMING                    HWIO_32_RW
#define HWN_LCDIF_TIMING                    LCDIF_TIMING
#define HWI_LCDIF_TIMING                    
#define BP_LCDIF_TIMING_CMD_HOLD            24
#define BM_LCDIF_TIMING_CMD_HOLD            0xff000000
#define BF_LCDIF_TIMING_CMD_HOLD(v)         (((v) & 0xff) << 24)
#define BFM_LCDIF_TIMING_CMD_HOLD(v)        BM_LCDIF_TIMING_CMD_HOLD
#define BF_LCDIF_TIMING_CMD_HOLD_V(e)       BF_LCDIF_TIMING_CMD_HOLD(BV_LCDIF_TIMING_CMD_HOLD__##e)
#define BFM_LCDIF_TIMING_CMD_HOLD_V(v)      BM_LCDIF_TIMING_CMD_HOLD
#define BP_LCDIF_TIMING_CMD_SETUP           16
#define BM_LCDIF_TIMING_CMD_SETUP           0xff0000
#define BF_LCDIF_TIMING_CMD_SETUP(v)        (((v) & 0xff) << 16)
#define BFM_LCDIF_TIMING_CMD_SETUP(v)       BM_LCDIF_TIMING_CMD_SETUP
#define BF_LCDIF_TIMING_CMD_SETUP_V(e)      BF_LCDIF_TIMING_CMD_SETUP(BV_LCDIF_TIMING_CMD_SETUP__##e)
#define BFM_LCDIF_TIMING_CMD_SETUP_V(v)     BM_LCDIF_TIMING_CMD_SETUP
#define BP_LCDIF_TIMING_DATA_HOLD           8
#define BM_LCDIF_TIMING_DATA_HOLD           0xff00
#define BF_LCDIF_TIMING_DATA_HOLD(v)        (((v) & 0xff) << 8)
#define BFM_LCDIF_TIMING_DATA_HOLD(v)       BM_LCDIF_TIMING_DATA_HOLD
#define BF_LCDIF_TIMING_DATA_HOLD_V(e)      BF_LCDIF_TIMING_DATA_HOLD(BV_LCDIF_TIMING_DATA_HOLD__##e)
#define BFM_LCDIF_TIMING_DATA_HOLD_V(v)     BM_LCDIF_TIMING_DATA_HOLD
#define BP_LCDIF_TIMING_DATA_SETUP          0
#define BM_LCDIF_TIMING_DATA_SETUP          0xff
#define BF_LCDIF_TIMING_DATA_SETUP(v)       (((v) & 0xff) << 0)
#define BFM_LCDIF_TIMING_DATA_SETUP(v)      BM_LCDIF_TIMING_DATA_SETUP
#define BF_LCDIF_TIMING_DATA_SETUP_V(e)     BF_LCDIF_TIMING_DATA_SETUP(BV_LCDIF_TIMING_DATA_SETUP__##e)
#define BFM_LCDIF_TIMING_DATA_SETUP_V(v)    BM_LCDIF_TIMING_DATA_SETUP

#define HW_LCDIF_DATA                   HW(LCDIF_DATA)
#define HWA_LCDIF_DATA                  (0x80060000 + 0x20)
#define HWT_LCDIF_DATA                  HWIO_32_RW
#define HWN_LCDIF_DATA                  LCDIF_DATA
#define HWI_LCDIF_DATA                  
#define BP_LCDIF_DATA_DATA_THREE        24
#define BM_LCDIF_DATA_DATA_THREE        0xff000000
#define BF_LCDIF_DATA_DATA_THREE(v)     (((v) & 0xff) << 24)
#define BFM_LCDIF_DATA_DATA_THREE(v)    BM_LCDIF_DATA_DATA_THREE
#define BF_LCDIF_DATA_DATA_THREE_V(e)   BF_LCDIF_DATA_DATA_THREE(BV_LCDIF_DATA_DATA_THREE__##e)
#define BFM_LCDIF_DATA_DATA_THREE_V(v)  BM_LCDIF_DATA_DATA_THREE
#define BP_LCDIF_DATA_DATA_TWO          16
#define BM_LCDIF_DATA_DATA_TWO          0xff0000
#define BF_LCDIF_DATA_DATA_TWO(v)       (((v) & 0xff) << 16)
#define BFM_LCDIF_DATA_DATA_TWO(v)      BM_LCDIF_DATA_DATA_TWO
#define BF_LCDIF_DATA_DATA_TWO_V(e)     BF_LCDIF_DATA_DATA_TWO(BV_LCDIF_DATA_DATA_TWO__##e)
#define BFM_LCDIF_DATA_DATA_TWO_V(v)    BM_LCDIF_DATA_DATA_TWO
#define BP_LCDIF_DATA_DATA_ONE          8
#define BM_LCDIF_DATA_DATA_ONE          0xff00
#define BF_LCDIF_DATA_DATA_ONE(v)       (((v) & 0xff) << 8)
#define BFM_LCDIF_DATA_DATA_ONE(v)      BM_LCDIF_DATA_DATA_ONE
#define BF_LCDIF_DATA_DATA_ONE_V(e)     BF_LCDIF_DATA_DATA_ONE(BV_LCDIF_DATA_DATA_ONE__##e)
#define BFM_LCDIF_DATA_DATA_ONE_V(v)    BM_LCDIF_DATA_DATA_ONE
#define BP_LCDIF_DATA_DATA_ZERO         0
#define BM_LCDIF_DATA_DATA_ZERO         0xff
#define BF_LCDIF_DATA_DATA_ZERO(v)      (((v) & 0xff) << 0)
#define BFM_LCDIF_DATA_DATA_ZERO(v)     BM_LCDIF_DATA_DATA_ZERO
#define BF_LCDIF_DATA_DATA_ZERO_V(e)    BF_LCDIF_DATA_DATA_ZERO(BV_LCDIF_DATA_DATA_ZERO__##e)
#define BFM_LCDIF_DATA_DATA_ZERO_V(v)   BM_LCDIF_DATA_DATA_ZERO

#define HW_LCDIF_DEBUG                          HW(LCDIF_DEBUG)
#define HWA_LCDIF_DEBUG                         (0x80060000 + 0x30)
#define HWT_LCDIF_DEBUG                         HWIO_32_RW
#define HWN_LCDIF_DEBUG                         LCDIF_DEBUG
#define HWI_LCDIF_DEBUG                         
#define BP_LCDIF_DEBUG_BUSY                     27
#define BM_LCDIF_DEBUG_BUSY                     0x8000000
#define BF_LCDIF_DEBUG_BUSY(v)                  (((v) & 0x1) << 27)
#define BFM_LCDIF_DEBUG_BUSY(v)                 BM_LCDIF_DEBUG_BUSY
#define BF_LCDIF_DEBUG_BUSY_V(e)                BF_LCDIF_DEBUG_BUSY(BV_LCDIF_DEBUG_BUSY__##e)
#define BFM_LCDIF_DEBUG_BUSY_V(v)               BM_LCDIF_DEBUG_BUSY
#define BP_LCDIF_DEBUG_LAST_SUBWORD             26
#define BM_LCDIF_DEBUG_LAST_SUBWORD             0x4000000
#define BF_LCDIF_DEBUG_LAST_SUBWORD(v)          (((v) & 0x1) << 26)
#define BFM_LCDIF_DEBUG_LAST_SUBWORD(v)         BM_LCDIF_DEBUG_LAST_SUBWORD
#define BF_LCDIF_DEBUG_LAST_SUBWORD_V(e)        BF_LCDIF_DEBUG_LAST_SUBWORD(BV_LCDIF_DEBUG_LAST_SUBWORD__##e)
#define BFM_LCDIF_DEBUG_LAST_SUBWORD_V(v)       BM_LCDIF_DEBUG_LAST_SUBWORD
#define BP_LCDIF_DEBUG_SUBWORD_POSITION         24
#define BM_LCDIF_DEBUG_SUBWORD_POSITION         0x3000000
#define BF_LCDIF_DEBUG_SUBWORD_POSITION(v)      (((v) & 0x3) << 24)
#define BFM_LCDIF_DEBUG_SUBWORD_POSITION(v)     BM_LCDIF_DEBUG_SUBWORD_POSITION
#define BF_LCDIF_DEBUG_SUBWORD_POSITION_V(e)    BF_LCDIF_DEBUG_SUBWORD_POSITION(BV_LCDIF_DEBUG_SUBWORD_POSITION__##e)
#define BFM_LCDIF_DEBUG_SUBWORD_POSITION_V(v)   BM_LCDIF_DEBUG_SUBWORD_POSITION
#define BP_LCDIF_DEBUG_EMPTY_WORD               23
#define BM_LCDIF_DEBUG_EMPTY_WORD               0x800000
#define BF_LCDIF_DEBUG_EMPTY_WORD(v)            (((v) & 0x1) << 23)
#define BFM_LCDIF_DEBUG_EMPTY_WORD(v)           BM_LCDIF_DEBUG_EMPTY_WORD
#define BF_LCDIF_DEBUG_EMPTY_WORD_V(e)          BF_LCDIF_DEBUG_EMPTY_WORD(BV_LCDIF_DEBUG_EMPTY_WORD__##e)
#define BFM_LCDIF_DEBUG_EMPTY_WORD_V(v)         BM_LCDIF_DEBUG_EMPTY_WORD
#define BP_LCDIF_DEBUG_STATE                    16
#define BM_LCDIF_DEBUG_STATE                    0x7f0000
#define BF_LCDIF_DEBUG_STATE(v)                 (((v) & 0x7f) << 16)
#define BFM_LCDIF_DEBUG_STATE(v)                BM_LCDIF_DEBUG_STATE
#define BF_LCDIF_DEBUG_STATE_V(e)               BF_LCDIF_DEBUG_STATE(BV_LCDIF_DEBUG_STATE__##e)
#define BFM_LCDIF_DEBUG_STATE_V(v)              BM_LCDIF_DEBUG_STATE
#define BP_LCDIF_DEBUG_DATA_COUNT               0
#define BM_LCDIF_DEBUG_DATA_COUNT               0xffff
#define BF_LCDIF_DEBUG_DATA_COUNT(v)            (((v) & 0xffff) << 0)
#define BFM_LCDIF_DEBUG_DATA_COUNT(v)           BM_LCDIF_DEBUG_DATA_COUNT
#define BF_LCDIF_DEBUG_DATA_COUNT_V(e)          BF_LCDIF_DEBUG_DATA_COUNT(BV_LCDIF_DEBUG_DATA_COUNT__##e)
#define BFM_LCDIF_DEBUG_DATA_COUNT_V(v)         BM_LCDIF_DEBUG_DATA_COUNT

#endif /* __HEADERGEN_STMP3600_LCDIF_H__*/
