Fujitsu DTV/STB solution driver (FAPex driver) Documentation [V01L00R00]


GPIO Driver

Table of Contents

Introduction
Configuration

Public Interface

Driver Usage
Driver Relationship
References

Back to top

Introduction

The GPIO driver provides access to the general purpose I/O pins of the decoder chip. Each pin can be configured either as input, output or as bidirectional pin. To configure a pin, simply assign a specific function to it. Currently we support approx. 140 different hardware functions. Additionally one dedicated input pin can be defined as an interrupt pin. Therefor you can decide how an interrupt is to be triggered, either by the falling or the rising edge of the signal of the specific GPIO pin.

Back to top

Configuration

GPIO ports configuration


The GPIO ports are configured by using the FAPI_GPIO_SetPinFunction() at initialization of GPIO driver.
These setup sequence are executed with the board configuration function.

In case of Fujitsu MB86H61 Development Kit board, there is this GPIO port configuration in "${KERNEL_TOP}/drivers/media/fapex/wfe/config/boards/mb86h61_dk01/mb86h61_dk01_gpio.c", this is defined as follows.

static  GPIO_CONFIG_INFO_T  GpioConfig_TsAInput_FromFe[] = {
 { 16, FAPI_GPIO_IN_TS_A_DATA_7  }
,{ 17, FAPI_GPIO_IN_TS_A_DATA_6  }
,{ 18, FAPI_GPIO_IN_TS_A_DATA_5  }
,{ 19, FAPI_GPIO_IN_TS_A_DATA_4  }
,{ 20, FAPI_GPIO_IN_TS_A_DATA_3  }
,{ 21, FAPI_GPIO_IN_TS_A_DATA_2  }
,{ 22, FAPI_GPIO_IN_TS_A_DATA_1  }
,{ 23, FAPI_GPIO_IN_TS_A_DATA_0  }
,{ 24, FAPI_GPIO_IN_TS_A_EN      }
,{ 25, FAPI_GPIO_IN_TS_A_PSTART  }
,{ 15, FAPI_GPIO_IN_TS_A_CLK     }
};

Note:
Please refer to "MB86H61 SDK documentation" about the initial setup functions for GPIO ports.
Back to top

Public Interface

System Driver Interface

Driver initialization function

  • Linux:
    The GPIO driver module is initialized by following command on target board.
     # modprobe fapex_fdlgpio
  • RTOS:
    The GPIO driver module is initialized by calling FAPEX_common_init().

Driver exit function

  • Linux:
    The GPIO driver module is unregistered by following command on target board.
     # modprobe -rq fapex_fdlgpio
  • RTOS:
    The GPIO driver module is unregistered by calling FAPEX_common_exit().

Application Programming Interface

Functions and Macros

The driver provides the functions and macros listed below. For more information please follow the links to their detailed documentation.

Open Driver
FAPEX_GPIO_Open()
Close Driver
FAPEX_GPIO_Close()
I/O control of Driver
FAPEX_GPIO_Ioctl()
Back to top

Driver Usage

Please refer to following sequence diagram for the usage of this driver.

inline_dotgraph_9.dot
Back to top

Driver Relationship

The GPIO driver is related with the following drivers:

Back to top

References

  • MB86H61 SDK documentation
    Fujitsu API / Core Driver Layer / GPIO Driver

  • MB86H61 Device Manual
    Chapter 24.General Purpose Input & Output


Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH
Copyright © 2008-2010 by Fujitsu Semiconductor Limited

Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)" agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation. The information in this document are presented as is, no license is granted by implication or otherwise.
More...

FUJITSU sales representatives