FDC patch
Hello,
The attached patch modify the fdcboot source code to support wide hardware designs
I needed to add some defines because :
- on some boards, the fdc registers aren't contiguous (for example they can be aligned on a 32 bits boundary).
- the fdc chipset has a 8 bits data bus. Then, it can be connected on the processor data bus on D0-D7 or D8-D15 or D16-D23 or D24-D31.
- the floppy drive can be on drive other than 0.
- some chipsets need extra initializations.
CFG_ISA_IO_STRIDE : defines the spacing between fdc chipset registers (default value 1)CFG_ISA_IO_OFFSET : defines the offset of register from address. It depends on which part of the data bus is connected to the fdc chipset. (default value 0)CFG_FDC_DRIVE_NUMBER : the default drive number (default value 0)
If CFG_ISA_IO_STRIDE CFG_ISA_IO_OFFSET and CFG_FDC_DRIVE_NUMBER are undefined, they take their default value.
if CFG_FDC_HW_INIT is defined, then the function fdc_hw_init() is called at the beginning of the fdc setup. The functionfdc_hw_init must be provided by the board source code. It is used to make hardware dependant initializations.
CHANGELOG:
* Patch by Pierre Aubert , 05 Nov 2002
Hardware relative improvments in fdc booting
Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdc.patch
Type: application/octet-stream
Size: 4453 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20021105/9ed24173/attachment.obj
Dear Pierre,
Quoted 3 lines · in message <[email protected]> you wrote:
The attached patch modify the fdcboot source code to support wide hardware designs
Added. Will show up on CVS in a couple of hours.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de See us @ electronica 2002 in Munich, Nov 12-15, Hall A3, Booth A3.325