1 /* 2 * Allwinner SoCs display driver. 3 * 4 * Copyright (C) 2016 Allwinner. 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. 9 */ 10 11 /* ***************************************************************************** */ 12 /* File name : de_eink.h */ 13 /* */ 14 /* Description : DE2.0 Write-Back Controller interface functions */ 15 /* History : */ 16 /* 2015/07/17 initial version */ 17 /* Code by : zengqi */ 18 /* ****************************************************************************** */ 19 #ifndef __DE_EINK_H__ 20 #define __DE_EINK_H__ 21 22 #include "../include.h" 23 24 int eink_config(unsigned char in_mode, unsigned int out_mode); 25 int eink_start_idx(struct ee_img *last_img, struct ee_img *curr_img, unsigned char flash_mode, unsigned char win_en, 26 unsigned long last_idx_addr, unsigned long curr_idx_addr, struct area_info *info); 27 int eink_set_base(unsigned long reg_base); 28 int eink_irq_enable(void); 29 int eink_irq_disable(void); 30 int eink_irq_query(void); 31 int eink_set_mode(unsigned char in_mode, unsigned char out_mode); 32 int eink_get_updata_area(struct area_info *info); 33 int eink_pipe_enable(unsigned int pipe_no); 34 int eink_pipe_disable(unsigned int pipe_no); 35 int eink_pipe_config(struct area_info *info, unsigned int pipe_no); 36 int eink_pipe_config_wavefile(unsigned long wav_file_addr, unsigned int pipe_no); 37 38 int eink_edma_init(unsigned char mode); 39 int eink_edma_en(unsigned char en); 40 int eink_dbuf_rdy(void); 41 int eink_set_wb(unsigned char wb_en, unsigned long wb_addr); 42 int eink_decoder_start(unsigned long new_idx_addr, unsigned long wav_data_addr, 43 struct eink_init_param *para); 44 int eink_edma_cfg(unsigned long wav_addr, struct eink_init_param *para); 45 int eink_edma_cfg_addr(unsigned long wav_addr); 46 int eink_index_finish(void); 47 48 49 #endif 50