1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2025-01-30 17:31:05 +02: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
..

Targets: C8051F326/C8051F327
Programmer: OpenMoko GTA01/GTA02 with a debug v2 board

To do:
- support C8051F320/1 as well
- port to Ben NanoNote

Signal	DbgV3	Net		GPIO	V0: C2	V1: C2
------	-----	-------		----	------	------
CLK	3	SPI_CLK0	E13	C2CK	C2D
MOSI	4	SPI_MOSI0	E12	C2D	-
MISO	5	SPI_MISO0	E11	-	C2CK
nSS	6	SS0		G2	-	-


On the Ben, the kernel driver has to release the MMC port before it
can be used by f32x:

echo jz4740-mmc.0 >/sys/bus/platform/drivers/jz4740-mmc/unbind