/* * arch/arm/mach-sun6i/arisc/arisc_i.h * * Copyright (c) 2012 Allwinner. * 2012-05-01 Written by sunny (sunny@allwinnertech.com). * 2012-10-01 Written by superm (superm@allwinnertech.com). * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __ARISC_I_H__ #define __ARISC_I_H__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define DRV_NAME "sunxi-arisc" #define DEV_NAME "sunxi-arisc" #define DRV_VERSION "3.10" /* local functions */ extern int arisc_set_debug_level(unsigned int level); extern int arisc_set_uart_baudrate(u32 baudrate); extern int arisc_set_dram_crc_paras(unsigned int dram_crc_en, unsigned int dram_crc_srcaddr, unsigned int dram_crc_len); #ifdef CONFIG_ARM int invoke_scp_fn_smc(u32 function_id, u32 arg0, u32 arg1, u32 arg2); #endif #ifdef CONFIG_ARM64 int invoke_scp_fn_smc(u64 function_id, u64 arg0, u64 arg1, u64 arg2); #endif #endif /* __ARISC_I_H__ */