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:
Thomas Cort
2013-06-17 08:23:31 -04:00
committed by Kees Jongenburger
parent fa86f72420
commit ba92d5219d
10 changed files with 19 additions and 9 deletions

View File

@@ -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 \

7
include/minix/clkconf.h Normal file
View File

@@ -0,0 +1,7 @@
/* Clock configuration */
#define CM_FCLKEN_WKUP 0xC00
#define CM_ICLKEN_WKUP 0xC10
int clkconf_init();
int clkconf_set(u32_t clk, u32_t mask, u32_t value);
int clkconf_release();