Skip to content

Instantly share code, notes, and snippets.

@tasanakorn
tasanakorn / 0001-Add-PC-Engines-APU-GPIO-driver.patch
Created September 2, 2014 05:56
NCT5104D GPIO Driver (for PC Engines APU)
From 3bfa1bd017bba680beb8c549e44909698b716161 Mon Sep 17 00:00:00 2001
From: Tasanakorn P <tasanakorn@gmail.com>
Date: Tue, 2 Sep 2014 05:02:53 +0000
Subject: [PATCH] Add PC Engines APU GPIO driver
---
drivers/gpio/Kconfig | 6 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-nct5104d.c | 438 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 445 insertions(+)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <hiredis/hiredis.h>
#include "I2Cdev.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bcm_host.h"
#include "ilclient.h"
static int camera_test() {
COMPONENT_T *video_camera = NULL, *video_render = NULL;
COMPONENT_T * list[3];