From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756439Ab2KBIPm (ORCPT ); Fri, 2 Nov 2012 04:15:42 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:34105 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755354Ab2KBIPQ (ORCPT ); Fri, 2 Nov 2012 04:15:16 -0400 From: Kishon Vijay Abraham I To: , , , , , , , , , , Subject: [PATCH v4 0/3] ocp2scp: add non-dt support Date: Fri, 2 Nov 2012 13:44:45 +0530 Message-ID: <1351844088-27059-1-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series allows ocp2scp driver to create its child devices from the platform data. In omap platforms, usb phy is connected to ocp2scp and usb phy is needed for MUSB to be functional. When ocp2scp driver was added, it had only dt support which means it wont create usb phy devices for non-dt boot. This patch series adds non-dt support to ocp2scp and this series is needed for getting MUSB functional in non-dt boot. Changes from v3: used PLATFORM_DEVID_AUTO while creating a device using platform_device_alloc Changes from v2: *if cpu is not 44xx, dont create ocp2scp device in mach-omap2/devices.c Changes from v1: * Fixed Sergei's comments on memory leaks Kishon Vijay Abraham I (3): drivers: bus: ocp2scp: add pdata support ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy ARM: OMAP: ocp2scp: create omap device for ocp2scp arch/arm/mach-omap2/devices.c | 79 ++++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 28 ++++++++++ drivers/bus/omap-ocp2scp.c | 68 ++++++++++++++++++++++-- include/linux/platform_data/omap_ocp2scp.h | 31 +++++++++++ 4 files changed, 203 insertions(+), 3 deletions(-) create mode 100644 include/linux/platform_data/omap_ocp2scp.h -- 1.7.9.5