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
./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
./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
SRCS= gpio.c
DPADD+= ${LIBBLOCKDRIVER} ${LIBSYS}
-LDADD+= -lvtreefs -lsys -lgpio -lpadconf
+LDADD+= -lvtreefs -lsys -lgpio -lpadconf -lclkconf
#
# This is a system driver.
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 \
.endif
.if (${MACHINE_ARCH} == "earm")
-SUBDIR += libgpio libpadconf
+SUBDIR += libclkconf libgpio libpadconf
.endif
.if (${MKRUMP} != "no")
--- /dev/null
+# Makefile for libclkconf
+
+CPPFLAGS+= -D_SYSTEM
+
+LIB= clkconf
+
+SRCS= \
+ clkconf.c
+
+.include <bsd.lib.mk>
#include <minix/drvlib.h>
#include <minix/log.h>
#include <minix/mmio.h>
+#include <minix/clkconf.h>
/* system headers */
#include <sys/mman.h>
#include <errno.h>
#include <assert.h>
-/* local headers */
-#include "clkconf.h"
-
/* used for logging */
static struct log log = {
.name = "omap_clkconf",
LIB= gpio
SRCS= \
- gpio_omap.c clkconf.c
+ gpio_omap.c
WARNS?= 5
#include <minix/log.h>
#include <minix/mmio.h>
#include <minix/gpio.h>
+#include <minix/clkconf.h>
/* system headers */
#include <sys/mman.h>
#include <errno.h>
#include <assert.h>
-#include "clkconf.h"
-
/* local headers */
/* used for logging */