2008-09-05 10:44:30 enable both m25p80 and mtd_dataflash
Filip Van Rillaer (BELGIUM)
Message: 61703
Hello,
I am using the ADDS-BF537-STAMP board with an add-on board that contains an SPI-flash. The add-on board is sometimes featured with a flash of the m25p80 family and sometimes with a flash of the mtd_dataflash family. Therefore I tried to enable both CONFIG_MTD_M25P80 and CONFIG_MTD_DATAFLASH, but that results in the error-message:
peripheral_request: Peripheral 10 function 0 is already reserved by m25p80 !
kobject: 'spi0.1' (00831e68): kobject_add_internal: parent: 'bfin-spi.0', set: 'devices'
kobject_add_internal failed for spi0.1 with -EEXIST, don't try to register things with the same name in the same directory.
Enable only 1 of those configs at a time and inserting the correct add-on board works fine, but that would mean that I need a different kernel for each add-on board. How to get it running with 1 kernel image?
Best regards,
Filip
TranslateQuoteReplyEditDelete
2008-09-05 11:37:16 Re: enable both m25p80 and mtd_dataflash
Mike Frysinger (UNITED STATES)
Message: 61706
you cant have two drivers using the same SPI CS at the same time. your only real option is to build them both as modules and have people `modprobe` them at runtime.
QuoteReplyEditDelete
2008-09-08 03:29:02 Re: enable both m25p80 and mtd_dataflash
Filip Van Rillaer (BELGIUM)
Message: 61771
Ok, thank you Mike for your assistance,
Filip