From patchwork Mon May 22 16:16:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 100308 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp1467544obb; Mon, 22 May 2017 09:16:52 -0700 (PDT) X-Received: by 10.80.160.231 with SMTP id 94mr717280edo.173.1495469812768; Mon, 22 May 2017 09:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495469812; cv=none; d=google.com; s=arc-20160816; b=pt0+amogWbt0GmLpEyuenITjhRz4aFpuhcfOXq2fohG9FEFe8eMJQ9u23mxbKmDFFM hrPW84ugJckDQB6YmmBtMrld1D6Ife8bjIKpSzqId3i3nQpWVhLsOWOgnZUl+u+JkDBW BX/l5IHkucpq8aDZaYLs78DPxoIQAN5exyQReIRwq6HZDq52WkcScbNqK4rXnkE4GRLu qVRD/L2PktrVYkYzjHaprCjONsXrV4+KGeNaoaDw6qD/ghcLLaDH+NccMrzWd9ChnBPa Bz8+nY7YqL2W+W7S45grQ0c56wx8M9nBDkDyposXMsrVcPkIDi4DuTaE/GNaOf+QEoyN P7gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=ZNamUwvvDw9EE6DAU4dkI75gDBDlhjLDsFD3ckmBkBk=; b=fcFoCrYf0dx1yeXDHBQ8vizyelBoFG/IGv/aETE3DHnf7Muq095seSZ7oBm3w7AQjj 1w5AaaLmWjXRhsP1tKp950unDUMQWkCk897qyP9ef/5OxGcfh2wkrCclDCuC2AjHoQPm yWmy0W7hkGn+FX+jGHgoDQMZqO0SvzJ1EsUlu7rcGRFhJEeMth9YRsiJjXx1N8JniELw Z21CcEWtsCBSvMtNS1pPKB1IB8Gb2IWX+7HrENJcQ9T4br2WQsIG9xGJbBkGWfgfawJo P+aDq5xYeZ20zAWuapLbLde6/xTkMkcEYGNMuBw4Sf8UBEPiQLjck7/qr5NptjiIN/Wp fCvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b45si17175067edc.76.2017.05.22.09.16.52; Mon, 22 May 2017 09:16:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id CE8CBC21C83; Mon, 22 May 2017 16:16:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D124CC21C55; Mon, 22 May 2017 16:16:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DE9D6C21C55; Mon, 22 May 2017 16:16:45 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.denx.de (Postfix) with ESMTPS id 77B02C21C48 for ; Mon, 22 May 2017 16:16:45 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id a5so20561763lfh.2 for ; Mon, 22 May 2017 09:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=90nwcMe8wydyH27hoRQefToxyaUEva+XdbqhVCHZC7s=; b=boEGWJpzB1xENYP0Wm1jR+48D4DUU/kL7zia4BUJtb/9mC+FShJcxQEuARk7tfNTp3 w8KwvKgimqVDr+nmnYSS+7Cz5lQMCQCTv5WNaI0ojImHvSI8TCeuTpcjGt6EhvVebwKe MisxC4UXAID+hzV9rf2w+0wO1kpozIZ8WR7E8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=90nwcMe8wydyH27hoRQefToxyaUEva+XdbqhVCHZC7s=; b=qF2/kCeMy12oRnyG5VkKHYh1tOUBykhQWroZeMHiuvhV0Ad23ZpWKQ+p8AuSp8GetS 14cEuWE1AB1IqxTD8eqbfENFAvNASi6KVNoSxHPWjYugIlMI0JOXrA4MK5VCjeRVB6hS nbv4GaQ7wjd2tNSIaVoxsmFW9vBWNnteBwQWVv4P5nJLkt5bXDl0y82CPu1iY29/t8rr WXRt5NYPdGqNnvQUD5dh6Yh1sgXQXN/sIqS3yPKjEZeQrzoned7VRSQj6pJgqmhdueWU T0bT0GcMdU4KWs6BL2LZWMIR5WkUty1JCjVHtRsEAI0syXUZgWoL42fnIRAHP2QjjZv6 39IQ== X-Gm-Message-State: AODbwcA6q10BdOMntfrm8tcbTfCtX0MEKuqM4ZrphcmJYejpdhC6+IBx FlGm5UiDdVCscBmC X-Received: by 10.25.195.21 with SMTP id t21mr6288349lff.103.1495469804857; Mon, 22 May 2017 09:16:44 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u3sm3221798lja.13.2017.05.22.09.16.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2017 09:16:43 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 22 May 2017 19:16:39 +0300 Message-Id: <20170522161642.13058-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH v2 0/3] omap: Provide fastboot variables for fastboot.sh X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion 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" fastboot.sh is a script used for flashing Android images for TI boards (and can be found in corresponding AOSP sources). This script relies on some fastboot variables, which can be accessed with "fastboot getvar" command. This patch series exports those variables, which fastboot.sh script relies on. The list of added variables: - "cpu": CPU type (string, like "DRA752") - "secure": CPU security index (string, like "GP") - "board_rev": board revision (string, like "A.30") - "userdata_size": size of userdata partition (number, in KiB) Variables are enabled for AM57x EVM and DRA7 EVM boards, which are mainly supported TI boards, capable of Android running. Changes in v2: - use get_device_type() instead of omap_get_cpu_type() - guard omap_set_fastboot_vars() with CONFIG_FASTBOOT_FLASH - use correct board names Sam Protsenko (3): omap: Add routine for setting fastboot variables arm: am57xx: Set fastboot variables in environment arm: dra7: Set fastboot variables in environment arch/arm/include/asm/omap_common.h | 6 ++ arch/arm/mach-omap2/utils.c | 115 +++++++++++++++++++++++++++++++++++++ board/ti/am57xx/board.c | 1 + board/ti/dra7xx/evm.c | 1 + 4 files changed, 123 insertions(+)