13 Sep, 2018

1 commit


08 Mar, 2018

1 commit

  • Commit 3aa0582fdb82 ("of: platform: populate /firmware/ node from
    of_platform_default_populate_init()") takes care of populating
    all the devices under the /firmware/ node in of_platform_default_populate_init()

    This patch reworks meson_sm_init to use module_platform_driver_probe as
    the platform device is populated.

    Cc: Carlo Caione
    Cc: Kevin Hilman
    Cc: linux-amlogic@lists.infradead.org
    Signed-off-by: Sudeep Holla
    Signed-off-by: Kevin Hilman

    Sudeep Holla
     

24 Mar, 2017

2 commits

  • Some special SMC calls (i.e. the function used to retrieve the serial
    number of the Amlogic SoCs) returns 0 in the register 0 also when the
    data was successfully read instead of using the register to hold the
    number of bytes returned in the bounce buffer as expected.

    With the current implementation of the driver this is seen as an error
    and meson_sm_call_read() returns an error even though the data was
    correctly read.

    To deal with this when we have no information about the amount of read
    data (that is 0 is returned by the SMC call) we return to the caller
    the requested amount of data and 0 as return value.

    Signed-off-by: Carlo Caione
    Acked-by: Mark Rutland
    Signed-off-by: Kevin Hilman

    Carlo Caione
     
  • After the data is read by the secure monitor driver it is being copied
    in the output buffer checking only the size of the bounce buffer but not
    the size of the output buffer.

    Fix this in the secure monitor driver slightly changing the API. Fix
    also the efuse driver that it is the only driver using this API to not
    break bisectability.

    Signed-off-by: Carlo Caione
    Acked-by: Srinivas Kandagatla # for nvmem
    Acked-by: Mark Rutland
    Signed-off-by: Kevin Hilman

    Carlo Caione
     

02 Sep, 2016

1 commit

  • Introduce a driver to provide calls into secure monitor mode.

    In the Amlogic SoCs these calls are used for multiple reasons: access to
    NVMEM, set USB boot, enable JTAG, etc...

    Acked-by: Mark Rutland
    Signed-off-by: Carlo Caione
    [khilman: add in SZ_4K cleanup]
    Signed-off-by: Kevin Hilman

    Carlo Caione