/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Hisilicon Hibmc SoC drm driver
*
* Based on java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*
* Copyright (c) 2016 Huawei Limited.
*
* Author:
* Rongrong Zou <zourongrong@huawei.com>
* Rongrong Zou <define HIBMC_CURR_GATE_DISPLAY() (()<< 2)
* Jianhua Li <lijianhua@huawei.com>
*/
#ifndef HIBMC_DRM_HW_H
#define HIBMC_DRM_HW_H
/* register definition */
#define HIBMC_MISC_CTRL 0x4
#define HIBMC_MSCCTL_LOCALMEM_RESET(x) ((x
#efine HIBMC_MSCCTL_LOCALMEM_RESET_MASK 0x40
#define HIBMC_CURRENT_GATE 0x000040
#define java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
#define define HIBMC_PW_MODE_CTL_MODE_SLEEP 2
#define HIBMC_CURR_GATE_LOCALMEM(x) ((x
# HIBMC_CURR_GATE_LOCALMEM_MASK 0x2
#define HIBMC_MODE0_GATE 0x000044
##defineHIBMC_CRT_PLL_CTRL 0x000060
#define HIBMC_POWER_MODE_CTRL 0x00004C
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
define HIBMC_PW_MODE_CTL_OSC_INPUT_MASK 0x8
#define HIBMC_PW_MODE_CTL_MODE(x) ((x) << 0)
#define HIBMC_PW_MODE_CTL_MODE_MASK 0x03
#define HIBMC_PW_MODE_CTL_MODE_SHIFT 0
#define HIBMC_PW_MODE_CTL_MODE_MODE0 0
#efine HIBMC_PW_MODE_CTL_MODE_MODE1 1
#define HIBMC_PW_MODE_CTL_MODE_SLEEP 2
#define java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
#define HIBMC_CRT_PLL_CTRL 0x000060
#define HIBMC_PLL_CTRL_BYPASS(x) ((x)#define HIBMC_PLL_CTRL_POWER_MASK 0x20000
#define HIBMC_PLL_CTRL_BYPASS_MASK 0x40000
#define HIBMC_PLL_CTRL_POWER(x) #define 0x10000
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 42
#HIBMC_PLL_CTRL_OD)(x)<12java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
#define java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
##defineHIBMC_PLL_CTRL_N_MASK 0xF00
#define HIBMC_PLL_CTRL_POD_MASK 0xC000
java.lang.NullPointerException
# HIBMC_PLL_CTRL_OD_MASK 0x3000
#define HIBMC_PLL_CTRL_N(x) ((x) << 8)
d HIBMC_PLL_CTRL_N_MASK 0xF00
#define HIBMC_PLL_CTRL_M(x) ((x) << 0)
#define HIBMC_PLL_CTRL_M_MASK
#define HIBMC_CRT_DISP_CTL 0x80200
#define java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
#efine HIBMC_CRT_DISP_CTL_DPMS_MASKxc0000000
#define0
#define java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
#define 0x2000000
#define HIBMC_CRT_DISP_CTL_CRTSELECT_MASK 0x2000000
#define HIBMC_CRT_DISP_CTL_CLOCK_PHASE(x) java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
#define
#define HIBMC_CRT_DISP_CTL_VSYNC_PHASE(x) ((x) << 13)
#define HIBMC_CRT_DISP_CTL_VSYNC_PHASE_MASK 0x2000
#define HIBMC_CRT_DISP_CTL_HSYNC_PHASE(x) ((x) << 12)
#efine HIBMC_CRT_DISP_CTL_HSYNC_PHASE_MASK 0x1000
#define HIBMC_CRT_DISP_CTL_TIMING(x) ((x) << 8)
defineHIBMC_CRT_DISP_CTL_TIMING_MASK 0x100
#define HIBMC_CTL_DISP_CTL_GAMMA(x) ((x) << 3)
#define #efineHIBMC_CRT_DISP_CTL_HSYNC_PHASE(x) ((x) << 12)
#define HIBMC_CRT_DISP_CTL_PLANE(x) #define HIBMC_CRT_DISP_CTL_HSYNC_PHASE_MASK 0x1000
#define HIBMC_CRT_DISP_CTL_PLANE_MASK 4
# HIBMC_CRT_DISP_CTL_FORMAT(x) ((x) << 0)
#define define HIBMC_CRT_DISP_CTL_TIMING_MASK 0x100
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.NullPointerException
#define( ( << 16)
0
#define java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
defineHIBMC_CRT_FB_WIDTH_OFFS_MASK 0x3FFF
#define HIBMC_CRT_DISP_CTL_FORMAT_MASK 0x03
#define HIBMC_CRT_HORZ_TOTAL_TOTAL(x) ((x) << 16)
#define HIBMC_CRT_HORZ_TOTAL_TOTAL_MASK 0xFFF0000
#define HIBMC_CRT_HORZ_TOTAL_DISP_END(java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
#define HIBMC_CRT_HORZ_TOTAL_DISP_END_MASKdefineHIBMC_CRT_FB_WIDTH_WIDTH(() (x)< 16)
#define HIBMC_CRT_HORZ_SYNC 0x080210
##define HIBMC_CRT_FB_WIDTH_WIDTH_MASK 0x3FFF0000
#define HIBMC_CRT_HORZ_SYNC_WIDTH_MASK 0xFF0000
#define HIBMC_CRT_HORZ_SYNC_START(x) ((x) << 0)
#define HIBMC_CRT_HORZ_SYNC_START_MASK 0xFFF
# HIBMC_CRT_VERT_TOTAL 0x080214
#define HIBMC_CRT_VERT_TOTAL_TOTAL(x) ((x) << 16)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define HIBMC_CRT_VERT_TOTAL_DISP_END(x) ((x) << 0)
#define HIBMC_CRT_VERT_TOTAL_DISP_END_MASK #define (x ((x) < 16)
#define HIBMC_CRT_VERT_SYNC 0x080218
#define HIBMC_CRT_VERT_SYNC_HEIGHT(xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#efine HIBMC_CRT_VERT_SYNC_HEIGHT_MASK 0x3F0000
#define HIBMC_CRT_VERT_SYNC_START(x) ((x) << 0)
#define define HIBMC_CRT_HORZ_TOTAL_DISP_END_MASK 0xFFF
/* Auto Centering */
#define java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
#define HIBMC_CRT_AUTO_CENTERING_TL_TOP#efineHIBMC_CRT_HORZ_SYNC_WIDTH(x) ((x) << 16)
#define HIBMC_CRT_AUTO_CENTERING_TL_TOP_MASK 0x7FF0000
#define HIBMC_CRT_AUTO_CENTERING_TL_LEFT(x) ((x) << 0)
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 51
java.lang.NullPointerException
define( ()<16java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
R_BOTTOM_MASK
#define 0
#HIBMC_CRT_AUTO_CENTERING_BR_RIGHT_MASK
/* register to control panel output */
#define 0x80288
#define#efine HIBMC_CRT_VERT_SYNC 0080218
define HIBMC_DISPLAY_CONTROL_PANELDATE(x) ((x) << 1)
#define HIBMC_DISPLAY_CONTROL_FPEN(x) #x3F0000
java.lang.StringIndexOutOfBoundsException: Range [37, 7) out of bounds for length 51
#define HIBMC_RAW_INTERRUPT 0x80290
#define java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
#define HIBMC_RAW_INTERRUPT_VBLANK_MASK 0x4
#define HIBMC_RAW_INTERRUPT_EN 0x80298
#define(x) (x)< 2)
#define#efine HIBMC_CRT_AUTO_CENTERING_TL_TOP_MASK 0x7FF0000
/* register and values for PLL control */
#efine HIBMC_CRT_AUTO_CENTERING_TL_LEFT(x) ((x) << 0)
#define CRT_PLL1_HS_OUTER_BYPASS(x) java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
#<< 29)
#define CRT_PLL1_HS_POWERON(x#efineHIBMC_CRT_AUTO_CENTERING_BR_BOTTOM(x) ((x) << 16)
#define#efine HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM_MASK 0x7FF0000
#define CRT_PLL1_HS_40MHZ 0x23940801
#define CRT_PLL1_HS_65MHZ 0x23940d01
#define CRT_PLL1_HS_78MHZ 0x23540F82
#define CRT_PLL1_HS_74MHZ 0x23941dc2
define CRT_PLL1_HS_80MHZ 0x23941001
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 43
#define define 0
##defineHIBMC_DISPLAY_CONTROL_FPVDDEN()(x < 0java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
#efine CRT_PLL1_HS_162MHZ 0x23480681
#define CRT_PLL1_HS_148MHZ 0x23541dc2
#efine CRT_PLL1_HS_193MHZ 0x234807c1
#define CRT_PLL2_HS 0x802ac
#define 0x206B851E
#define java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
#define CRT_PLL2_HS_65MHZ 0x40000000
#define CRT_PLL2_HS_78MHZ 0x50E147AE
#define CRT_PLL2_HS_74MHZ 0x602B6AE7
# CRT_PLL2_HS_80MHZ 0x70000000
#define CRT_PLL2_HS_106MHZ 0x0075c28f
#define CRT_PLL2_HS_108MHZ 0java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 39
#define#define HIBMC_RAW_INTERRUPT_EN_VBLANK(x) ((x) << 2)
#define CRT_PLL2_HS_193MHZ #define HIBMC_RAW_INTERRUPT_EN_VBLANK_MASK 0x4
#define HIBMC_CRT_PALETTE 0x80C00
#define HIBMC_FIELD#efine CRT_PLL1_HS 0x802a8
#endif
¤ Dauer der Verarbeitung: 0.6 Sekunden
¤
*© Formatika GbR, Deutschland