From mboxrd@z Thu Jan 1 00:00:00 1970 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 E3DA3C433F5 for ; Sat, 29 Jan 2022 15:25:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 59B6483874; Sat, 29 Jan 2022 16:23:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="N7fXHmxp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 960AD83563; Sat, 29 Jan 2022 16:23:30 +0100 (CET) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 8666B83804 for ; Sat, 29 Jan 2022 16:23:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.bossman075@gmail.com Received: by mail-qk1-x72e.google.com with SMTP id w8so8167866qkw.8 for ; Sat, 29 Jan 2022 07:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=su6bGbPD0aFvrcYF4bfKLnQuoCs//gX/9uDW7tDhDmY=; b=N7fXHmxpyeV3Xqwgm+1JewI61Lvr06r0q39Zv+3YR/caBWNy290ZSQHFsHYfjGh5P7 mF9kLnRUBg9f6H2JD89/W1tUTKHm+W1Ye1FJGWd+SyFma9ltyWpzqUbUroXUNnFWC0nT 3JGMHS8gJh9OH/b1jaqzV1DInyncucfl/+2cPCGyXMmExxjRSfLFE2Ae41McnMyE+MPJ 00ygYO4zGLTh6hqrcf5FgPps/pI/mN3JLMGnw5kUvIrdB58AuzBBeLDlNCxOiA0V4ba/ y5G+E+PO+aJ7JA4t8WC+j2lEbEu1JP1mXuoHN+7KsjmTwncq7OBbhW1mXmxXG7VHqiDp encA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=su6bGbPD0aFvrcYF4bfKLnQuoCs//gX/9uDW7tDhDmY=; b=SsTlc1RI9EbQ88oH68o8ddTC4EUzPyttkv0faCBD/xmDf0ldD/JS+Gjoeg/HV32CHl Vy4K1R7bg7zI+Yr5h2zvHn2jpLXzLqfXJuCdn96y2Y+bezs7ryLSIIdJTsX8ZMkaQF3a aguiynWsT279GWBDt6iWSpBjoUklagNIJiaIGKB1dzaI5EhCNnBX2v0EbGj7E5ftGkz+ kvTf8mKYaHPZ3MTtletJJgoZ67HpTscsK7VogTZE1gb4bomVN0nKkvtI6jma92B7KpWw 5i2/SclF/8kuBYi+pBq9d5JnNqM4uYudfJ/NVUEwqI25HQdHf52GpX5q3F5QS1RX/m5k sRhg== X-Gm-Message-State: AOAM530+dpIa9XDgoCeubr0fVfgKBOFSY51rBpmkOGxyV9HGI+wSytYk SzxpFGGY2EfrQ+j5mAmjUgJnzC3DKak= X-Google-Smtp-Source: ABdhPJxlEVS3vtAcKCYqgjVb3Akugu04DlI1O7sJssUckfOzfOlSGvxFMV07sgpG2AxLnuSLfJIyNg== X-Received: by 2002:a37:ac16:: with SMTP id e22mr8717892qkm.684.1643469806179; Sat, 29 Jan 2022 07:23:26 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id c127sm5063124qkf.36.2022.01.29.07.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 07:23:25 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, andre.przywara@arm.com, hdegoede@redhat.com, sjg@chromium.org, icenowy@aosc.io, marek.behun@nic.cz, festevam@denx.de, narmstrong@baylibre.com, tharvey@gateworks.com, christianshewitt@gmail.com, pbrobinson@gmail.com, jernej.skrabec@gmail.com, hs@denx.de, samuel@sholland.org, arnaud.ferraris@gmail.com, giulio.benetti@benettiengineering.com, Mr.Bossman075@gmail.com, thirtythreeforty@gmail.com Subject: [PATCH v3 10/10] configs: sunxi: Add support for Lichee Pi Nano Date: Sat, 29 Jan 2022 10:23:09 -0500 Message-Id: <20220129152309.1567937-11-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129152309.1567937-1-Mr.Bossman075@gmail.com> References: <20220129152309.1567937-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Add SKIP_LOWLEVEL_INIT_ONLY * Remove spi defconfig V2->V3: * Move SYS_MALLOC_F_LEN to kconf and format it * Move SYS_LOAD_ADDR to kconf and format it * Move SYS_TEXT_BASE to kconf and format it --- Kconfig | 8 +++++--- boot/Kconfig | 7 ++++--- configs/licheepi_nano_defconfig | 11 +++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 configs/licheepi_nano_defconfig diff --git a/Kconfig b/Kconfig index c46f4fce86..ef4e350ea8 100644 --- a/Kconfig +++ b/Kconfig @@ -246,9 +246,10 @@ config SYS_MALLOC_F_LEN config SYS_MALLOC_LEN hex "Define memory for Dynamic allocation" default 0x2000000 if ARCH_ROCKCHIP || ARCH_OMAP2PLUS || ARCH_MESON - default 0x4020000 if ARCH_SUNXI && !MACH_SUN8I_V3S default 0x200000 if ARCH_BMIPS || X86 - default 0x220000 if ARCH_SUNXI && MACH_SUN8I_V3S + default 0x120000 if MACH_SUNIV + default 0x220000 if MACH_SUN8I_V3S + default 0x4020000 if ARCH_SUNXI default 0x400000 help This defines memory to be allocated for Dynamic allocation @@ -391,8 +392,9 @@ config SYS_LOAD_ADDR hex "Address in memory to use by default" default 0x01000000 if ARCH_SOCFPGA default 0x02000000 if PPC || X86 + default 0x81000000 if MACH_SUNIV default 0x22000000 if MACH_SUN9I - default 0x42000000 if ARCH_SUNXI && !MACH_SUN9I + default 0x42000000 if ARCH_SUNXI default 0x82000000 if ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3 default 0x82000000 if ARCH_MX6 && (MX6SL || MX6SLL || MX6SX || MX6UL || MX6ULL) default 0x12000000 if ARCH_MX6 && !(MX6SL || MX6SLL || MX6SX || MX6UL || MX6ULL) diff --git a/boot/Kconfig b/boot/Kconfig index f1ce576ab2..d16acfe563 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -351,9 +351,10 @@ config SYS_TEXT_BASE depends on HAVE_SYS_TEXT_BASE default 0x0 if POSITION_INDEPENDENT default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3 - default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S - default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I - default 0x42e00000 if ARCH_SUNXI && MACH_SUN8I_V3S + default 0x81700000 if MACH_SUNIV + default 0x2a000000 if MACH_SUN9I + default 0x42e00000 if MACH_SUN8I_V3S + default 0x4a000000 if ARCH_SUNXI hex "Text Base" help The address in memory that U-Boot will be running from, initially. diff --git a/configs/licheepi_nano_defconfig b/configs/licheepi_nano_defconfig new file mode 100644 index 0000000000..ecec869d18 --- /dev/null +++ b/configs/licheepi_nano_defconfig @@ -0,0 +1,11 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUNIV=y +CONFIG_SKIP_LOWLEVEL_INIT_ONLY=y +CONFIG_SPL_SKIP_LOWLEVEL_INIT_ONLY=y +CONFIG_DRAM_CLK=156 +CONFIG_SYS_DCACHE_OFF=y +CONFIG_DRAM_ZQ=0 +# CONFIG_VIDEO_SUNXI is not set +CONFIG_DEFAULT_DEVICE_TREE="suniv-f1c100s-licheepi-nano" +CONFIG_SPL=y -- 2.34.1