TERES/SOFTWARE/A64-TERES/linux-a64/drivers/arisc/arisc_i.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

92 lines
2.9 KiB
C
Executable File

/*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ARISC_I_H__
#define __ARISC_I_H__
#include "./include/arisc_includes.h"
#include <asm/atomic.h>
#include <asm/barrier.h>
#include <asm/memory.h>
#include <asm/compiler.h>
#include <asm/cacheflush.h>
#include <linux/dma-mapping.h>
#include <linux/reboot.h>
#include <linux/arisc/arisc.h>
#include <linux/sysfs.h>
#include <linux/device.h>
#include <linux/gpio.h>
#include <linux/pinctrl/consumer.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/arisc/arisc-notifier.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/power/axp_depend.h>
#define DRV_NAME "sunxi-arisc"
#define DEV_NAME "sunxi-arisc"
#if defined CONFIG_ARCH_SUN8IW1P1
#define DRV_VERSION "1.00"
#elif defined CONFIG_ARCH_SUN8IW3P1
#define DRV_VERSION "1.01"
#elif defined CONFIG_ARCH_SUN8IW5P1
#define DRV_VERSION "1.02"
#elif defined CONFIG_ARCH_SUN8IW6P1
#define DRV_VERSION "1.03"
#elif defined CONFIG_ARCH_SUN8IW7P1
#define DRV_VERSION "1.04"
#elif defined CONFIG_ARCH_SUN8IW9P1
#define DRV_VERSION "1.05"
#elif defined CONFIG_ARCH_SUN50IW1P1
#define DRV_VERSION "1.10"
#elif defined CONFIG_ARCH_SUN9IW1P1
#define DRV_VERSION "2.00"
#else
#error "please select a platform\n"
#endif
extern unsigned int arisc_debug_dram_crc_en;
extern unsigned int arisc_debug_dram_crc_srcaddr;
extern unsigned int arisc_debug_dram_crc_len;
extern unsigned int arisc_debug_dram_crc_error;
extern unsigned int arisc_debug_dram_crc_total_count;
extern unsigned int arisc_debug_dram_crc_error_count;
extern unsigned int arisc_debug_level;
extern struct standby_info_para arisc_powchk_back;
//local functions
extern int arisc_config_dram_paras(void);
extern int arisc_sysconfig_ir_paras(void);
extern int arisc_config_pmu_paras(void);
extern int arisc_suspend_flag_query(void);
extern noinline int invoke_scp_fn_smc(u64 function_id, u64 arg0, u64 arg1,
u64 arg2);
#if (defined CONFIG_ARCH_SUN8IW7P1)
extern void arisc_power_off(void);
#endif
#endif //__ARISC_I_H__