From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre AUBERT Date: Tue, 05 Nov 2002 17:57:59 +0100 Subject: [U-Boot-Users] FDC patch Message-ID: <3DC7F897.FA17CA3D@staubli.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 function fdc_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