Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52E72C4332F for ; Tue, 8 Nov 2022 16:38:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A8ED8503B; Tue, 8 Nov 2022 17:38:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667925517; bh=c4hnVMGN+R5d9a19jkNZLXM8dP0NcuAR3lMEzH5TV2E=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=xydg4fqiLYkKal8Q/gYwaM0qzJkfurCIWfjtbx76DctLmiGBACvG1d1KkavVn7tSd b7IknRpj7uY6Tsm0HGvh3bJmXdFqhsyfx6V7HMMRWtAbjvbVhlNJmcUI9N99Zc2KU9 c8kKxGbRPx4O+x6rT5eqrr5GDf3R3JgdNe0nwEU1ydOb7k3wfR1T2fOcsO+wyCRiPJ +8v06Cw7SI6FtQZl92GDGSDALU8KSyxFXBup/t4IA4hEFo0Zl+0eaJmfrbE6lAv1ep 9rvvLTdkNFUqWaxMJ0ePBWu3T8VLBxR794C91mrNaeUrX+Tf2gWPCPvNr9oLqzWt3z /7aS3Jk9MJoww== Received: by phobos.denx.de (Postfix, from userid 109) id 81BF585072; Tue, 8 Nov 2022 17:38:27 +0100 (CET) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CDB8684FD0 for ; Tue, 8 Nov 2022 17:37:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4N6DKh6Hr3z1r1Mk; Tue, 8 Nov 2022 17:37:44 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4N6DKh601Vz1qqlR; Tue, 8 Nov 2022 17:37:44 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id iTOxbBO3ztYQ; Tue, 8 Nov 2022 17:37:44 +0100 (CET) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 8 Nov 2022 17:37:43 +0100 (CET) From: sbabic@denx.de X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1693402 X-Patchwork-Delegate: sbabic@denx.de To: Adam Ford ,u-boot@lists.denx.de Subject: [PATCH 1/3] imx: imx8mm_beacon: Eliminate a few extras to free up SPL space In-reply-to: <20221022142825.55155-1-aford173@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Message-Id: <20221108163827.81BF585072@phobos.denx.de> Date: Tue, 8 Nov 2022 17:37:56 +0100 (CET) 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.6 at phobos.denx.de X-Virus-Status: Clean > There are a few functions which are not essential for use in > SPL, but they take up enough space to make other preferred > features not fit. Remove the extras. > Signed-off-by: Adam Ford > Reviewed-by: Fabio Estevam > diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c > index a93cc93878..b0e9d918da 100644 > --- a/board/beacon/imx8mm/spl.c > +++ b/board/beacon/imx8mm/spl.c > @@ -44,11 +44,6 @@ static void spl_dram_init(void) > ddr_init(&dram_timing); > } > =20 > -void spl_board_init(void) > -{ > - debug("Normal Boot\n"); > -} > - > #ifdef CONFIG_SPL_LOAD_FIT > int board_fit_config_name_match(const char *name) > { > diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defcon= fig > index e37ce01c19..f6a1012d8a 100644 > --- a/configs/imx8mm_beacon_defconfig > +++ b/configs/imx8mm_beacon_defconfig > @@ -29,7 +29,6 @@ CONFIG_DEFAULT_FDT_FILE=3D"imx8mm-beacon-kit.dtb" > CONFIG_SPL_HAS_BSS_LINKER_SECTION=3Dy > CONFIG_SPL_BSS_START_ADDR=3D0x910000 > CONFIG_SPL_BSS_MAX_SIZE=3D0x2000 > -CONFIG_SPL_BOARD_INIT=3Dy > # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set > CONFIG_SPL_STACK=3D0x920000 > CONFIG_SYS_SPL_MALLOC=3Dy > @@ -88,12 +87,9 @@ CONFIG_DM_PCA953X=3Dy > CONFIG_DM_I2C=3Dy > CONFIG_SUPPORT_EMMC_BOOT=3Dy > CONFIG_MMC_IO_VOLTAGE=3Dy > -CONFIG_SPL_MMC_IO_VOLTAGE=3Dy > CONFIG_MMC_UHS_SUPPORT=3Dy > -CONFIG_SPL_MMC_UHS_SUPPORT=3Dy > CONFIG_MMC_HS400_ES_SUPPORT=3Dy > CONFIG_MMC_HS400_SUPPORT=3Dy > -CONFIG_SPL_MMC_HS400_SUPPORT=3Dy > CONFIG_FSL_USDHC=3Dy > CONFIG_MTD=3Dy > CONFIG_DM_MTD=3Dy > @@ -113,14 +109,12 @@ CONFIG_PINCTRL_IMX8M=3Dy > CONFIG_POWER_DOMAIN=3Dy > CONFIG_IMX8M_POWER_DOMAIN=3Dy > CONFIG_DM_PMIC=3Dy > +# CONFIG_SPL_PMIC_CHILDREN is not set > CONFIG_DM_PMIC_BD71837=3Dy > CONFIG_SPL_DM_PMIC_BD71837=3Dy > CONFIG_DM_REGULATOR=3Dy > -CONFIG_SPL_DM_REGULATOR=3Dy > CONFIG_DM_REGULATOR_BD71837=3Dy > -CONFIG_SPL_DM_REGULATOR_BD71837=3Dy > CONFIG_DM_REGULATOR_FIXED=3Dy > -CONFIG_SPL_DM_REGULATOR_FIXED=3Dy > CONFIG_DM_REGULATOR_GPIO=3Dy > CONFIG_DM_SERIAL=3Dy > CONFIG_MXC_UART=3Dy Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D