From patchwork Fri Jul 1 04:03:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kumar Gala X-Patchwork-Id: 102855 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C04EAB6EE9 for ; Fri, 1 Jul 2011 14:03:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5814128105; Fri, 1 Jul 2011 06:03:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aBfB1VPDepWM; Fri, 1 Jul 2011 06:03:17 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 70055280F8; Fri, 1 Jul 2011 06:03:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D313280F8 for ; Fri, 1 Jul 2011 06:03:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MkqjUdCGI12r for ; Fri, 1 Jul 2011 06:03:13 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by theia.denx.de (Postfix) with ESMTPS id 2E36A280F5 for ; Fri, 1 Jul 2011 06:03:12 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id p61439wN031677; Thu, 30 Jun 2011 23:03:09 -0500 From: Kumar Gala To: u-boot@lists.denx.de Date: Thu, 30 Jun 2011 23:03:09 -0500 Message-Id: <1309492989-13389-1-git-send-email-galak@kernel.crashing.org> X-Mailer: git-send-email 1.5.6.5 Cc: ramneek mehresh Subject: [U-Boot] [PATCH] powerpc/85xx: Add default usb mode and phy type to hwconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: ramneek mehresh Move to use hwconfig for usb mode & phy type instead of magic 'usb_phy_type' environment variable on the following platforms: MPC8536DS, P1020RDB, P1020RDB-PC, P1010RDB, P2020RDB, P2020RDB-PC, P2020RDB, P3041DS, P4080DS, & P5020DS. Signed-off-by: Ramneek Mehresh Signed-off-by: Kumar Gala --- include/configs/MPC8536DS.h | 3 ++- include/configs/P1_P2_RDB.h | 2 +- include/configs/P2020DS.h | 3 ++- include/configs/corenet_ds.h | 9 ++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h index 7f7ff9f..783ed51 100644 --- a/include/configs/MPC8536DS.h +++ b/include/configs/MPC8536DS.h @@ -262,6 +262,7 @@ #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ +#define CONFIG_HWCONFIG /* enable hwconfig */ #define CONFIG_FSL_PIXIS 1 /* use common PIXIS code */ #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ #ifdef CONFIG_PHYS_64BIT @@ -782,7 +783,7 @@ "fdtaddr=c00000\0" \ "fdtfile=8536ds/mpc8536ds.dtb\0" \ "bdev=sda3\0" \ - "usb_phy_type=ulpi\0" + "hwconfig=usb1:dr_mode=host,phy_type=ulpi\0" #define CONFIG_HDBOOT \ "setenv bootargs root=/dev/$bdev rw " \ diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index 4f1bdfe..df88b79 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -689,7 +689,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy); "nandfdtaddr=80000\0" \ "nandimgsize=400000\0" \ "nandfdtsize=80000\0" \ - "usb_phy_type=ulpi\0" \ + "hwconfig=usb1:dr_mode=host,phy_type=ulpi\0" \ "vscfw_addr=ef000000\0" \ "othbootargs=ramdisk_size=600000\0" \ "usbfatboot=setenv bootargs root=/dev/ram rw " \ diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index b5db0b3..90fe7c4 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -752,7 +752,8 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "perf_mode=performance\0" \ - "hwconfig=fsl_ddr:ctlr_intlv=bank,bank_intlv=cs0_cs1\0" \ + "hwconfig=fsl_ddr:ctlr_intlv=bank,bank_intlv=cs0_cs1;" \ + "usb1:dr_mode=host,phy_type=ulpi\0" \ "netdev=eth0\0" \ "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ "tftpflash=tftpboot $loadaddr $uboot; " \ diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h index 757a778..39d9b00 100644 --- a/include/configs/corenet_ds.h +++ b/include/configs/corenet_ds.h @@ -638,9 +638,16 @@ #define CONFIG_BAUDRATE 115200 +#if defined(CONFIG_P4080DS) +#define __USB_PHY_TYPE ulpi +#else +#define __USB_PHY_TYPE utmi +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ - "bank_intlv=cs0_cs1\0" \ + "bank_intlv=cs0_cs1;" \ + "usb1:dr_mode=host,phy_type=" MK_STR(__USB_PHY_TYPE) "\0"\ "netdev=eth0\0" \ "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ "ubootaddr=" MK_STR(CONFIG_SYS_TEXT_BASE) "\0" \