Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 970 Bytes

File metadata and controls

37 lines (25 loc) · 970 Bytes

Allegro Linux Drivers

Summary

This repository contains the source code of al5r drivers.

The al5r driver is used by the soft_codec repository and other control software to access an hw ip with direct registers access. It implements a read/write registers interface and make it possible to handle interrupts in userspace.

Building

To build drivers you need a linux kernel build tree. Give location of kernel build tree using KDIR environment variable. It you are cross-compiling then define ARCH and CROSS_COMPILE environment variable.

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KDIR=linux-headers-dir make

Compiled kernel modules are located in al5r/al5r.ko

Using on a board

Copy al5r.ko on your board and insert it.

$ insmod al5r.ko

Device Tree Bindings

You can change configure some of the behavior of driver using device tree bindings. See the device-tree-bindings.txt file for more information about available bindings.