• Robert Sprowson's avatar
    Add support for CM3 and CM3L with or without eMMC · 6eeefb37
    Robert Sprowson authored
    The SDIO HAL device reports when it is sure fixed disc media is attached (ie. eMMC soldered on the same PCB) which causes SDFS to report this to FileCore as a fixed disc, skipping the removable safety checks.
    However, CM3 and CM3L both return the same board id so we can't work out which is which. Additionally, someone could attach an external eMMC in theory on a custom expansion board (instead of an SD card socket like the CMIO has).
    To resolve this, we assign IO expander line 6 of U8 to be a safety catch. If that line is held low, it signifies this is definitely a CM3 - in effect this is a "definitely has eMMC" or "maybe has eMMC" switch.
    
    Tested on CM1, CM3, CM3L, and a suitably modified CM3 with the help of Chris Hall.
    
    Version 0.69. Tagged as 'BCM2835-0_69'
    6eeefb37
Messaging 12.6 KB