Commit ed46a03a authored by Iulian Gheorghiu's avatar Iulian Gheorghiu

Add GFX definition of the registers and commands

parent c0a7f6f6
......@@ -644,19 +644,47 @@ LCD - LCD display Interface
--------------------------------------------------------------------------
*/
`define LCD_CTRL 0
`define LCD_H_RES_LOW 1
`define LCD_H_RES_HIGH 2
`define LCD_H_PULSE_WIDTH 3
`define LCD_H_BACK_PORCH 4
`define LCD_H_FRONT_PORCH 5
`define LCD_V_RES_LOW 6
`define LCD_V_RES_HIGH 7
`define LCD_V_PULSE_WIDTH 8
`define LCD_V_BACK_PORCH 9
`define LCD_V_FRONT_PORCH 10
`define LCD_PIXEL_SIZE 11
`define LCD_BASE_ADDR_BYTE0 12
`define LCD_BASE_ADDR_BYTE1 13
`define LCD_BASE_ADDR_BYTE2 14
`define LCD_BASE_ADDR_BYTE3 15
`define LCD_CTRL 0
`define LCD_H_RES_LOW 1
`define LCD_H_RES_HIGH 2
`define LCD_H_PULSE_WIDTH 3
`define LCD_H_BACK_PORCH 4
`define LCD_H_FRONT_PORCH 5
`define LCD_V_RES_LOW 6
`define LCD_V_RES_HIGH 7
`define LCD_V_PULSE_WIDTH 8
`define LCD_V_BACK_PORCH 9
`define LCD_V_FRONT_PORCH 10
`define LCD_PIXEL_SIZE 11
`define LCD_BASE_ADDR_BYTE0 12
`define LCD_BASE_ADDR_BYTE1 13
`define LCD_BASE_ADDR_BYTE2 14
`define LCD_BASE_ADDR_BYTE3 15
/*
--------------------------------------------------------------------------
GFX_ACCEL - GFX_ACCEL LCD display 2D accelerator interface
--------------------------------------------------------------------------
*/
`define GFX_ACCEL_CMD 16
`define GFX_ACCEL_CLIP_X_MIN_L 18
`define GFX_ACCEL_CLIP_X_MIN_H 19
`define GFX_ACCEL_CLIP_X_MAX_L 20
`define GFX_ACCEL_CLIP_X_MAX_H 21
`define GFX_ACCEL_CLIP_Y_MIN_L 22
`define GFX_ACCEL_CLIP_Y_MIN_H 23
`define GFX_ACCEL_CLIP_Y_MAX_L 24
`define GFX_ACCEL_CLIP_Y_MAX_H 25
`define GFX_ACCEL_BYTE_0 26
`define GFX_ACCEL_BYTE_1 27
`define GFX_ACCEL_BYTE_2 28
`define GFX_ACCEL_BYTE_3 29
`define GFX_ACCEL_CMD_IDLE 0
`define GFX_ACCEL_CMD_VRAM_ACCESS 1
`define GFX_ACCEL_CMD_PIXEL_LOAD 2
`define GFX_ACCEL_CMD_PIXEL 3
`define GFX_ACCEL_CMD_CTRL_ACCESS 4
`define GFX_ACCEL_CMD_FILL_RECT 5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment