• Michael Brunner's avatar
    mfd: Add ACPI support to Kontron PLD driver · e8299c73
    Michael Brunner authored
    Recent Kontron COMe modules identify the PLD device using the hardware
    id KEM0001 in the ACPI table.
    This patch adds support for probing the device using the HID and also
    retrieving the resources.
    
    As this is not available for all products, the DMI based detection still
    needs to be around for older systems. It is executed if no matching ACPI
    HID is found during registering the platform driver or no specific
    device id is forced.
    If a device is detected using ACPI and no resource information is
    available, the default io resource is used.
    
    Forcing a device id with the force_device_id parameter and therefore
    manually generating a platform device takes precedence over ACPI during
    probing.
    Signed-off-by: default avatarMichael Brunner <michael.brunner@kontron.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    e8299c73
kempld-core.c 24.4 KB