Path: blob/master/arch/unicore32/include/mach/regs-unigfx.h
10819 views
/*1* PKUnity UNIGFX Registers2*/34#define UDE_BASE (PKUNITY_UNIGFX_BASE + 0x1400)5#define UGE_BASE (PKUNITY_UNIGFX_BASE + 0x0000)67/*8* command reg for UNIGFX DE9*/10/*11* control reg UDE_CFG12*/13#define UDE_CFG (UDE_BASE + 0x0000)14/*15* framebuffer start address reg UDE_FSA16*/17#define UDE_FSA (UDE_BASE + 0x0004)18/*19* line size reg UDE_LS20*/21#define UDE_LS (UDE_BASE + 0x0008)22/*23* pitch size reg UDE_PS24*/25#define UDE_PS (UDE_BASE + 0x000C)26/*27* horizontal active time reg UDE_HAT28*/29#define UDE_HAT (UDE_BASE + 0x0010)30/*31* horizontal blank time reg UDE_HBT32*/33#define UDE_HBT (UDE_BASE + 0x0014)34/*35* horizontal sync time reg UDE_HST36*/37#define UDE_HST (UDE_BASE + 0x0018)38/*39* vertival active time reg UDE_VAT40*/41#define UDE_VAT (UDE_BASE + 0x001C)42/*43* vertival blank time reg UDE_VBT44*/45#define UDE_VBT (UDE_BASE + 0x0020)46/*47* vertival sync time reg UDE_VST48*/49#define UDE_VST (UDE_BASE + 0x0024)50/*51* cursor position UDE_CXY52*/53#define UDE_CXY (UDE_BASE + 0x0028)54/*55* cursor front color UDE_CC056*/57#define UDE_CC0 (UDE_BASE + 0x002C)58/*59* cursor background color UDE_CC160*/61#define UDE_CC1 (UDE_BASE + 0x0030)62/*63* video position UDE_VXY64*/65#define UDE_VXY (UDE_BASE + 0x0034)66/*67* video start address reg UDE_VSA68*/69#define UDE_VSA (UDE_BASE + 0x0040)70/*71* video size reg UDE_VS72*/73#define UDE_VS (UDE_BASE + 0x004C)7475/*76* command reg for UNIGFX GE77*/78/*79* src xy reg UGE_SRCXY80*/81#define UGE_SRCXY (UGE_BASE + 0x0000)82/*83* dst xy reg UGE_DSTXY84*/85#define UGE_DSTXY (UGE_BASE + 0x0004)86/*87* pitch reg UGE_PITCH88*/89#define UGE_PITCH (UGE_BASE + 0x0008)90/*91* src start reg UGE_SRCSTART92*/93#define UGE_SRCSTART (UGE_BASE + 0x000C)94/*95* dst start reg UGE_DSTSTART96*/97#define UGE_DSTSTART (UGE_BASE + 0x0010)98/*99* width height reg UGE_WIDHEIGHT100*/101#define UGE_WIDHEIGHT (UGE_BASE + 0x0014)102/*103* rop alpah reg UGE_ROPALPHA104*/105#define UGE_ROPALPHA (UGE_BASE + 0x0018)106/*107* front color UGE_FCOLOR108*/109#define UGE_FCOLOR (UGE_BASE + 0x001C)110/*111* background color UGE_BCOLOR112*/113#define UGE_BCOLOR (UGE_BASE + 0x0020)114/*115* src color key for high value UGE_SCH116*/117#define UGE_SCH (UGE_BASE + 0x0024)118/*119* dst color key for high value UGE_DCH120*/121#define UGE_DCH (UGE_BASE + 0x0028)122/*123* src color key for low value UGE_SCL124*/125#define UGE_SCL (UGE_BASE + 0x002C)126/*127* dst color key for low value UGE_DCL128*/129#define UGE_DCL (UGE_BASE + 0x0030)130/*131* clip 0 reg UGE_CLIP0132*/133#define UGE_CLIP0 (UGE_BASE + 0x0034)134/*135* clip 1 reg UGE_CLIP1136*/137#define UGE_CLIP1 (UGE_BASE + 0x0038)138/*139* command reg UGE_COMMAND140*/141#define UGE_COMMAND (UGE_BASE + 0x003C)142/*143* pattern 0 UGE_P0144*/145#define UGE_P0 (UGE_BASE + 0x0040)146#define UGE_P1 (UGE_BASE + 0x0044)147#define UGE_P2 (UGE_BASE + 0x0048)148#define UGE_P3 (UGE_BASE + 0x004C)149#define UGE_P4 (UGE_BASE + 0x0050)150#define UGE_P5 (UGE_BASE + 0x0054)151#define UGE_P6 (UGE_BASE + 0x0058)152#define UGE_P7 (UGE_BASE + 0x005C)153#define UGE_P8 (UGE_BASE + 0x0060)154#define UGE_P9 (UGE_BASE + 0x0064)155#define UGE_P10 (UGE_BASE + 0x0068)156#define UGE_P11 (UGE_BASE + 0x006C)157#define UGE_P12 (UGE_BASE + 0x0070)158#define UGE_P13 (UGE_BASE + 0x0074)159#define UGE_P14 (UGE_BASE + 0x0078)160#define UGE_P15 (UGE_BASE + 0x007C)161#define UGE_P16 (UGE_BASE + 0x0080)162#define UGE_P17 (UGE_BASE + 0x0084)163#define UGE_P18 (UGE_BASE + 0x0088)164#define UGE_P19 (UGE_BASE + 0x008C)165#define UGE_P20 (UGE_BASE + 0x0090)166#define UGE_P21 (UGE_BASE + 0x0094)167#define UGE_P22 (UGE_BASE + 0x0098)168#define UGE_P23 (UGE_BASE + 0x009C)169#define UGE_P24 (UGE_BASE + 0x00A0)170#define UGE_P25 (UGE_BASE + 0x00A4)171#define UGE_P26 (UGE_BASE + 0x00A8)172#define UGE_P27 (UGE_BASE + 0x00AC)173#define UGE_P28 (UGE_BASE + 0x00B0)174#define UGE_P29 (UGE_BASE + 0x00B4)175#define UGE_P30 (UGE_BASE + 0x00B8)176#define UGE_P31 (UGE_BASE + 0x00BC)177178#define UDE_CFG_DST_MASK FMASK(2, 8)179#define UDE_CFG_DST8 FIELD(0x0, 2, 8)180#define UDE_CFG_DST16 FIELD(0x1, 2, 8)181#define UDE_CFG_DST24 FIELD(0x2, 2, 8)182#define UDE_CFG_DST32 FIELD(0x3, 2, 8)183184/*185* GDEN enable UDE_CFG_GDEN_ENABLE186*/187#define UDE_CFG_GDEN_ENABLE FIELD(1, 1, 3)188/*189* VDEN enable UDE_CFG_VDEN_ENABLE190*/191#define UDE_CFG_VDEN_ENABLE FIELD(1, 1, 4)192/*193* CDEN enable UDE_CFG_CDEN_ENABLE194*/195#define UDE_CFG_CDEN_ENABLE FIELD(1, 1, 5)196/*197* TIMEUP enable UDE_CFG_TIMEUP_ENABLE198*/199#define UDE_CFG_TIMEUP_ENABLE FIELD(1, 1, 6)200201202