From patchwork Tue Mar 17 18:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dileep Katta X-Patchwork-Id: 45896 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 64D2921547 for ; Tue, 17 Mar 2015 18:38:56 +0000 (UTC) Received: by widex7 with SMTP id ex7sf3739997wid.2 for ; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=r1YMOcJHRSukytJeZ8eBbI0Xecr7/cLxteIk4cO7t2A=; b=c26RvZvR0cGTDHYTbd5CU1X5gpetfQA2g3vzHfTN50QPTcy5LMARUd4lAo/Z6NFnzC I8r7FWbHK3pupL8ohjZ+dGR3uAcx/fD7bdfbsuL/v9C1TlZ0120HXGdohHIG0+NC1NF+ 8mLlo3Rk/0+EFbhE+1mPPfqTAhwi5M7c6x8dI9FuXj02jElfUtp1At8r7M1ia+7oLtW3 2LHzqrXyrljnF2PfsyTOZiBLW6mm40iK8Pk45oNWmzIZwN6SaclYVqf0tULNleStMJ2F /POC8gtIio/LQzwMS7cQ2nF0eVnPFNdJXlLxpiyleEbl7jlonGo1R5HoSBDP6TRiYhEZ X+Xw== X-Gm-Message-State: ALoCoQlVYj4o0iKHPiGtLnk4FPe9Zuh0tAREUz6odx/RZ+2iV/RBq7d70VeO553ySnKqnK2va6ip X-Received: by 10.180.109.34 with SMTP id hp2mr30269wib.4.1426617535750; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.38 with SMTP id x6ls81591lax.63.gmail; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) X-Received: by 10.112.41.236 with SMTP id i12mr32922869lbl.14.1426617535427; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id n8si11151941laa.114.2015.03.17.11.38.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 11:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbsy1 with SMTP id sy1so13732430lbb.1 for ; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) X-Received: by 10.112.8.101 with SMTP id q5mr55520306lba.19.1426617535174; Tue, 17 Mar 2015 11:38:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp692932lbj; Tue, 17 Mar 2015 11:38:54 -0700 (PDT) X-Received: by 10.180.97.106 with SMTP id dz10mr111340wib.33.1426617534270; Tue, 17 Mar 2015 11:38:54 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ut8si24910372wjc.137.2015.03.17.11.38.53; Tue, 17 Mar 2015 11:38:54 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 121524A036; Tue, 17 Mar 2015 19:38:53 +0100 (CET) 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 mbiWUeXFk1_h; Tue, 17 Mar 2015 19:38:52 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6C7174A02F; Tue, 17 Mar 2015 19:38:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A7F204A02F for ; Tue, 17 Mar 2015 19:38:49 +0100 (CET) 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 NlDMlsIepEsF for ; Tue, 17 Mar 2015 19:38:49 +0100 (CET) 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 mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by theia.denx.de (Postfix) with ESMTPS id 1C9AA4A02C for ; Tue, 17 Mar 2015 19:38:45 +0100 (CET) Received: by pabyw6 with SMTP id yw6so17088964pab.2 for ; Tue, 17 Mar 2015 11:38:43 -0700 (PDT) X-Received: by 10.66.161.161 with SMTP id xt1mr153303988pab.35.1426617523764; Tue, 17 Mar 2015 11:38:43 -0700 (PDT) Received: from localhost.localdomain ([106.51.139.45]) by mx.google.com with ESMTPSA id ce1sm23594055pdb.34.2015.03.17.11.38.40 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Mar 2015 11:38:43 -0700 (PDT) From: Dileep Katta To: u-boot@lists.denx.de, robherring2@gmail.com, trini@konsulko.com, rob.herring@linaro.org, srae@broadcom.com, l.majewski@samsung.com, angelabaker@ti.com Date: Wed, 18 Mar 2015 00:08:23 +0530 Message-Id: <1426617503-12477-1-git-send-email-dileep.katta@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <20150312192902.GD32541@bill-the-cat> References: <20150312192902.GD32541@bill-the-cat> Cc: Dileep Katta Subject: [U-Boot] [PATCH v2 1/1] ARM: DRA7XX: Add config file for Android with fastboot support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: dileep.katta@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 - Added new configuration for Android fastboot - This is based on following patch modified accordingly http://git.omapzoom.org/?p=repo/u-boot.git;a=commit;h=b2e04f92b5d91c708b6fd6b79d2266966ac51f4b Signed-off-by: Angela Stegmaier Signed-off-by: Dileep Katta --- Changes in v2: - Merged the header file content to existing dra7xx_evm.h to avoid duplication - Removed unnecessary definitions as per comments board/ti/dra7xx/MAINTAINERS | 1 + configs/dra7xx_evm_android_defconfig | 5 +++++ include/configs/dra7xx_evm.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 configs/dra7xx_evm_android_defconfig diff --git a/board/ti/dra7xx/MAINTAINERS b/board/ti/dra7xx/MAINTAINERS index 5ec6769..1b5ae71 100644 --- a/board/ti/dra7xx/MAINTAINERS +++ b/board/ti/dra7xx/MAINTAINERS @@ -6,3 +6,4 @@ F: include/configs/dra7xx_evm.h F: configs/dra7xx_evm_defconfig F: configs/dra7xx_evm_qspiboot_defconfig F: configs/dra7xx_evm_uart3_defconfig +F: configs/dra7xx_evm_android_defconfig diff --git a/configs/dra7xx_evm_android_defconfig b/configs/dra7xx_evm_android_defconfig new file mode 100644 index 0000000..5fdce85 --- /dev/null +++ b/configs/dra7xx_evm_android_defconfig @@ -0,0 +1,5 @@ +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,DRA7XX_ANDROID" ++S:CONFIG_ARM=y ++S:CONFIG_OMAP54XX=y ++S:CONFIG_TARGET_DRA7XX_EVM=y diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index dee2b11..dd20e08 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -43,6 +43,16 @@ "uuid_disk=${uuid_gpt_disk};" \ "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}" +#ifdef CONFIG_DRA7XX_ANDROID +/* Fastboot */ +#define CONFIG_CMD_FASTBOOT +#define CONFIG_ANDROID_BOOT_IMAGE +#define CONFIG_USB_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR +#define CONFIG_USB_FASTBOOT_BUF_SIZE 0x2F000000 +#define CONFIG_FASTBOOT_FLASH +#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1 +#endif + #include /* Enhance our eMMC support / experience. */ @@ -115,7 +125,11 @@ #define CONFIG_SPL_SPI_SUPPORT #define CONFIG_SPL_SPI_LOAD #define CONFIG_SPL_SPI_FLASH_SUPPORT +#ifdef CONFIG_DRA7XX_ANDROID +#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x80000 +#else #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000 +#endif #define CONFIG_SUPPORT_EMMC_BOOT @@ -130,6 +144,22 @@ #define CONFIG_OMAP_USB_PHY #define CONFIG_OMAP_USB2PHY2_HOST +/* USB GADGET */ +#define CONFIG_USB_GADGET +#define CONFIG_MUSB_GADGET +#define CONFIG_MUSB_PIO_ONLY +#define CONFIG_USBDOWNLOAD_GADGET +#define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_G_DNL_MANUFACTURER "Texas Instruments" +#ifdef CONFIG_CMD_FASTBOOT +#define CONFIG_G_DNL_VENDOR_NUM 0x0451 +#define CONFIG_G_DNL_PRODUCT_NUM 0xd022 +#else +#define CONFIG_G_DNL_VENDOR_NUM 0x0403 +#define CONFIG_G_DNL_PRODUCT_NUM 0xBD00 +#endif +#define CONFIG_USB_GADGET_DUALSPEED + /* SATA */ #define CONFIG_BOARD_LATE_INIT #define CONFIG_CMD_SCSI