From patchwork Mon Jun 24 12:31:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 807018 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1858722wrt; Mon, 24 Jun 2024 05:33:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUOlmmZj0GdyJLFQH2BlcJuBaWeFhaO1lAJzrrqI1QAum/z9lFYFSBdMyihXIlbjwt65ugGmDJfP81s1CsIxwjr X-Google-Smtp-Source: AGHT+IGDCSzM6EXTdwaAwXP6qraiKQ1EPyIrgYH0BAGwZDUq+TYUo0FiGK8hDYFh66OILEz/chr2 X-Received: by 2002:a50:d5d7:0:b0:57c:610a:6e7f with SMTP id 4fb4d7f45d1cf-57d4bd6a2d2mr3045379a12.11.1719232399855; Mon, 24 Jun 2024 05:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719232399; cv=none; d=google.com; s=arc-20160816; b=ablfnLmrJ6BTi/e74KoWTsiuvdBzLOSRL7sLDbPjdgl5PedXlWDphpHWXm503xyoLk p75ca9CZeCRsihTQI2zVossIiNhwyumhhgwlQ8O/RUN559YnjQwjDPsaN9ClMXrgop5m rGOsNwqVbxu2z+saLw49ADom2+blF59HezhPQw+slmjdwcuxE8Hra9ROxbKPxpqoV36I WSBIIu7qaI7r7cggTWEo2LlOeuOLbkVXQ2czOejv7qvpygRKBdj+u8hrfTrDQb1VmoFK 644HtlNYhxztTV9f9Fwi4q7hR8I/D2d6c1Cn3j1wP/oTgHcKxPeSJ0fTfaP+uKFxFj2n eIHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=16leo386kdyQHDuibzMPERFxISztzEmMgENhPhboQTk=; fh=8pAQzRFnVN8zrZNtsRM0Iqu2MynFBuynI/J9AcDcpo4=; b=cCouB72ykM1bxLz8lS/bAeonEjKmUKJnaE6/oL8b7tNE4f2kKrDbNgksOnX04PA4SA t6Ln962Ptucd0i0OAlxMU6RwXRmKD0HWRG+chUoaqyTprhERirSsskHuydoc3w5vnI2m dF7LdcQRqA8enC9YHTbQht0qZAm/SuNt/8xQY9fh/WhFrYzr2hYxpNp6VYIDW+Tu9AMe vXG8v1DlBBl2kduCx2dh+TLNMZiaq51P7piSsUpSUP9B9k7iAUHX77Z2pMdfaafHzpRW a13rpevRVmmF6xTEumJ8X4ni1p84NlhPwsuv+8+4btZfdQfoem1oc6qDWQgTmN6nmqy3 lgVA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ApYY2r5s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57d306331a9si3724271a12.134.2024.06.24.05.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ApYY2r5s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DA0F882B7; Mon, 24 Jun 2024 14:33:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ApYY2r5s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 687BF882BE; Mon, 24 Jun 2024 14:33:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2729888137 for ; Mon, 24 Jun 2024 14:33:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-57d044aa5beso4759002a12.2 for ; Mon, 24 Jun 2024 05:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719232394; x=1719837194; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=16leo386kdyQHDuibzMPERFxISztzEmMgENhPhboQTk=; b=ApYY2r5sOuVfncUwm9msrjLYL1aFHCF3L3pqcr9YO+LpY1+equee4t5RMp21B9WYta Hnez09xSt6cd5mTkL7BTRbC7up6OBqVmx7ZUzcPE+PIuFK7q0vJW2kwjnhHCkAw1fc2D kNuiWtUUcuFtnE5wfZdMytat5lnU2Gy48udSv7s7BgBmS4ejTXY9jOYZTOFXY9JFRGZF MS6BOnBL7z5VPODgnv7Vc4IOwwO8gZi411Vmv1hKBdrvsFu/sLsNVqmDjqeC6devXUL9 HT+663epxQES13NsulhVxPe7GjD3GmMJCcRf7tduYRHcPmsh5PvdrcpJrcJbaYjVkbu+ IHjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719232394; x=1719837194; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=16leo386kdyQHDuibzMPERFxISztzEmMgENhPhboQTk=; b=Y1nIW9oAsTeLqfD4/mPSM91YPDb33VxhABNtXggnI76qZFYH4aqXyCCqQfMMLhep/I dIS2AFpYAgmZaIBeD6oU02Rveu8UmesJytJSd/rxQ+QPGIS/nivjQYU8EPFho8qdskYA WTwUPIpRIq55kUt42O8Rbqc84PtaruXoq0EKRAiCicvOpd6fTPoaIyDmCbk8IbbbFJkv 7uB50Yr/seyi+mvUofrdSlWWQO4Tjm4RhKeYUpe+HcbtBLotkYHCCOQLnyKBurXqi6vf lrnM9Mrsi6LDMZbmcNdAT0KHQZ0GyAE/qHcNOKNwY8SlSLW0gAdvUZYZWWutVR1ivINN wiOA== X-Gm-Message-State: AOJu0Yx+dn2MREjOvx7ilgVfnFb9/V1AnrjjG3E67R4iJf720wSoRnhT ehqPuzSc88jfFxZEg3wZEeCfhQMYKG6JnYQOb36+32bR+QtOb68Sw3Gt1UcJ5ww= X-Received: by 2002:a50:8e54:0:b0:57c:745d:110b with SMTP id 4fb4d7f45d1cf-57d4bd56bd6mr2825884a12.3.1719232394485; Mon, 24 Jun 2024 05:33:14 -0700 (PDT) Received: from cymric.caleb.rex.connolly.tech ([2a02:8109:aa0d:be00::52af]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57d30427976sm4654929a12.33.2024.06.24.05.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:33:13 -0700 (PDT) From: Caleb Connolly To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io Subject: [PATCH v2] mach-snapdragon: move default environment to a file Date: Mon, 24 Jun 2024 14:31:59 +0200 Message-ID: <20240624123255.2590424-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.45.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Make use of CONFIG_DEFAULT_ENV_FILE and move the default qcom environment to a file under board/qualcomm. This is much cleaner and means we don't need to recompile on changing the environment. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- Changes since v1: - Don't set bootfile - V1: https://lore.kernel.org/u-boot/20240617085629.1744017-1-caleb.connolly@linaro.org --- board/qualcomm/default.env | 11 +++++++++++ configs/qcom_defconfig | 2 ++ include/configs/qcom.h | 16 ---------------- 3 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 board/qualcomm/default.env diff --git a/board/qualcomm/default.env b/board/qualcomm/default.env new file mode 100644 index 000000000000..dbf6f4e72600 --- /dev/null +++ b/board/qualcomm/default.env @@ -0,0 +1,11 @@ +stdin=serial,button-kbd +stdout=serial,vidconsole +stderr=serial,vidconsole +preboot=scsi scan; usb start +fastboot=fastboot -l $fastboot_addr_r usb 0 +do_boot=bootefi bootmgr +bootmenu_0=Boot first available device=run do_boot +bootmenu_1=Enable fastboot mode=run fastboot +bootmenu_2=Reset device=reset +menucmd=bootmenu +bootcmd=run do_boot diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 25fa8b0f7d2b..4ff280fc6e7d 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -46,8 +46,10 @@ CONFIG_CMD_LOG=y CONFIG_OF_LIVE=y CONFIG_OF_UPSTREAM_BUILD_VENDOR=y CONFIG_BUTTON_QCOM_PMIC=y CONFIG_BUTTON_REMAP_PHONE_KEYS=y +CONFIG_USE_DEFAULT_ENV_FILE=y +CONFIG_DEFAULT_ENV_FILE="board/qualcomm/default.env" CONFIG_CLK=y CONFIG_CLK_STUB=y CONFIG_CLK_QCOM_APQ8016=y CONFIG_CLK_QCOM_APQ8096=y diff --git a/include/configs/qcom.h b/include/configs/qcom.h index c13a847f62f1..b7d38866c51d 100644 --- a/include/configs/qcom.h +++ b/include/configs/qcom.h @@ -10,21 +10,5 @@ #define __CONFIGS_SNAPDRAGON_H #define CFG_SYS_BAUDRATE_TABLE { 115200, 230400, 460800, 921600, 3000000 } -/* Load addressed are calculated during board_late_init(). See arm/mach-snapdragon/board.c */ -#define CFG_EXTRA_ENV_SETTINGS \ - "stdin=serial,button-kbd\0" \ - "stdout=serial,vidconsole\0" \ - "stderr=serial,vidconsole\0" \ - "bootfile=/extlinux/extlinux.conf\0" \ - "preboot=scsi scan; usb start\0" \ - "fastboot=fastboot -l $fastboot_addr_r usb 0\0" \ - "do_boot=bootefi bootmgr\0" \ - "bootmenu_0=Boot first available device=run do_boot\0" \ - "bootmenu_1=Enable USB mass storage=ums 0 scsi 0,1,2,3,4,5\0" \ - "bootmenu_2=Enable fastboot mode=run fastboot\0" \ - "bootmenu_3=Reset device=reset\0" \ - "menucmd=bootmenu\0" \ - "bootcmd=run do_boot\0" /* first entry is default */ - #endif