driver.c (2930abcffd9f0b36e8fd4df01f6311eede686817) driver.c (e8419c24bacee45bfe3504814e91fc89ff8c23de)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * System Control and Management Interface (SCMI) Message Protocol driver
4 *
5 * SCMI Message Protocol is used between the System Control Processor(SCP)
6 * and the Application Processors(AP). The Message Handling Unit(MHU)
7 * provides a mechanism for inter-processor communication between SCP's
8 * Cortex M3 and AP.

--- 1919 unchanged lines hidden (view full) ---

1928 &dev_attr_vendor_id.attr,
1929 &dev_attr_sub_vendor_id.attr,
1930 NULL,
1931};
1932ATTRIBUTE_GROUPS(versions);
1933
1934/* Each compatible listed below must have descriptor associated with it */
1935static const struct of_device_id scmi_of_match[] = {
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * System Control and Management Interface (SCMI) Message Protocol driver
4 *
5 * SCMI Message Protocol is used between the System Control Processor(SCP)
6 * and the Application Processors(AP). The Message Handling Unit(MHU)
7 * provides a mechanism for inter-processor communication between SCP's
8 * Cortex M3 and AP.

--- 1919 unchanged lines hidden (view full) ---

1928 &dev_attr_vendor_id.attr,
1929 &dev_attr_sub_vendor_id.attr,
1930 NULL,
1931};
1932ATTRIBUTE_GROUPS(versions);
1933
1934/* Each compatible listed below must have descriptor associated with it */
1935static const struct of_device_id scmi_of_match[] = {
1936#ifdef CONFIG_MAILBOX
1936#ifdef CONFIG_ARM_SCMI_TRANSPORT_MAILBOX
1937 { .compatible = "arm,scmi", .data = &scmi_mailbox_desc },
1938#endif
1937 { .compatible = "arm,scmi", .data = &scmi_mailbox_desc },
1938#endif
1939#ifdef CONFIG_HAVE_ARM_SMCCC_DISCOVERY
1939#ifdef CONFIG_ARM_SCMI_TRANSPORT_SMC
1940 { .compatible = "arm,scmi-smc", .data = &scmi_smc_desc},
1941#endif
1942 { /* Sentinel */ },
1943};
1944
1945MODULE_DEVICE_TABLE(of, scmi_of_match);
1946
1947static struct platform_driver scmi_driver = {

--- 55 unchanged lines hidden (view full) ---

2003}
2004
2005static int __init scmi_driver_init(void)
2006{
2007 int ret;
2008
2009 scmi_bus_init();
2010
1940 { .compatible = "arm,scmi-smc", .data = &scmi_smc_desc},
1941#endif
1942 { /* Sentinel */ },
1943};
1944
1945MODULE_DEVICE_TABLE(of, scmi_of_match);
1946
1947static struct platform_driver scmi_driver = {

--- 55 unchanged lines hidden (view full) ---

2003}
2004
2005static int __init scmi_driver_init(void)
2006{
2007 int ret;
2008
2009 scmi_bus_init();
2010
2011 BUILD_BUG_ON(!IS_ENABLED(CONFIG_ARM_SCMI_HAVE_TRANSPORT));
2012
2011 /* Initialize any compiled-in transport which provided an init/exit */
2012 ret = scmi_transports_init();
2013 if (ret)
2014 return ret;
2015
2016 scmi_base_register();
2017
2018 scmi_clock_register();

--- 35 unchanged lines hidden ---
2013 /* Initialize any compiled-in transport which provided an init/exit */
2014 ret = scmi_transports_init();
2015 if (ret)
2016 return ret;
2017
2018 scmi_base_register();
2019
2020 scmi_clock_register();

--- 35 unchanged lines hidden ---