thead_admin 2ed30c5ba9 Linux_SDK_V1.1.2 1 year ago
..
freertos ea940b0b08 Linux_SDK_V0.9.5 1 year ago
Makefile ea940b0b08 Linux_SDK_V0.9.5 1 year ago
README ea940b0b08 Linux_SDK_V0.9.5 1 year ago
bidirect_list.c ea940b0b08 Linux_SDK_V0.9.5 1 year ago
bidirect_list.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
build_for_mpcore.sh ea940b0b08 Linux_SDK_V0.9.5 1 year ago
build_for_socle.sh ea940b0b08 Linux_SDK_V0.9.5 1 year ago
build_for_vexpress.sh ea940b0b08 Linux_SDK_V0.9.5 1 year ago
driver_load.sh ea940b0b08 Linux_SDK_V0.9.5 1 year ago
driver_load_sc.sh ea940b0b08 Linux_SDK_V0.9.5 1 year ago
hantro_axife.c ea940b0b08 Linux_SDK_V0.9.5 1 year ago
hantro_dec.c 2ed30c5ba9 Linux_SDK_V1.1.2 1 year ago
hantro_mmu.c 2ed30c5ba9 Linux_SDK_V1.1.2 1 year ago
hantro_vcmd.c 0f5e0f4122 Linux_SDK_V1.0.2 1 year ago
hantroaxife.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
hantrodec.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
hantrommu.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
hantrovcmd.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
kernel_allocator.c ea940b0b08 Linux_SDK_V0.9.5 1 year ago
kernel_allocator.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
subsys.c ea940b0b08 Linux_SDK_V0.9.5 1 year ago
subsys.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
vcmdregisterenum.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
vcmdregistertable.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago
vcmdswhwregisters.c ea940b0b08 Linux_SDK_V0.9.5 1 year ago
vcmdswhwregisters.h ea940b0b08 Linux_SDK_V0.9.5 1 year ago

README

/* Copyright 2013 Google Inc. All Rights Reserved. */

-- BUILD --

You need a fully configured kernel source tree in order to build the
driver. Please set the location of the kernel tree in the Makefile (KDIR).
If you want some extra debug information in the kernel logs, you could
define the HANTRODEC_DEBUG but please be aware that allot of things are traced
with this option.
Also you could set a particular device MAJOR in the 'hantrodec.c' if you don't want
dynamic allocation.

Just run in this dir:

%make

-- USAGE --

The parameters that can be set when loading the driver are the HW IO base
address and the assigned IRQ number.

First of all the module has to be inserted into the kernel with:
(you need a Linux shell cmd line)

%insmod hantrodec.o base_port= irq= pcie=

Set the correct values for the HW IO base address and the IRQ number if
the default values compiled into the module are not valid.

E.g., to disable PCIE mode:

%insmod hantrodec.o pcie=0 base_port= irq=

E.g., to enable vcmd mode:

%insmod hantrodec.o vcmd=1

Second of all a char device file has to be created:

%mknod /dev/hantrodec c 0

Replace MAJOR with the correct value (i.e. read /proc/devices to found out
the exact values).

Make sure that you have RW rights for the newly created dev file (use 'chmod').

The 'driver_load' script is provided for preparing all the things necessary for
the driver to be usable. The script is using 'awk' to retrieve the device's
major from /proc/devices. Remember to set the driver parameters.