Werner Almesberger
dad97398d3
ubb-patgen/ubb-patgen.c (dma_pattern): mlockall (before address translation and DMA)
2013-01-14 23:32:37 -03:00
Werner Almesberger
c6306ff591
ubb-patgen/ubb-patgen.c: DMA works now. Get rid of the PIO option.
2013-01-14 23:29:23 -03:00
Werner Almesberger
b6ee672266
ubb-patgen/: flush dcache and write buffer before doing DMA
2013-01-14 23:26:24 -03:00
Werner Almesberger
908b0631d1
ubb-patgen/ubb-patgen.c: DMA has mystery glitches. Use PIO for now.
2013-01-14 22:18:46 -03:00
Werner Almesberger
3febc9072a
ubb-patgen/ubb-patgen.c (dma_pattern): move pattern parser to parse_pattern
...
... and introduce pattern multipliers <hex>{<repetitions>}
2013-01-14 19:26:15 -03:00
Werner Almesberger
e5cb1c98ea
ubb-patgen/ubb-patgen.c: describe the pattern transfer logic
2013-01-14 17:01:13 -03:00
Werner Almesberger
fa8b5b6324
ubb-patgen/ubb-patgen.c: clean up pattern generation and boundaries
...
The main change is to use only a single transfer and thus avoid tri-stating
DATx during the command phase. To control the timing, we put the first word
"manually" into the FIFO, wait until it has been sent on the bus, and only
then DMA the rest.
2013-01-14 17:01:01 -03:00
Werner Almesberger
09bf9c23ab
ubb-patgen/: add DMA-based pattern transfer (WIP)
...
Works for some patterns but seems to have issues at the edge of
transfers. Clock selection also needs more work.
2013-01-14 03:55:51 -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
47140384ee
ubb-patgen/hw/: a simple resistor on CMD is sufficient - no need for a cap
...
Cheaper and easier to control.
2013-01-14 03:11:39 -03:00
Werner Almesberger
52ce1947c5
ubb-patgen/: UBB-based pattern generator (WIP)
...
For now, it only knows to synthesize the clock and to output it.
2013-01-07 17:01:51 -03:00
Werner Almesberger
7c1f06530d
ubb-patgen/hw/labels.fig: cut-out labels for the wires
2013-01-07 17:01:17 -03:00
Werner Almesberger
ed91f621e5
ubb-patgen/hw/: schematics of a pattern generator based on UBB
2013-01-07 17:00:28 -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
b557adf95e
ubbctl/Makefile: add copyright header
2013-01-07 08:25:16 -03:00
Werner Almesberger
7b8a2e13ed
ubbctl/Makefile: make default build shared; add target "static"
2013-01-07 08:24:11 -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
ed192391ea
ubbctl/README: short documentation
2013-01-06 13:40:11 -03:00
Werner Almesberger
5fadbce41d
ubbctl/ubbctl.c: new option -c for continuous display
2013-01-06 13:24:56 -03:00
Werner Almesberger
fd5707ee72
ubbctl/ubbctl.c: add actions "on" and "off" to control nPWR
2013-01-06 11:38:01 -03:00
Werner Almesberger
246a8a0a5f
ubbctl/ubbctl.c: add setting of UBB signals (DAT0=1, etc.)
2013-01-06 11:34:56 -03:00
Werner Almesberger
5297de4d83
ubbctl/ubbctl.c (show_pins): indicate function pins with "F" instead of "FN"
...
For consistency with Z and R.
2013-01-06 10:47:31 -03:00
Werner Almesberger
77fd696067
ubbctl/ubbctl.c (show_pins): also show level seen at pin
2013-01-06 10:00:52 -03:00
Werner Almesberger
33085cee44
ubbctl/ubbctl.c (main): add command line processing and usage display
2013-01-06 09:54:54 -03:00
Werner Almesberger
e6a0e42296
ubbctl/ubbctl.c (main): move pin status display to separate function
2013-01-06 09:12:37 -03:00
Werner Almesberger
fe96b3b297
ubbctl/ubbctl.c: add copyright header
2013-01-06 08:57:48 -03:00
Werner Almesberger
85ed493e08
README: add ubbctl and ubb-jtag
2013-01-06 08:56:48 -03:00
Werner Almesberger
a58e78910e
ubb-jtag/ubb-jtag-m1.sch: connect VREF to 2.5 V; explain that R3 is untested
2013-01-04 15:57:12 -03:00
Werner Almesberger
b6a9e234b1
ubb-jtag/README: ideas for increasing the speed
2013-01-04 15:41:34 -03:00
Werner Almesberger
d16af2aa38
ubb-jtag/ubb-jtag-m1.sch: schematics for UBB-VGA-M1 cable
2013-01-04 15:09:55 -03:00
Werner Almesberger
1024f48093
ubb-jtag/: instructions for building a JTAG interface with UBB
2013-01-04 14:36:45 -03:00
Werner Almesberger
f0c6e87222
ubbctl/: UBB pin status decoder
2013-01-04 05:40:19 -03:00
Werner Almesberger
d33da7076c
README: there's much more than the blinkenlights here
2013-01-02 16:22:31 -03:00
Werner Almesberger
376aa543a9
lpc111x-isp/lpc111x.c: new option -P function=signal to reassign pins
2013-01-02 10:33:28 -03:00
Werner Almesberger
3b0c8c699e
lpc111x-isp/lpc111x.c: define IO pins via array, not #defines
2013-01-02 10:12:23 -03:00
Werner Almesberger
9ddc377969
libubb/README.SWUART: document the software-implemented UART
2012-12-31 19:30:18 -03:00
Werner Almesberger
6dfaeddd15
lpc111x-isp/lpc111x.c (start_isp): check for swuart_open failure
2012-12-31 19:29:35 -03:00
Werner Almesberger
0b81ffabd1
swuart-chat/chat.c (main): use perror if swuart_open fails
2012-12-31 19:28:46 -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
49ff81fa70
lpc111x-isp/test/: proof of concept LED-blinking code
2012-12-31 03:19:59 -03:00
Werner Almesberger
c7a7d358bb
lpc111x-isp/lpc111x.c: new option -r to reset the target and let it run
2012-12-31 01:54:36 -03:00
Werner Almesberger
66d091317a
lpc111x-isp/lpc111x.c: if file argument is given, flash that file
2012-12-30 23:29:24 -03:00
Werner Almesberger
5246f5fbc6
lpc111x-isp/lpc111x.c: read and dump (to stdout) the entire Flash
2012-12-29 22:58:02 -03:00