/****************************************************************************** * mt_gpio_ext.c - MTKLinux GPIO Device Driver * * Copyright 2008-2009 MediaTek Co.,Ltd. * * DESCRIPTION: * This file provid the other drivers GPIO debug functions * ******************************************************************************/ #include #include #include #include #include //#define MAX_GPIO_REG_BITS 16 //#define MAX_GPIO_MODE_PER_REG 5 //#define GPIO_MODE_BITS 3 #define GPIOEXT_BASE (0x0) //PMIC GPIO base. //static GPIOEXT_REGS *gpioext_reg = (GPIOEXT_REGS*)(GPIOEXT_BASE); //set extend GPIO /*---------------------------------------------------------------------------*/ int mt_set_gpio_dir_ext(unsigned long pin, unsigned long dir) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_dir_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_pull_enable_ext(unsigned long pin, unsigned long enable){ dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_pull_enable_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_smt_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_smt_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_ies_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_ies_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_pull_select_ext(unsigned long pin, unsigned long select){ dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_pull_select_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_inversion_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_inversion_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_out_ext(unsigned long pin, unsigned long output) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_out_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_in_ext(unsigned long pin) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_set_gpio_mode_ext(unsigned long pin, unsigned long mode) { dump_stack(); return ERINVAL;} /*---------------------------------------------------------------------------*/ int mt_get_gpio_mode_ext(unsigned long pin) { dump_stack(); return ERINVAL;}