clkconf: move clkconf from libgpio to it's own lib
Clock configuration will be needed by other/future subsystems such as i2c. Extract the functionality from libgpio and put it into it's own library. Change-Id: I6f6de0b3fb4d305ddfeac74123b78c983d1318dd
This commit is contained in:
parent
fa86f72420
commit
ba92d5219d
10 changed files with 19 additions and 9 deletions
|
@ -92,6 +92,8 @@
|
|||
./usr/include/evbarm/vmparam.h minix-sys
|
||||
./usr/include/evbarm/wchar_limits.h minix-sys
|
||||
./usr/include/i386 minix-sys obsolete
|
||||
./usr/lib/libclkconf.a minix-sys
|
||||
./usr/lib/libclkconf_pic.a minix-sys
|
||||
./usr/lib/libgpio.a minix-sys
|
||||
./usr/lib/libgpio_pic.a minix-sys
|
||||
./usr/lib/libpadconf.a minix-sys
|
||||
|
|
|
@ -625,6 +625,7 @@
|
|||
./usr/include/minix/btrace.h minix-sys
|
||||
./usr/include/minix/callnr.h minix-sys
|
||||
./usr/include/minix/chardriver.h minix-sys
|
||||
./usr/include/minix/clkconf.h minix-sys
|
||||
./usr/include/minix/com.h minix-sys
|
||||
./usr/include/minix/compiler.h minix-sys
|
||||
./usr/include/minix/config.h minix-sys
|
||||
|
|
|
@ -3,7 +3,7 @@ PROG= gpio
|
|||
SRCS= gpio.c
|
||||
|
||||
DPADD+= ${LIBBLOCKDRIVER} ${LIBSYS}
|
||||
LDADD+= -lvtreefs -lsys -lgpio -lpadconf
|
||||
LDADD+= -lvtreefs -lsys -lgpio -lpadconf -lclkconf
|
||||
|
||||
#
|
||||
# This is a system driver.
|
||||
|
|
|
@ -6,7 +6,7 @@ INCS+= dirent.h paths.h param.h
|
|||
INCS+= acpi.h audio_fw.h bitmap.h \
|
||||
bdev.h blockdriver.h blockdriver_mt.h \
|
||||
btrace.h \
|
||||
callnr.h chardriver.h com.h compiler.h \
|
||||
callnr.h chardriver.h clkconf.h com.h compiler.h \
|
||||
config.h const.h cpufeature.h crtso.h \
|
||||
debug.h devio.h devman.h dmap.h \
|
||||
driver.h drivers.h drvlib.h ds.h \
|
||||
|
|
|
@ -54,7 +54,7 @@ SUBDIR += libvassert libhgfs libvboxfs libvirtio
|
|||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} == "earm")
|
||||
SUBDIR += libgpio libpadconf
|
||||
SUBDIR += libclkconf libgpio libpadconf
|
||||
.endif
|
||||
|
||||
.if (${MKRUMP} != "no")
|
||||
|
|
10
lib/libclkconf/Makefile
Normal file
10
lib/libclkconf/Makefile
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Makefile for libclkconf
|
||||
|
||||
CPPFLAGS+= -D_SYSTEM
|
||||
|
||||
LIB= clkconf
|
||||
|
||||
SRCS= \
|
||||
clkconf.c
|
||||
|
||||
.include <bsd.lib.mk>
|
|
@ -3,6 +3,7 @@
|
|||
#include <minix/drvlib.h>
|
||||
#include <minix/log.h>
|
||||
#include <minix/mmio.h>
|
||||
#include <minix/clkconf.h>
|
||||
|
||||
/* system headers */
|
||||
#include <sys/mman.h>
|
||||
|
@ -16,9 +17,6 @@
|
|||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
/* local headers */
|
||||
#include "clkconf.h"
|
||||
|
||||
/* used for logging */
|
||||
static struct log log = {
|
||||
.name = "omap_clkconf",
|
|
@ -5,7 +5,7 @@ CPPFLAGS+= -D_SYSTEM
|
|||
LIB= gpio
|
||||
|
||||
SRCS= \
|
||||
gpio_omap.c clkconf.c
|
||||
gpio_omap.c
|
||||
|
||||
WARNS?= 5
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <minix/log.h>
|
||||
#include <minix/mmio.h>
|
||||
#include <minix/gpio.h>
|
||||
#include <minix/clkconf.h>
|
||||
|
||||
/* system headers */
|
||||
#include <sys/mman.h>
|
||||
|
@ -17,8 +18,6 @@
|
|||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "clkconf.h"
|
||||
|
||||
/* local headers */
|
||||
|
||||
/* used for logging */
|
||||
|
|
Loading…
Reference in a new issue