User`s guide
Porting the On-Board-Diagnostic-Suite (OBDS) to a Custom Board
i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 10-3
10.2.3 Audio Test
The audio test first performs I
2
C communications between the i.MX53 and the SGTL5000 audio codec.
The test then outputs audio data via the SSI/I2S interface to the audio codec. The
~/diag-obds/src/drivers/audio folder contains the files that implement the audio test.
If a different SSI port is used, make the necessary IOMUX changes to the
~/diag-obds/src/mx53/hardware.c file.
10.2.4 IPU Display Test
This test outputs an image to the WVGA display (Chungwa CLAA070VC01 7-inch WVGA TFT LCD).
The test also gives the user two options to test an LVDS display (either the AUO T150XG01V02 15-Inch
XGA Panel or CHIMEI M216H1-L01 21-Inch HD1080 Panel) and the VGA output.
Refer to the hardware.c file for changes in IOMUX when a different panel is used. In particular, note which
display interface (DI0 or DI1) is being used. The i.MX53 reference board configures the DI0 pins from
D0–D23. To enable a different display, add the display timing information in the di_config() routine in the
~/src/drivers/ipu/ipu_di.c file. The display’s data sheet provides the information for the different
parameters.
10.2.5 I
2
C Test
This tests performs an I
2
C communications test with one or more devices on the I
2
C bus (reads back the
device ID). ~/src/drivers/i2c folder contains the driver for the I2C module. Refer to hardware.c for
IOMUX setup. The IOMUX on the i.MX53 reference boards are configured to route I2C2 signal to the
keypad COL3 and ROW3 pins.
If another I
2
C port is needed, add a new entry for the other I
2
C IOMUX settings at hardware.c and change
the I
2
C device test code depending on the I
2
C devices on the custom board.
10.2.6 SD/MMC Test
This test performs a read/write test to the MMC/SD card plugged into the SD slot. This test configures and
uses the ESDHCV3-3 module on the i.MX53 reference boards, with the exception of the ARD which uses
ESDHCV2-2. The ~/drivers/src/mmc folder contains the files necessary to test the MMC/SD port.
10.2.7 LED Test
This test verifies the functionality of the on-board debug LED by prompting the user to visually inspect
the LED to verify that the LED has been turned on and then off. The test function is located in
src/mx53/mx53.c.
If another GPIO is used to drive the LED, change the following function inside src/mx53/mx53.c
accordingly:
int gpio_led_test(void)