* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <common.h>
#include <asm/io.h>
#include <asm/arch/sprd_reg.h>
#include <asm/arch/sci_types.h>
#define KERN_WARNING ""
#define WARN(nmu, fmt...) printf(fmt)
#define WARN_ON(num)
-#define BUG_ON(__cond__) if(__cond__) printf("%s line: %d bug on\n", __FUNCTION__, __LINE__)
#define pr_err(fmt...) printf(fmt)
-#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
#define pr_debug(fmt...) printf(fmt)
//#define DEBUG
static void __get_eic_base_info (u32 eic_id, struct eic_info *info)
{
- int i = 0;
- u32 table_size = 0;
- struct gpio_section *section_table;
-
if (eic_id>=SPRD_ADIE_EIC_START && eic_id<=SPRD_ADIE_EIC_END)
{
info->base_addr= SPRD_ANA_EIC_PHYS;
static int __eic_get_pin_data (struct eic_info *info)
{
- u32 offset_addr = 0;
u32 reg_addr = 0, reg_data;
if (info->base_addr == INVALID_REG)
static int __eic_get_data_mask (struct eic_info *info)
{
- u32 offset_addr = 0;
u32 reg_addr = 0, reg_data;
if (info->base_addr == INVALID_REG)
*/
static void __eic_set_data_mask (struct eic_info *info, int b_on)
{
- u32 offset_addr = 0;
u32 reg_addr = 0, reg_data;
reg_addr = info->base_addr + EIC_MASK;
return 0;
}
+#if 0
static void sprd_eic_free(unsigned offset)
{
unsigned eic_id = offset;
__eic_set_data_mask (&gpio_info, 0);
return;
}
+#endif
void sprd_eic_init(void)
{
ANA_REG_OR(ANA_REG_GLB_RTC_CLK_EN, BIT_RTC_EIC_EN);
}
-int get_volumn_down_status2()
+int get_volumn_down_status2(void)
{
int temp_cnt = 600;
int status = 0;