From patchwork Thu Jul 12 10:10:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Santhapuri, Damodar" X-Patchwork-Id: 1188201 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2A0FC40B37 for ; Thu, 12 Jul 2012 10:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933623Ab2GLKM0 (ORCPT ); Thu, 12 Jul 2012 06:12:26 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:51966 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759108Ab2GLKMR (ORCPT ); Thu, 12 Jul 2012 06:12:17 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q6CACGjW012072; Thu, 12 Jul 2012 05:12:16 -0500 Received: from DBDE70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id q6CACF8M019993; Thu, 12 Jul 2012 15:42:15 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by dbde70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 14.1.323.3; Thu, 12 Jul 2012 15:42:15 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id q6CACE5f001082; Thu, 12 Jul 2012 15:42:15 +0530 From: Damodar Santhapuri To: CC: , , Ajay Kumar Gupta , Damodar Santhapuri Subject: [PATCH v3 1/3] arm: omap: hwmod: add new memory resource for usb phy control Date: Thu, 12 Jul 2012 15:40:35 +0530 Message-ID: <1342087837-32161-1-git-send-email-damodar.santhapuri@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Ajay Kumar Gupta Added usb_ctrl0 and usb_ctrl1 base address as new memory resources which will be used at am335x musb driver glue layer to turn on or off builin PHY untill we have a separate system control module driver. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Damodar Santhapuri --- Changes from v1: Reordered the layout based on Kishon's comment on not using platform_get_resources_by_name. Changes from v2: Corrected the pa_end address of usb_cntrl registers based on Sergei Shtylyov comment. arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c index df888fe..6df4c4d 100644 --- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c @@ -3269,11 +3269,23 @@ static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = { .flags = ADDR_TYPE_RT }, { + .name = "usb_ctrl0", + .pa_start = 0x44E10620, + .pa_end = 0x44E10620 + SZ_4 - 1, + .flags = ADDR_TYPE_RT + }, + { .name = "musb1", .pa_start = 0x47401800, .pa_end = 0x47401800 + SZ_2K - 1, .flags = ADDR_TYPE_RT }, + { + .name = "usb_ctrl1", + .pa_start = 0x44E10628, + .pa_end = 0x44E10628 + SZ_4 - 1, + .flags = ADDR_TYPE_RT + }, { } };