summaryrefslogtreecommitdiff
path: root/firmware/export/rk27xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/rk27xx.h')
-rw-r--r--firmware/export/rk27xx.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/firmware/export/rk27xx.h b/firmware/export/rk27xx.h
index d1b9758f65..c75004c5f7 100644
--- a/firmware/export/rk27xx.h
+++ b/firmware/export/rk27xx.h
@@ -846,10 +846,10 @@
846#define VERT_PERIOD (*(volatile unsigned long *)(AHB1_LCDC + 0x0C)) 846#define VERT_PERIOD (*(volatile unsigned long *)(AHB1_LCDC + 0x0C))
847#define HOR_PW (*(volatile unsigned long *)(AHB1_LCDC + 0x10)) 847#define HOR_PW (*(volatile unsigned long *)(AHB1_LCDC + 0x10))
848#define VERT_PW (*(volatile unsigned long *)(AHB1_LCDC + 0x14)) 848#define VERT_PW (*(volatile unsigned long *)(AHB1_LCDC + 0x14))
849#define HOR_ACT (*(volatile unsigned long *)(AHB1_LCDC + 0x18)) 849#define HOR_BP (*(volatile unsigned long *)(AHB1_LCDC + 0x18))
850#define VERT_ACT (*(volatile unsigned long *)(AHB1_LCDC + 0x1C)) 850#define VERT_BP (*(volatile unsigned long *)(AHB1_LCDC + 0x1C))
851#define HOR_BP (*(volatile unsigned long *)(AHB1_LCDC + 0x20)) 851#define HOR_ACT (*(volatile unsigned long *)(AHB1_LCDC + 0x20))
852#define VERT_BP (*(volatile unsigned long *)(AHB1_LCDC + 0x24)) 852#define VERT_ACT (*(volatile unsigned long *)(AHB1_LCDC + 0x24))
853#define LINE0_YADDR (*(volatile unsigned long *)(AHB1_LCDC + 0x28)) 853#define LINE0_YADDR (*(volatile unsigned long *)(AHB1_LCDC + 0x28))
854#define LINE_ALPHA_EN (1<<14) 854#define LINE_ALPHA_EN (1<<14)
855#define LINE_SCALE_EN (1<<13) 855#define LINE_SCALE_EN (1<<13)
@@ -877,13 +877,23 @@
877#define INTR_MASK_VERT (1<<1) 877#define INTR_MASK_VERT (1<<1)
878#define INTR_MASK_HOR (1<<0) 878#define INTR_MASK_HOR (1<<0)
879 879
880#define ALPHA_ALX (*(volatile unsigned long *)(AHB1_LCDC + 0x5C))
881#define ALPHA_ATY (*(volatile unsigned long *)(AHB1_LCDC + 0x60))
882#define ALPHA_ARX (*(volatile unsigned long *)(AHB1_LCDC + 0x64))
883#define ALPHA_ABY (*(volatile unsigned long *)(AHB1_LCDC + 0x68))
884
885#define ALPHA_BLX (*(volatile unsigned long *)(AHB1_LCDC + 0x6C))
886#define ALPHA_BTY (*(volatile unsigned long *)(AHB1_LCDC + 0x70))
887#define ALPHA_BRX (*(volatile unsigned long *)(AHB1_LCDC + 0x74))
888#define ALPHA_BBY (*(volatile unsigned long *)(AHB1_LCDC + 0x78))
889
880#define LCDC_STA (*(volatile unsigned long *)(AHB1_LCDC + 0x7C)) 890#define LCDC_STA (*(volatile unsigned long *)(AHB1_LCDC + 0x7C))
881#define LCDC_MCU_IDLE (1<<12) 891#define LCDC_MCU_IDLE (1<<12)
882 892
883#define LCD_COMMAND (*(volatile unsigned long *)(AHB1_LCDC + 0x1000)) 893#define LCD_COMMAND (*(volatile unsigned long *)(AHB1_LCDC + 0x1000))
884#define LCD_DATA (*(volatile unsigned long *)(AHB1_LCDC + 0x1004)) 894#define LCD_DATA (*(volatile unsigned long *)(AHB1_LCDC + 0x1004))
885 895
886#define LCD_BUFF (*(volatile unsigned long *)(AHB1_LCDC + 0x2000)) 896#define LCD_BUFF ((volatile void *)(AHB1_LCDC + 0x2000))
887/* High speed ADC interface */ 897/* High speed ADC interface */
888#define AHB1_HS_ADC 0x186EC000 898#define AHB1_HS_ADC 0x186EC000
889#define HSADC_DATA (*(volatile unsigned long *)(AHB1_HS_ADC + 0x00)) 899#define HSADC_DATA (*(volatile unsigned long *)(AHB1_HS_ADC + 0x00))