ICE40HX8K-DRAGON-EVN Lattice, ICE40HX8K-DRAGON-EVN Datasheet - Page 3

no-image

ICE40HX8K-DRAGON-EVN

Manufacturer Part Number
ICE40HX8K-DRAGON-EVN
Description
Programmable Logic IC Development Tools iCEdragon Evaluation Kit
Manufacturer
Lattice
Type
FPGAr
Datasheet

Specifications of ICE40HX8K-DRAGON-EVN

Product
Evaluation Kits
Tool Is For Evaluation Of
iCE40-HX8K
Interface Type
I2C
For Use With
iCE40-HX8K
2. Print the IRQ Number
3. Identify I
4. Interrupt Handling Driver in Kernel
5. Build the 8060_V3 Android Kernel for the Dragonboard
The interrupt number is printed by adding the following lines to the board support package file found in the fol-
lowing path:
Under ‘static void __init msm8x60_dragon_init(void)’ add the following lines:
Build the kernel and flash boot.img file onto the Dragonboard as explained in Steps 5 and 7.
The boot log generated during reboot will print the IRQ number as follows:
Note: Modified ‘board-msm8x60.c’ is given with this document and can be found in the following location:
The I
It is identified that i2c-5 lines are used on the J6 connector (sensor connector). This device lines are used to
read and write from the iCE-Dragon Board.
The interrupt handling driver file ‘I2C_irdetect_dev.c’ and respective modified ‘Makefile’ are provided with this
document. These files exists in the path below:
Simply copy the above driver file and Makefile to the following Android kernel path:
Now, proceed to build the kernel as described in the following steps.
..../8060_v3/kernel/arch/arm/mach-msm/board-msm8x60.c
#define GPIO_IRDETECT_IRQ
uint32_t irq;
gpio_request(GPIO_IRDETECT_IRQ, "IR-DETECT");
gpio_export(GPIO_IRDETECT_IRQ, 0);
gpio_direction_input(GPIO_IRDETECT_IRQ);
printk(KERN_EMERG " PRINTING IRQ NUMBER \n");
irq = gpio_to_irq(GPIO_IRDETECT_IRQ);
printk(KERN_EMERG " IRQ NUMBER of GPIO-57 : %d\n", irq); // DEBUG
IRQ NUMBER of GPIO-57 : 313
/8060_v3/kernel/arch/arm/mach-msm/board-msm8x60.c
…./8060_v3/kernel/arch/arm/mach-msm/device-msm8x60.c
/8060_v3/kernel/drivers/i2c/
…./8060_v3/kernel/drivers/i2c/
2
a. To clean all the previously-built directories and image files, use the command below:
b. To build the kernel source code, use these commands:
C device line registered on the J6 connector is identified from the device file of the Dragonboard:
2
C Device Lines
$mke clean
$sudo -s
$cd …./8060_v3/
$./build.sh
3
// REQUEST GPIO 57
// INPUT DIRECTION GPIO 57
// DEBUG
// GET IRQ NUMBER
// EXPORT GPIO 57
57
Qualcomm IR-I
2
C Bridge Demo

Related parts for ICE40HX8K-DRAGON-EVN