From patchwork Mon Feb 13 17:09:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 93907 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1186490qgi; Mon, 13 Feb 2017 09:09:52 -0800 (PST) X-Received: by 10.28.12.68 with SMTP id 65mr39871128wmm.100.1487005792032; Mon, 13 Feb 2017 09:09:52 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id m15si6267561wmh.131.2017.02.13.09.09.50; Mon, 13 Feb 2017 09:09:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; 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 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 782544ABEE; Mon, 13 Feb 2017 18:09:50 +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 Dwhs0kyu1OpM; Mon, 13 Feb 2017 18:09:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9607B4A997; Mon, 13 Feb 2017 18:09:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 413764A997 for ; Mon, 13 Feb 2017 18:09:44 +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 lZKNauaRT7oC for ; Mon, 13 Feb 2017 18:09:44 +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-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by theia.denx.de (Postfix) with ESMTPS id 047664A068 for ; Mon, 13 Feb 2017 18:09:40 +0100 (CET) Received: by mail-lf0-f48.google.com with SMTP id z134so53691234lff.3 for ; Mon, 13 Feb 2017 09:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RivxaxgrEq8Ra7Mr/7edH+91H+34TE16fs1Fl4z7QsU=; b=g3z1v04v9kvufOp1fxhoUp1x/7aG6BdjDJwkShJxgPVanVRk8EMViKLhTKk+HcibUX P1uHVNkQzp1D9IVxTx+4rHc6O9FBdUQqRrFYOaMLPtlskjMJ12+Fs7OGKQ9zGDALq7nZ TxEmjrEtkhfjeeAymPgmXLoAiyTWx/yKkzj6U= 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=RivxaxgrEq8Ra7Mr/7edH+91H+34TE16fs1Fl4z7QsU=; b=s4hFakgGgbEScFG/9HVPjlF74CLrubeao/8Sd63isa47R3n1PH+JiG35ruL7B6nCuR 0T8//3qJs0w94ZP2WEh8XLNE3xknf1I2UkEBD88rDNjMPkJrhkZa6lX7IkmOMg7scKG0 M7N/DKgp9+KIrrhPCygu/R/bA8XXF9x0f3o6cDRa+yMF+10eW4qZQWwZaYk/esFdnaU7 0UnPXy4cwOOABp/TYeVIHfoBSzzF9GXiVe6pcaLdZgv2hbiyRQ4RUYoalY/k9D3VhGJo mC2NCjmqVCslj8TpmOxAd/3R+GBgIHJ+1X/0kF6ahJRnkxy3IXIBGgUHrygcAdbRJ+Ig LxPw== X-Gm-Message-State: AMke39lsc97DKjtRa7wSgUGL3cSqxJxr4HCD9AAVvrBcaEodEEvQ1qc8+BjbuLYaWnT6mX2h X-Received: by 10.25.228.138 with SMTP id x10mr6601031lfi.55.1487005780108; Mon, 13 Feb 2017 09:09:40 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 13sm2262687ljb.57.2017.02.13.09.09.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Feb 2017 09:09:39 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 13 Feb 2017 19:09:37 +0200 Message-Id: <20170213170937.20569-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH] arm: am57xx: Set serial# variable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable). Serial number generating algorithm is described at [1]. [1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html Signed-off-by: Sam Protsenko --- board/ti/am57xx/board.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 5f2d4dfab8..1611514417 100644 --- a/board/ti/am57xx/board.c +++ b/board/ti/am57xx/board.c @@ -487,6 +487,8 @@ int board_late_init(void) palmas_i2c_write_u8(TPS65903X_CHIP_P1, TPS65903X_PRIMARY_SECONDARY_PAD2, val); + omap_die_id_serial(); + return 0; }