mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
648766e533
Slave devices can be added by listing them as child of a SLIMBUS controller of_node in the Device Tree. It is required to specify elemental address, and name of the slave device. Change-Id: Ie1b2f8fe58988f0237547a84f1bbb14ce4733eff Signed-off-by: Sagar Dharia <sdharia@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include <linux/slimbus/slimbus.h>
|
|
#include <linux/of_irq.h>
|
|
|
|
#ifdef CONFIG_OF_SLIMBUS
|
|
/*
|
|
* of_slim_register_devices() - Register devices in the SLIMbus Device Tree
|
|
* @ctrl: slim_controller which devices should be registered to.
|
|
*
|
|
* This routine scans the SLIMbus Device Tree, allocating resources and
|
|
* creating slim_devices according to the SLIMbus Device Tree
|
|
* hierarchy. Details of this hierarchy can be found in
|
|
* Documentation/devicetree/bindings/slimbus. This routine is normally
|
|
* called from the probe routine of the driver registering as a
|
|
* slim_controller.
|
|
*/
|
|
extern int of_register_slim_devices(struct slim_controller *ctrl);
|
|
#else
|
|
static int of_register_slim_devices(struct slim_controller *ctrl)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_OF_SLIMBUS */
|