1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-19 06:56:16 +02:00
Commit Graph

8 Commits

Author SHA1 Message Date
Werner Almesberger
35d4b9f381 libubb/physmem.c: remove physmem_xlat; cache open pagemap fd
To avoid contamination, we open the pagemap file with O_CLOEXEC.
2013-01-16 10:26:51 -03:00
Werner Almesberger
3161d5555b libubb/physmem.c (physmem_xlat_vec): more general version of physmem_xlat 2013-01-16 10:15:24 -03:00
Werner Almesberger
a8f905a85f libubb/physmem.c: new function physmem_flush to flush cached writes to memory
This is mainly a wrapper for the "cacheflush" system call.
2013-01-15 23:30:02 -03:00
Werner Almesberger
b18d688570 libubb/mmcclk.c (mmcclk_first): base clock calculation on state of CPCCR.PCS
Also rename BEN_SYS_CLK_HZ to BEN_PLL_CLK_HZ, since the system clock
depends on CPCCR.PCS (while we assume BEN_PLL_CLK_HZ to be constant.)
2013-01-07 16:16:31 -03:00
Werner Almesberger
2f4e1bd6d7 libubb/include/ubb/regs4740.h: add CPCCR (clock control register) 2013-01-07 16:15:38 -03:00
Werner Almesberger
1eb8e64811 libubb/mmcclk.c: helper functions for selecting and configuring the MMC bus clock
Experimental.
2013-01-07 15:19:19 -03:00
Werner Almesberger
1c51cc6757 swuart/: merge library part into libubb 2012-12-17 22:16:32 -03:00
Werner Almesberger
2c52dac4ca libubb/: helper library for UBB access 2012-12-17 00:44:48 -03:00