| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /******************************************************************************
- * 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 <mt-plat/mt_gpio.h>
- #include <mt-plat/mt_gpio_core.h>
- #include <mt_gpio_ext.h>
- /* #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 -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_dir_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_pull_enable_ext(unsigned long pin, unsigned long enable)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_pull_enable_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_smt_ext(unsigned long pin, unsigned long enable)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_smt_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_ies_ext(unsigned long pin, unsigned long enable)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_ies_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_pull_select_ext(unsigned long pin, unsigned long select)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_pull_select_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_inversion_ext(unsigned long pin, unsigned long enable)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_inversion_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_out_ext(unsigned long pin, unsigned long output)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_out_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_in_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_set_gpio_mode_ext(unsigned long pin, unsigned long mode)
- {
- dump_stack();
- return -1;
- }
- /*---------------------------------------------------------------------------*/
- int mt_get_gpio_mode_ext(unsigned long pin)
- {
- dump_stack();
- return -1;
- }
|