Linux: Add support for the hwspinlock_user driver
authorMisael Lopez Cruz <misael.lopez@ti.com>
Fri, 18 Dec 2015 21:50:52 +0000 (15:50 -0600)
committerAngela Stegmaier <angelabaker@ti.com>
Mon, 21 Dec 2015 22:05:04 +0000 (16:05 -0600)
commitf8affd036b856fb493b4663ac0b4e436660a2192
tree5457692aec18b3c13565154ebb85312b4dda5ece
parente0b95f9b90473ffedc6e8f6999a933b9f77246ce
Linux: Add support for the hwspinlock_user driver

The hwspinlock_user is a character driver that exposes ioctls to
lock and unlock a given hwspinlock instance.  The hwspinlock_user
creates the /dev/hwspinlock device file.

The hwspinlock_user driver is used as the first option when available,
otherwise the previous /dev/mem approach is used.

The hwspinlock_user.h uapi header file is kept locally as it may not
be present in all supported kernels.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
linux/include/linux/hwspinlock_user.h [new file with mode: 0644]
linux/src/api/gates/GateHWSpinlock.c
linux/src/daemon/GateHWSpinlock.c