1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-27 19:37:30 +02:00
Commit Graph

16 Commits

Author SHA1 Message Date
Werner Almesberger
a3a31f42b5 c2-ben.c: title comment still claimed the driver was for GTA01/02 2011-01-17 17:43:55 -03:00
Werner Almesberger
901998526e f32x/: renamed OpenWRT target from "ben" to "ben_openwrt" and added "ben_jlime"
- f32x/Makefile: set default target to ben_jlime instead of "ben"
- f32x/Makefile (CC_ben, CFLAGS_ben, LDFLAGS_ben, OBJS_ben, UPLOAD_ben):
  renamed to *_openwrt and added *_jlime equivalents
2011-01-10 12:39:43 -03:00
Werner Almesberger
6dbd844d0f f32x: open /dev/mem with O_SYNC to disable caching
- f32x/gpio-s3c24xx.c (gpio_init), f32x/gpio-xburst.c (gpio_init): open
  /dev/mem with O_SYNC to disable caching
2011-01-03 18:33:56 -03:00
Werner Almesberger
88fa3ad057 Improved chip identification, added C8051F34x support, some cleanup.
- f32x/f32x.c (identify_chip, identify, main): identify the chip and print
  its name
- f32x/f32x.c (identify): exit if communication is unstable already during
  chip identification
- f32x/f32x.c (chips): added the C8051F34x
- f32x/f32x.c (determine_layout, main): determine memory layout based on
  flash size
- f32x/f32x.c (usage, main): new option  -k flash_kb  to set/override the
  flash size
- f32x/f32x.c (LOCK_BYTE, protect, need_layout, main): use memory layout
  determined at run-time instead of hard-coded layout
- f32x/f32x.c (main): throw an error of -p is used without flashing
- f32x/f32x.c: added section titles and rearranged the order of some
  functions
2010-11-07 01:52:19 -03:00
Werner Almesberger
19e87df825 Add DFU to BOOKSHELF. Add MMC driver unloading instructions to f32x/README
- BOOKSHELF: added the DFU specification 1.1 as "dfu"
- f32x/README: the kernel's MMC driver has to be unloaded before using the
  uSD interface for bit-banging
2010-11-05 22:00:13 -03:00
Werner Almesberger
13aa36be2b Changed default target to "ben" and added Ben upload.
- f32x/Makefile: "ben" is now the default target
- f32x/Makefile: made upload process target-dependent
2010-10-22 14:50:13 -03:00
Werner Almesberger
e614d15fef Cleaned up command-line parsing. Added option -n to disable target power.
- f32x/c2-ben.c: removed #include <stdio.h> left over from debugging
- f32x/f32x.c (main): command-line parsing now uses getopt() and is done
  before trying to talk to the target
- f32x/c2-drv.h (c2_ops), f32x/c2.h (c2_init), f32x/c2.c (c2_init),
  f32x/c2-om.c (om_init): pass "power" argument along the init call chain
- f32x/c2-ben.c (ben_init): added target power switching
- f32x/f32x.c (usage, main): new option -n to disable target power
2010-10-22 14:50:13 -03:00
Werner Almesberger
df9fb5c338 Include gpio-s3c24xx.h in gpio-s3c24xx.c
- f32x/gpio-s3c24xx.c: include gpio-s3c24xx.h
- f32x/gpio-s3c24xx.c: fix declaration mismatch discovered this way
2010-10-21 20:25:17 -03:00
Werner Almesberger
bb600dada5 f32x: added support for the c2ben adapter
- f32x/c2-ben.c: bitbang wrapper for the c2ben board
- f32x/Makefile: added "ben" target
- f32x/gpio-xburst.h, f32x/gpio-xburst.c: GPIO access primitives for XBurst
  CPUs
2010-10-21 20:15:07 -03:00
Werner Almesberger
80a0152663 Don't call gpio_init in c2_init, so that we can do additional setup work before
- f32x/c2-om.c: moved system includes to c2-bitbang.c
- f32x/c2-bitbang.c (c2_init): leave it to the upper layer to call gpio_init
- f32x/c2-om.c (om_init): call gpio_init, then c2_init
2010-10-21 19:28:00 -03:00
Werner Almesberger
6a4da0eaef Moved C2 bitbang functions from c2-om.c to (#included) c2-bitbang.c
- f32x/c2-om.c: renamed C2 bitbang functions from om_* to c2_*
- f32x/c2-om.c,  f32x/c2-bitbang.c: moved most of the content of c2-om.c to
  c2-bitbang.c and #include c2-bitbang.c
- f32x/Makefile: c2-om.o depends on c2-bitbang.c now
2010-10-21 19:09:43 -03:00
Werner Almesberger
3c9abdc65a Renamed gpio.* to gpio-s3c24xx.*
- f32x/Makefile (OBJS_om): rename gpio.o to gpio-s3c24xx.o
- f32x/gpio-s3c24xx.h, f32x/gpio-s3c24xx.c, f32x/c2-om.c: renamed gpio.* to
  gpio-s3c24xx.* to
2010-10-21 18:30:02 -03:00
Werner Almesberger
3bbf318536 Switched from four-spaces to one-tab indentation. 2010-10-21 10:05:26 -03:00
Werner Almesberger
de75051afa Support different targets. (Openmoko GTA01/02 with Dbgv3, soon c2ben.)
- f32x/Makefile: added support for building for different targets (for now,
  just TARGET=om)
- f32x/c2-drv.h: interface for C2 drivers
- f32x/c2-om.c: updated title
- f32x/c2-om.c: renamed all c2_* to om_* and made them "static"
- f32x/c2-om.c (c2_om): driver operations
- f32x/c2.c: call driver operations
- f32x/c2.h: moved protocol constants to c2-drv.h
2010-10-21 10:03:42 -03:00
Werner Almesberger
ab35c6b518 Prepare abstraction of C2 communication.
- f32x/c2.c: renamed to c2-om.c
- f32x/Makefile (OBJS): changed c2.o to c2-om.o
2010-10-21 10:00:41 -03:00
Werner Almesberger
c55fc4018d f32x/ - firmware uploader for the C2 protocol. From IDBG. 2010-08-13 08:46:38 -03:00