1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-12-11 23:54:38 +02:00
Commit Graph

27 Commits

Author SHA1 Message Date
Werner Almesberger
5efafd6fcc libubb/include/ubb/regs4740.h: add symbolic bit/field definitions for DMA 2013-01-20 19:16:17 -03:00
Werner Almesberger
4cb68b7ece libubb/mmcclk.c: use symbolic bit/field definitions for MSC_* 2013-01-20 17:34:17 -03:00
Werner Almesberger
8509c1f7b9 libubb/include/ubb/regs4740.h: add symbolic bit/field definitions for MSC_* 2013-01-20 17:34:01 -03:00
Werner Almesberger
e669a1b2d1 libubb/physmem.c (physmem_xlat_vec): rename to physmem_xlat 2013-01-16 10:29:46 -03:00
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
10b0dea29c libubb/mmcclk.c (BUS_LIMIT_MHZ): explain the 56 MHz limit 2013-01-15 18:01:27 -03:00
Werner Almesberger
72f2125287 libubb/mmcclk.c (mmcclk_start): also reset the MMC controller 2013-01-15 14:08:03 -03:00
Werner Almesberger
8d59f8a206 libubb/: add experimental physical memory allocation/mapping module
The API is fairly inflexible and is very likely to change.
2013-01-14 03:54:17 -03:00
Werner Almesberger
127e18d7ed libubb/Makefile: get rid of version bureaucracy (suggested by Kyak) 2013-01-07 16:28:59 -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
a593da0cd0 libubb/Makefile: unleak mmcclk.o and mis-typed mmclk.h 2013-01-07 14:20:39 -03:00
Werner Almesberger
2004d8c90a ubblib/Makefile: don't generate the versioned shared library
We only need libubb.so for installation.
2013-01-07 11:47:53 -03:00
Werner Almesberger
64c14fb709 libubb/Makefile: build also a shared version of libubb; better cleanup
The improved cleanup removes the library after a partially successful build.
2013-01-07 08:21:00 -03:00
Werner Almesberger
9ddc377969 libubb/README.SWUART: document the software-implemented UART 2012-12-31 19:30:18 -03:00
Werner Almesberger
5f3828f710 libubb/swuart.c: only return error codes or fail silently; don't print messages 2012-12-31 19:27:16 -03:00
Werner Almesberger
506db2d69e libubb/README: describe how to get rid of competing drivers 2012-12-31 09:58:08 -03:00
Werner Almesberger
9d298216e7 libubb/README: document GPIO and register access 2012-12-31 09:44:05 -03:00
Werner Almesberger
be82db036f libubb/swuart.c (swuart_open): don't call ubb_power
Leave all this to the libubb user.
2012-12-29 21:17:09 -03:00
Werner Almesberger
e4f8b97e36 libubb/swuart.c: use mlockall to prevent page faults with interrupts off 2012-12-28 22:55:06 -03:00
Werner Almesberger
661420933e libubb/swuart.c: don't open/close UBB
This way, we can set things up before and after using SWUART
2012-12-28 17:09:44 -03:00
Werner Almesberger
842766b9ed libubb/swuart.c (swuart_open): start TX high, not low 2012-12-17 22:44:47 -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