From patchwork Mon Jul 29 14:01:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1138384 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="DKBWGhS0"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45y1bW4Y1mz9sBt for ; Tue, 30 Jul 2019 00:02:31 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 50CB3C21E0D; Mon, 29 Jul 2019 14:02:20 +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_MSPIKE_H2, 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 5C959C21DF8; Mon, 29 Jul 2019 14:02:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 32971C21D56; Mon, 29 Jul 2019 14:02:06 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id E0F2BC21CB6 for ; Mon, 29 Jul 2019 14:02:05 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id a15so53968109wmj.5 for ; Mon, 29 Jul 2019 07:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wTV8dDBakcJFdBEVpeUpqpvckcgnwi38dEviNYI7iUc=; b=DKBWGhS0t2W0zjsIQjNjrbCWzApBJwkQWv6Pa8D4RMDzXcGgt3LThGFePXou6yrAkR pAC/yYZtu9/5xk6jhHbFeQos21OHpEnduQydnp5yZl4yEcB0UwWwl/SQ3ZJj4ggqngHN /AAQm7RFtM6N+iNOqndlZfSwmugIkJ2BXLrqGthmQpER3xpZ0bkUV0ZelcCJkgWC9dJB zjMgtY7GpQmSFiouo+w7iKj6LfZ3JPCeN2WPCnWF1sPR30jEg77nVidBnhj/Q7BqGYxl ag0GDoGUbc66fhhCLlt3D/aVJTYZ9KQWKM76SMloLQZNp3jIUCt7Zje6oJobLdPNqrJ+ tMsQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wTV8dDBakcJFdBEVpeUpqpvckcgnwi38dEviNYI7iUc=; b=PwlGSYzLXJNI14t7n4iHorpSMKr6BVJgROt3GCykkFQ9631Ys8OgM7LzGNkSg+1Dbs fXSzuOjkyI2Mt/3+JWZWK1K+UIfH2DOTjZTaziTLPc4ZFn6Y1meJS6GuS0jDxFjatEvc LPsRI4Y9w2S7rcdDVtTV94VDqg/XIho8dg1s8ltU4uqtMqnqJ964k7r9Pp9bfc91Ovzq bbaKeVdirpht9LE/slQPiaE5/OjNhBmAupmGZTylUVbZyWFYcVfGb2osWlGNFrmW9bTN KyehpRfjH6EQfoI9KkwQrTRbhCaJAPKzuEfpv0ZDup3y5PNxbakQHtBv+Mv10hpQs4Xv Jvzw== X-Gm-Message-State: APjAAAWzGLiL7u7omHbuvKXw1N2Hh79DpEvntAIKGhx8ht17WWhh9CYj m87Yv6J6d8VvfMdplEKshB+tQ3BzDz8= X-Google-Smtp-Source: APXvYqxMpSzXIN8wpJIoWjP2ZTD7w/L1e771AUEkwcfsIm5rm/3h7KthEjmQSDEwwm2ZsOqp4t5Dlg== X-Received: by 2002:a1c:9cd1:: with SMTP id f200mr97442369wme.157.1564408925086; Mon, 29 Jul 2019 07:02:05 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f70sm79397528wme.22.2019.07.29.07.02.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:02:04 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Mon, 29 Jul 2019 16:01:54 +0200 Message-Id: <20190729140158.6954-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729140158.6954-1-narmstrong@baylibre.com> References: <20190729140158.6954-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 1/5] ARM: dts: Import Amlogic G12A SEI510 DT from Linux 5.3-rc1 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Import Linux 5.2-rc1 sei510 DT from 5f9e832c1370 ("Linus 5.3-rc1") for the meson-g12a-sei510 board. --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-g12a-sei510.dts | 502 +++++++++++++++++++++++++++++ 2 files changed, 503 insertions(+) create mode 100644 arch/arm/dts/meson-g12a-sei510.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 2baa368215..fdb0d66e97 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -136,6 +136,7 @@ dtb-$(CONFIG_ARCH_MESON) += \ meson-gxm-khadas-vim2.dtb \ meson-axg-s400.dtb \ meson-g12a-u200.dtb \ + meson-g12a-sei510.dtb \ meson-g12b-odroid-n2.dtb dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \ tegra20-medcom-wide.dtb \ diff --git a/arch/arm/dts/meson-g12a-sei510.dts b/arch/arm/dts/meson-g12a-sei510.dts new file mode 100644 index 0000000000..c7a8736885 --- /dev/null +++ b/arch/arm/dts/meson-g12a-sei510.dts @@ -0,0 +1,502 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + */ + +/dts-v1/; + +#include "meson-g12a.dtsi" +#include +#include +#include +#include + +/ { + compatible = "seirobotics,sei510", "amlogic,g12a"; + model = "SEI Robotics SEI510"; + + adc_keys { + compatible = "adc-keys"; + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + + button-onoff { + label = "On/Off"; + linux,code = ; + press-threshold-microvolt = <1700000>; + }; + }; + + aliases { + serial0 = &uart_AO; + ethernet0 = ðmac; + }; + + mono_dac: audio-codec-0 { + compatible = "maxim,max98357a"; + #sound-dai-cells = <0>; + sound-name-prefix = "U16"; + sdmode-gpios = <&gpio GPIOX_8 GPIO_ACTIVE_HIGH>; + }; + + dmics: audio-codec-1 { + #sound-dai-cells = <0>; + compatible = "dmic-codec"; + num-channels = <2>; + wakeup-delay-ms = <50>; + status = "okay"; + sound-name-prefix = "MIC"; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + cvbs-connector { + compatible = "composite-video-connector"; + + port { + cvbs_connector_in: endpoint { + remote-endpoint = <&cvbs_vdac_out>; + }; + }; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_tx_tmds_out>; + }; + }; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + ao_5v: regulator-ao_5v { + compatible = "regulator-fixed"; + regulator-name = "AO_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + dc_in: regulator-dc_in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + emmc_1v8: regulator-emmc_1v8 { + compatible = "regulator-fixed"; + regulator-name = "EMMC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + + vddao_3v3: regulator-vddao_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + vddao_3v3_t: regultor-vddao_3v3_t { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3_T"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vddao_3v3>; + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + }; + + vddio_ao1v8: regulator-vddio_ao1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + + reserved-memory { + /* TEE Reserved Memory */ + bl32_reserved: bl32@5000000 { + reg = <0x0 0x05300000 0x0 0x2000000>; + no-map; + }; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; + clocks = <&wifi32k>; + clock-names = "ext_clock"; + }; + + wifi32k: wifi32k { + compatible = "pwm-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "G12A-SEI510"; + audio-aux-devs = <&tdmout_a>, <&tdmout_b>, + <&tdmin_a>, <&tdmin_b>; + audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0", + "TDMOUT_A IN 1", "FRDDR_B OUT 0", + "TDMOUT_A IN 2", "FRDDR_C OUT 0", + "TDM_A Playback", "TDMOUT_A OUT", + "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT", + "TODDR_A IN 4", "PDM Capture", + "TODDR_B IN 4", "PDM Capture", + "TODDR_C IN 4", "PDM Capture", + "TDMIN_A IN 0", "TDM_A Capture", + "TDMIN_A IN 3", "TDM_A Loopback", + "TDMIN_B IN 0", "TDM_A Capture", + "TDMIN_B IN 3", "TDM_A Loopback", + "TDMIN_A IN 1", "TDM_B Capture", + "TDMIN_A IN 4", "TDM_B Loopback", + "TDMIN_B IN 1", "TDM_B Capture", + "TDMIN_B IN 4", "TDM_B Loopback", + "TODDR_A IN 0", "TDMIN_A OUT", + "TODDR_B IN 0", "TDMIN_A OUT", + "TODDR_C IN 0", "TDMIN_A OUT", + "TODDR_A IN 1", "TDMIN_B OUT", + "TODDR_B IN 1", "TDMIN_B OUT", + "TODDR_C IN 1", "TDMIN_B OUT"; + + assigned-clocks = <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + assigned-clock-parents = <0>, <0>, <0>; + assigned-clock-rates = <294912000>, + <270950400>, + <393216000>; + status = "okay"; + + dai-link-0 { + sound-dai = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + dai-link-3 { + sound-dai = <&toddr_a>; + }; + + dai-link-4 { + sound-dai = <&toddr_b>; + }; + + dai-link-5 { + sound-dai = <&toddr_c>; + }; + + /* internal speaker interface */ + dai-link-6 { + sound-dai = <&tdmif_a>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + mclk-fs = <256>; + + codec-0 { + sound-dai = <&mono_dac>; + }; + + codec-1 { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; + }; + }; + + /* 8ch hdmi interface */ + dai-link-7 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec@0 { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* internal digital mics */ + dai-link-8 { + sound-dai = <&pdm>; + + codec { + sound-dai = <&dmics>; + }; + }; + + /* hdmi glue */ + dai-link-9 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&cec_AO { + pinctrl-0 = <&cec_ao_a_h_pins>; + pinctrl-names = "default"; + status = "disabled"; + hdmi-phandle = <&hdmi_tx>; +}; + +&cecb_AO { + pinctrl-0 = <&cec_ao_b_h_pins>; + pinctrl-names = "default"; + status = "okay"; + hdmi-phandle = <&hdmi_tx>; +}; + +&clkc_audio { + status = "okay"; +}; + +&cvbs_vdac_port { + cvbs_vdac_out: endpoint { + remote-endpoint = <&cvbs_connector_in>; + }; +}; + +ðmac { + status = "okay"; + phy-handle = <&internal_ephy>; + phy-mode = "rmii"; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&hdmi_tx { + status = "okay"; + pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; + pinctrl-names = "default"; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; +}; + +&i2c3 { + status = "okay"; + pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; + pinctrl-names = "default"; +}; + +&pwm_ef { + status = "okay"; + pinctrl-0 = <&pwm_e_pins>; + pinctrl-names = "default"; + clocks = <&xtal>; + clock-names = "clkin0"; +}; + +&pdm { + pinctrl-0 = <&pdm_din0_z_pins>, <&pdm_din1_z_pins>, + <&pdm_din2_z_pins>, <&pdm_din3_z_pins>, + <&pdm_dclk_z_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&saradc { + status = "okay"; + vref-supply = <&vddio_ao1v8>; +}; + +/* SDIO */ +&sd_emmc_a { + status = "okay"; + pinctrl-0 = <&sdio_pins>; + pinctrl-1 = <&sdio_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + #address-cells = <1>; + #size-cells = <0>; + + bus-width = <4>; + cap-sd-highspeed; + sd-uhs-sdr50; + max-frequency = <100000000>; + + non-removable; + disable-wp; + + mmc-pwrseq = <&sdio_pwrseq>; + + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddio_ao1v8>; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + +/* SD card */ +&sd_emmc_b { + status = "okay"; + pinctrl-0 = <&sdcard_c_pins>; + pinctrl-1 = <&sdcard_clk_gate_c_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <50000000>; + disable-wp; + + cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddao_3v3>; +}; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; + pinctrl-1 = <&emmc_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + max-frequency = <200000000>; + non-removable; + disable-wp; + + mmc-pwrseq = <&emmc_pwrseq>; + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&emmc_1v8>; +}; + +&tdmif_a { + pinctrl-0 = <&tdm_a_dout0_pins>, <&tdm_a_fs_pins>, <&tdm_a_sclk_pins>; + pinctrl-names = "default"; + status = "okay"; + + assigned-clocks = <&clkc_audio AUD_CLKID_TDM_SCLK_PAD0>, + <&clkc_audio AUD_CLKID_TDM_LRCLK_PAD0>; + assigned-clock-parents = <&clkc_audio AUD_CLKID_MST_A_SCLK>, + <&clkc_audio AUD_CLKID_MST_A_LRCLK>; + assigned-clock-rates = <0>, <0>; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmin_a { + status = "okay"; +}; + +&tdmin_b { + status = "okay"; +}; + +&tdmout_a { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&toddr_a { + status = "okay"; +}; + +&toddr_b { + status = "okay"; +}; + +&toddr_c { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; + +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + vbat-supply = <&vddao_3v3>; + vddio-supply = <&vddio_ao1v8>; + }; +}; + +&uart_AO { + status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; +}; + +&usb { + status = "okay"; + dr_mode = "host"; +}; From patchwork Mon Jul 29 14:01:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1138386 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="SYMOGom2"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45y1cg5Nf4z9sBt for ; Tue, 30 Jul 2019 00:03:31 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 177ADC21E29; Mon, 29 Jul 2019 14:02:39 +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=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 BD6EDC21DF9; Mon, 29 Jul 2019 14:02:10 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E8A45C21DAF; Mon, 29 Jul 2019 14:02:06 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by lists.denx.de (Postfix) with ESMTPS id 956E9C21CB6 for ; Mon, 29 Jul 2019 14:02:06 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id c2so58785340wrm.8 for ; Mon, 29 Jul 2019 07:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=llDFVMszhLET9cQ8bLpsax0pN2u7XyZFv9kX4KLbGTQ=; b=SYMOGom2k1I/kFOxD10u9oWgHwLdBvNDXxAEva1n12dD49gnDS2DccMxpW1GywXJEm c+QHsf3Zx43LHl1zwixuc8F35KeQmtm5nHyeU8ru8TkPBZ/sxvAsfOKQl9iDwMDDJIy6 BRT+5TMb1/xht2TSvkY+yD1iuG0AyoM4xEu3hTw+Hy0khoS9Myuq+pAYJ21pmi0UDnsU KcBpoWPi3hJ66P2ZVewh0rd1G7mW9dhsuxZUrBREFU4J+z27ioRZkZrLGMgo8l/qkFJt Z22lJ+viau1jQh80uUpb5vPjjIrDI0PA8I//Wq/48yompnU6hPqgHykwEsNTZ7D1RG24 nM8g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=llDFVMszhLET9cQ8bLpsax0pN2u7XyZFv9kX4KLbGTQ=; b=Jd0Bl5ZzhAiRedjOlVM+LEABU3+2+kki/C7M1boFCMAOwucLwm9uB157UrFja8kwXm FS19fRyTTBpxMyUIvYIgd+P9RBasoUuSNkrf3XrUnt8rYdWFmsjw8SltPNt9MebGlzaw 3QCCXLYPHs41ip11N3wT70E7WVpWagYzB0uTwO4Q3jfa81DR5tY1sKsrC5Ir5VFUB3z4 rnBZYTzkFvUgO8IDisTKZUugLN2OMwDdT0iX30PrM2iVbGg5Puzc6DF7KDPvEoWSj/jL s5tqg3OgLOXOI4dpJuSo/D6uTCX5A8Hs0Ypz9XGKzIWO3WulZHMFzQ/9fPCGXLqzdL3j gr9w== X-Gm-Message-State: APjAAAXJjGftw89hP94vPj0CGPE5vkh6mUXXIjTsmjeeczkiJJiPJg53 XDEI1zJKbRtGNfNlPIjyW7eGGShL+3s= X-Google-Smtp-Source: APXvYqzlRa/xDOdxFJd/ZuDq8cpYQYZm9ZSPB28pD/dLFljInQwFxrXfJb0xBhTun4y7IDDs3gx8UA== X-Received: by 2002:a5d:5012:: with SMTP id e18mr255958wrt.166.1564408925851; Mon, 29 Jul 2019 07:02:05 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f70sm79397528wme.22.2019.07.29.07.02.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:02:05 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Mon, 29 Jul 2019 16:01:55 +0200 Message-Id: <20190729140158.6954-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729140158.6954-1-narmstrong@baylibre.com> References: <20190729140158.6954-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 2/5] configs: meson64: permit redefining ENV_SIZE 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Permit redefining ENV_SIZE for board specific configs. --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index d82a674270..e707a1893f 100644 --- a/include/configs/meson64.h +++ b/include/configs/meson64.h @@ -38,7 +38,9 @@ #define CONFIG_CPU_ARMV8 #define CONFIG_REMAKE_ELF +#ifndef CONFIG_ENV_SIZE #define CONFIG_ENV_SIZE 0x2000 +#endif #define CONFIG_SYS_MAXARGS 32 #define CONFIG_SYS_MALLOC_LEN (32 << 20) #define CONFIG_SYS_CBSIZE 1024 From patchwork Mon Jul 29 14:01:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1138385 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="YWyKyXOd"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45y1c56D6kz9sBt for ; Tue, 30 Jul 2019 00:03:01 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 52116C21E18; Mon, 29 Jul 2019 14:02:50 +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_MSPIKE_H2, T_DKIM_INVALID,WEIRD_PORT 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 5B539C21E15; Mon, 29 Jul 2019 14:02:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 10667C21E38; Mon, 29 Jul 2019 14:02:10 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 6EC60C21DF9 for ; Mon, 29 Jul 2019 14:02:07 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n4so62072412wrs.3 for ; Mon, 29 Jul 2019 07:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lk5+d1YJGA0NPgXjAk9kb3oikbdPgWanFznPmvPy0hA=; b=YWyKyXOd5y44ljZfqFbKywq4d22x2ZWnhFWZVHFdjRZpuh1FDpG3qi+dRyaq5Uh4ub a3Wy7xbu+CY2gdbxydsU6bRodPD4NeyTRZjFQbku3jtuOjqem60/ArSxCe46LTC7gG7p niDGQku3rasC02AI03e2q9BfEaUyuYS7Kwz+N+bYjGEZZnr8j+pE37zMKo/pi2aC9rtC m9e/x+RMb1JjnngN+8vjAapQsPvlUO9ScXlGq/yGpZleHwKegqNfOAGpm/hmuMyylci2 f8SBbCoZ5KjZGu3jQD08p0ZxGO4BT1VbjSLHFFicKii/96wERdzHEz8djSJdGWsxl3OJ nexg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lk5+d1YJGA0NPgXjAk9kb3oikbdPgWanFznPmvPy0hA=; b=C9mgyPel07FLxhR0P6TQ1P1/j7x7uVcjm0oesxa58iKvG5Li75LA/peQT41cGq+wWe Z2VWah79g6cMZo0p4X/jo1fkYQu4usi3KGotV4OX95fEnyGnvzKqNieWDxv+cZQPeKng TCA8EwLcFu3grs9AipNQpW8FTe2zSCoRH321imyMZIGkgoO1H0AjLjL14GiURkWgy139 Gmh6swLqf/uZHG7LJugq84IrLen6QuT0ZCaVrXxnnGo7aRFuQxzNmqIjyhRu/wy+mrrp e9giHBETMTmJwivCsCDZNVrvJcXpvc6Vspc9hDKNUEeZ8kXxdpqU05/Lk9wWYd8NpOq/ Q3jQ== X-Gm-Message-State: APjAAAV9fPXeNaPSr8Y5YKENBnc+3tlu3d4qLL+o1n0omVq0LiVdilno 2gUNa9QngYlaIncn4Q3STPpCtfRxuGc= X-Google-Smtp-Source: APXvYqy0fKEPD1JYjxedKmMnZL+ZUKq2foZEixDkxqO1gfspSol8dfZuxgsbpwkif6JEcnnD4UJDDQ== X-Received: by 2002:adf:e4cc:: with SMTP id v12mr121285950wrm.22.1564408926543; Mon, 29 Jul 2019 07:02:06 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f70sm79397528wme.22.2019.07.29.07.02.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:02:06 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Mon, 29 Jul 2019 16:01:56 +0200 Message-Id: <20190729140158.6954-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729140158.6954-1-narmstrong@baylibre.com> References: <20190729140158.6954-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 3/5] boards: meson: add g12a sei510 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jerome Brunet The SEI510 board is based on the Amlogic S905X2 SoC from the Amlogic G12A SoC family. The board has the following specifications : - Amlogic S905X2 ARM Cortex-A53 quad-core SoC - XGB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - eMMC - SDcard - Infrared receiver - SDIO WiFi Module The board default behaviour is for booting Android and triggers fastboot on recovery or reboot mode. USB vendor ID (used by fastboot) is 0x18d1 (Google) for default udev rules for existing android users work out of the box. Signed-off-by: Kevin Hilman Signed-off-by: Jerome Brunet Signed-off-by: Guillaume La Roque --- arch/arm/include/asm/arch-meson/sm.h | 18 ++++ arch/arm/mach-meson/sm.c | 155 +++++++++++++++++++++++++++ board/amlogic/sei510/MAINTAINERS | 5 + board/amlogic/sei510/Makefile | 6 ++ board/amlogic/sei510/README | 123 +++++++++++++++++++++ board/amlogic/sei510/sei510.c | 26 +++++ configs/sei510_defconfig | 74 +++++++++++++ include/configs/sei510.h | 137 +++++++++++++++++++++++ 8 files changed, 544 insertions(+) create mode 100644 board/amlogic/sei510/MAINTAINERS create mode 100644 board/amlogic/sei510/Makefile create mode 100644 board/amlogic/sei510/README create mode 100644 board/amlogic/sei510/sei510.c create mode 100644 configs/sei510_defconfig create mode 100644 include/configs/sei510.h diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h index 60d04ae228..6ae52cc584 100644 --- a/arch/arm/include/asm/arch-meson/sm.h +++ b/arch/arm/include/asm/arch-meson/sm.h @@ -6,7 +6,25 @@ #ifndef __MESON_SM_H__ #define __MESON_SM_H__ +enum { + REBOOT_REASON_COLD = 0, + REBOOT_REASON_NORMAL = 1, + REBOOT_REASON_RECOVERY = 2, + REBOOT_REASON_UPDATE = 3, + REBOOT_REASON_FASTBOOT = 4, + REBOOT_REASON_SUSPEND_OFF = 5, + REBOOT_REASON_HIBERNATE = 6, + REBOOT_REASON_BOOTLOADER = 7, + REBOOT_REASON_SHUTDOWN_REBOOT = 8, + REBOOT_REASON_RPMBP = 9, + REBOOT_REASON_CRASH_DUMP = 11, + REBOOT_REASON_KERNEL_PANIC = 12, + REBOOT_REASON_WATCHDOG_REBOOT = 13, +}; + ssize_t meson_sm_read_efuse(uintptr_t offset, void *buffer, size_t size); +int meson_sm_get_serial(void *buffer, size_t size); +int meson_sm_get_reboot_reason(void); #define SM_SERIAL_SIZE 12 diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index 05b7f0bdf2..51a697df4a 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -8,6 +8,10 @@ #include #include #include +#include +#include +#include +#include #define FN_GET_SHARE_MEM_INPUT_BASE 0x82000020 #define FN_GET_SHARE_MEM_OUTPUT_BASE 0x82000021 @@ -77,3 +81,154 @@ int meson_sm_get_serial(void *buffer, size_t size) return 0; } + +#define AO_SEC_SD_CFG15 0xfc +#define REBOOT_REASON_MASK GENMASK(15, 12) + +int meson_sm_get_reboot_reason(void) +{ + struct regmap *regmap; + int nodeoffset; + ofnode node; + unsigned int reason; + + /* find the offset of compatible node */ + nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, + "amlogic,meson-gx-ao-secure"); + if (nodeoffset < 0) { + printf("%s: failed to get amlogic,meson-gx-ao-secure\n", + __func__); + return -ENODEV; + } + + /* get regmap from the syscon node */ + node = offset_to_ofnode(nodeoffset); + regmap = syscon_node_to_regmap(node); + if (IS_ERR(regmap)) { + printf("%s: failed to get regmap\n", __func__); + return -EINVAL; + } + + regmap_read(regmap, AO_SEC_SD_CFG15, &reason); + + /* The SMC call is not used, we directly use AO_SEC_SD_CFG15 */ + return FIELD_GET(REBOOT_REASON_MASK, reason); +} + +static int do_sm_serial(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) +{ + ulong address; + int ret; + + if (argc < 2) + return CMD_RET_USAGE; + + address = simple_strtoul(argv[1], NULL, 0); + + ret = meson_sm_get_serial((void *)address, SM_CHIP_ID_SIZE); + if (ret) + return CMD_RET_FAILURE; + + return CMD_RET_SUCCESS; +} + +#define MAX_REBOOT_REASONS 14 + +static const char *reboot_reasons[MAX_REBOOT_REASONS] = { + [REBOOT_REASON_COLD] = "cold_boot", + [REBOOT_REASON_NORMAL] = "normal", + [REBOOT_REASON_RECOVERY] = "recovery", + [REBOOT_REASON_UPDATE] = "update", + [REBOOT_REASON_FASTBOOT] = "fastboot", + [REBOOT_REASON_SUSPEND_OFF] = "suspend_off", + [REBOOT_REASON_HIBERNATE] = "hibernate", + [REBOOT_REASON_BOOTLOADER] = "bootloader", + [REBOOT_REASON_SHUTDOWN_REBOOT] = "shutdown_reboot", + [REBOOT_REASON_RPMBP] = "rpmbp", + [REBOOT_REASON_CRASH_DUMP] = "crash_dump", + [REBOOT_REASON_KERNEL_PANIC] = "kernel_panic", + [REBOOT_REASON_WATCHDOG_REBOOT] = "watchdog_reboot", +}; + +static int do_sm_reboot_reason(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) +{ + const char *reason_str; + char *destarg = NULL; + int reason; + + if (argc > 1) + destarg = argv[1]; + + reason = meson_sm_get_reboot_reason(); + if (reason < 0) + return CMD_RET_FAILURE; + + if (reason >= MAX_REBOOT_REASONS || + !reboot_reasons[reason]) + reason_str = "unknown"; + else + reason_str = reboot_reasons[reason]; + + if (destarg) + env_set(destarg, reason_str); + else + printf("reboot reason: %s (%x)\n", reason_str, reason); + + return CMD_RET_SUCCESS; +} + +static int do_sm_efuse_read(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) +{ + ulong offset; + ulong size; + ulong dest; + + if (argc < 4) + return CMD_RET_FAILURE; + + offset = simple_strtoul(argv[1], NULL, 0); + size = simple_strtoul(argv[2], NULL, 0); + dest = simple_strtoul(argv[3], NULL, 0); + + if (meson_sm_read_efuse(offset, (void *)dest, size) != -1) + return CMD_RET_SUCCESS; + + return CMD_RET_FAILURE; +} + +static cmd_tbl_t cmd_sm_sub[] = { + U_BOOT_CMD_MKENT(serial, 2, 1, do_sm_serial, "", ""), + U_BOOT_CMD_MKENT(reboot_reason, 1, 1, do_sm_reboot_reason, "", ""), + U_BOOT_CMD_MKENT(efuse_read, 4, 1, do_sm_efuse_read, "", ""), +}; + +static int do_sm(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) +{ + cmd_tbl_t *c; + + if (argc < 2) + return CMD_RET_USAGE; + + /* Strip off leading 'sm' command argument */ + argc--; + argv++; + + c = find_cmd_tbl(argv[0], &cmd_sm_sub[0], ARRAY_SIZE(cmd_sm_sub)); + + if (c) + return c->cmd(cmdtp, flag, argc, argv); + else + return CMD_RET_USAGE; +} + +U_BOOT_CMD( + sm, 5, 0, do_sm, + "Secure Monitor Control", + "serial
- read chip unique id to memory address\n" + "sm reboot_reason [name] - get reboot reason and store to to environment\n" + "sm efuse_read
- read length bytes from efuse offset to memory address" +); diff --git a/board/amlogic/sei510/MAINTAINERS b/board/amlogic/sei510/MAINTAINERS new file mode 100644 index 0000000000..792ae22176 --- /dev/null +++ b/board/amlogic/sei510/MAINTAINERS @@ -0,0 +1,5 @@ +U200 +M: Neil Armstrong +S: Maintained +F: board/amlogic/sei510/ +F: configs/sei510_defconfig diff --git a/board/amlogic/sei510/Makefile b/board/amlogic/sei510/Makefile new file mode 100644 index 0000000000..03399a3849 --- /dev/null +++ b/board/amlogic/sei510/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2016 BayLibre, SAS +# Author: Neil Armstrong + +obj-y := sei510.o diff --git a/board/amlogic/sei510/README b/board/amlogic/sei510/README new file mode 100644 index 0000000000..216ff06093 --- /dev/null +++ b/board/amlogic/sei510/README @@ -0,0 +1,123 @@ +U-Boot for Amlogic SEI510 +======================= + +SEI510 is a custemer board manufactured by SEI Robotics with the following +specifications: + + - Amlogic S905X2 ARM Cortex-A53 quad-core SoC + - 2GB DDR4 SDRAM + - 10/100 Ethernet (Internal PHY) + - 1 x USB 3.0 Host + - eMMC + - SDcard + - Infrared receiver + - SDIO WiFi Module + +Currently the u-boot port supports the following devices: + - serial + - Ethernet + - Regulators + - Clock controller + +u-boot compilation +================== + + > export ARCH=arm + > export CROSS_COMPILE=aarch64-none-elf- + > make sei510_defconfig + > make + +Image creation +============== + +Amlogic doesn't provide sources for the firmware and for tools needed +to create the bootloader image, so it is necessary to obtain them from +the git tree published by the board vendor: + + > wget https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz + > wget https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz + > tar xvfJ gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz + > tar xvfJ gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz + > export PATH=$PWD/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:$PWD/gcc-linaro-arm-none-eabi-4.8-2013.11_linux/bin:$PATH + > git clone https://github.com/BayLibre/u-boot.git -b buildroot-openlinux-20180418 amlogic-u-boot + > cd amlogic-u-boot + > make g12a_u200_v1_defconfig + > make + > export UBOOTDIR=$PWD + +Download the latest Amlogic Buildroot package, and extract it : + > wget http://openlinux2.amlogic.com:8000/ARM/filesystem/Linux_BSP/buildroot_openlinux_kernel_4.9_fbdev_20180706.tar.gz + > tar xfz buildroot_openlinux_kernel_4.9_fbdev_20180706.tar.gz buildroot_openlinux_kernel_4.9_fbdev_20180706/bootloader + > export BRDIR=$PWD/buildroot_openlinux_kernel_4.9_fbdev_20180706 + > export FIPDIR=$BRDIR/bootloader/uboot-repo/fip + +Go back to mainline U-Boot source tree then : + > mkdir fip + + > wget https://github.com/BayLibre/u-boot/releases/download/v2017.11-libretech-cc/blx_fix_g12a.sh -O fip/blx_fix.sh + > cp $UBOOTDIR/build/scp_task/bl301.bin fip/ + > cp $UBOOTDIR/build/board/amlogic/g12a_u200_v1/firmware/acs.bin fip/ + > cp $BRDIR/bootloader/uboot-repo/bl2/bin/g12a/bl2.bin fip/ + > cp $BRDIR/bootloader/uboot-repo/bl30/bin/g12a/bl30.bin fip/ + > cp $BRDIR/bootloader/uboot-repo/bl31_1.3/bin/g12a/bl31.img fip/ + > cp $FIPDIR/g12a/ddr3_1d.fw fip/ + > cp $FIPDIR/g12a/ddr4_1d.fw fip/ + > cp $FIPDIR/g12a/ddr4_2d.fw fip/ + > cp $FIPDIR/g12a/diag_lpddr4.fw fip/ + > cp $FIPDIR/g12a/lpddr4_1d.fw fip/ + > cp $FIPDIR/g12a/lpddr4_2d.fw fip/ + > cp $FIPDIR/g12a/piei.fw fip/ + > cp u-boot.bin fip/bl33.bin + + > sh fip/blx_fix.sh \ + fip/bl30.bin \ + fip/zero_tmp \ + fip/bl30_zero.bin \ + fip/bl301.bin \ + fip/bl301_zero.bin \ + fip/bl30_new.bin \ + bl30 + + > sh fip/blx_fix.sh \ + fip/bl2.bin \ + fip/zero_tmp \ + fip/bl2_zero.bin \ + fip/acs.bin \ + fip/bl21_zero.bin \ + fip/bl2_new.bin \ + bl2 + + > $FIPDIR/g12a/aml_encrypt_g12a --bl30sig --input fip/bl30_new.bin \ + --output fip/bl30_new.bin.g12a.enc \ + --level v3 + > $FIPDIR/g12a/aml_encrypt_g12a --bl3sig --input fip/bl30_new.bin.g12a.enc \ + --output fip/bl30_new.bin.enc \ + --level v3 --type bl30 + > $FIPDIR/g12a/aml_encrypt_g12a --bl3sig --input fip/bl31.img \ + --output fip/bl31.img.enc \ + --level v3 --type bl31 + > $FIPDIR/g12a/aml_encrypt_g12a --bl3sig --input fip/bl33.bin --compress lz4 \ + --output fip/bl33.bin.enc \ + --level v3 --type bl33 + > $FIPDIR/g12a/aml_encrypt_g12a --bl2sig --input fip/bl2_new.bin \ + --output fip/bl2.n.bin.sig + > $FIPDIR/g12a/aml_encrypt_g12a --bootmk \ + --output fip/u-boot.bin \ + --bl2 fip/bl2.n.bin.sig \ + --bl30 fip/bl30_new.bin.enc \ + --bl31 fip/bl31.img.enc \ + --bl33 fip/bl33.bin.enc \ + --ddrfw1 fip/ddr4_1d.fw \ + --ddrfw2 fip/ddr4_2d.fw \ + --ddrfw3 fip/ddr3_1d.fw \ + --ddrfw4 fip/piei.fw \ + --ddrfw5 fip/lpddr4_1d.fw \ + --ddrfw6 fip/lpddr4_2d.fw \ + --ddrfw7 fip/diag_lpddr4.fw \ + --level v3 + +and then write the image to SD with: + + > DEV=/dev/your_sd_device + > dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1 + > dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444 diff --git a/board/amlogic/sei510/sei510.c b/board/amlogic/sei510/sei510.c new file mode 100644 index 0000000000..a92fccd3fd --- /dev/null +++ b/board/amlogic/sei510/sei510.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2016 BayLibre, SAS + * Author: Neil Armstrong + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +int misc_init_r(void) +{ + meson_eth_init(PHY_INTERFACE_MODE_RMII, + MESON_USE_INTERNAL_RMII_PHY); + + meson_generate_serial_ethaddr(); + + env_set("serial#", "AMLG12ASEI510"); + + return 0; +} diff --git a/configs/sei510_defconfig b/configs/sei510_defconfig new file mode 100644 index 0000000000..20534bd6b4 --- /dev/null +++ b/configs/sei510_defconfig @@ -0,0 +1,74 @@ +CONFIG_ARM=y +CONFIG_SYS_CONFIG_NAME="sei510" +CONFIG_SYS_BOARD="sei510" +CONFIG_ARCH_MESON=y +CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_MESON_G12A=y +CONFIG_DEBUG_UART_BASE=0xff803000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_IDENT_STRING=" sei510" +CONFIG_DEBUG_UART=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_OF_BOARD_SETUP=y +CONFIG_MISC_INIT_R=y +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO=y +# CONFIG_CMD_BDI is not set +# CONFIG_CMD_IMI is not set +CONFIG_CMD_GPIO=y +# CONFIG_CMD_LOADS is not set +CONFIG_CMD_MMC=y +CONFIG_CMD_FDT=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_LZ4=y +CONFIG_CMD_REGULATOR=y +CONFIG_OF_CONTROL=y +CONFIG_DEFAULT_DEVICE_TREE="meson-g12a-sei510" +CONFIG_ENV_IS_IN_MMC=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_DM_GPIO=y +CONFIG_DM_MMC=y +CONFIG_MMC_MESON_GX=y +CONFIG_PHY_ADDR_ENABLE=y +CONFIG_PHY_ADDR=8 +CONFIG_DM_ETH=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_MESON_G12A=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_RESET=y +CONFIG_DEBUG_UART_MESON=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_SKIP_INIT=y +CONFIG_MESON_SERIAL=y +CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_USB=y +CONFIG_USB_HOST=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_DOWNLOAD=y +CONFIG_PHY=y +CONFIG_MESON_G12A_USB_PHY=y +CONFIG_DM_USB=y +CONFIG_USB_GADGET_DWC2_OTG=y +CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_MESON_G12A=y +CONFIG_FASTBOOT=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x6000000 +CONFIG_CMD_FASTBOOT=y +CONFIG_CMD_USB=y +CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_USB_GADGET_VENDOR_NUM=0x18d1 +CONFIG_USB_GADGET_PRODUCT_NUM=0xfada +CONFIG_OF_LIBFDT=y +CONFIG_EFI_PARTITION=y +CONFIG_FASTBOOT_CMD_OEM_FORMAT=y +CONFIG_CMD_GPT=y +CONFIG_CMD_PART=y +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=2 diff --git a/include/configs/sei510.h b/include/configs/sei510.h new file mode 100644 index 0000000000..9957902250 --- /dev/null +++ b/include/configs/sei510.h @@ -0,0 +1,137 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Configuration for the SEI510 + * + * Copyright (C) 2019 Baylibre, SAS + * Author: Jerome Brunet + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#define CONFIG_SYS_MMC_ENV_DEV 2 +#define CONFIG_SYS_MMC_ENV_PART 1 +#define CONFIG_ENV_SIZE 0x10000 +#define CONFIG_ENV_OFFSET (-0x10000) + +#define CACHE_UUID "99207ae6-5207-11e9-999e-6f77a3612069;" +#define SYSTEM_UUID "99f9b7ac-5207-11e9-8507-c3c037e393f3;" +#define VENDOR_UUID "9d082802-5207-11e9-954c-cbbce08ba108;" +#define USERDATA_UUID "9b976e42-5207-11e9-8f16-ff47ac594b22;" +#define ROOT_UUID "ddb8c3f6-d94d-4394-b633-3134139cc2e0;" + +#define PARTS_DEFAULT \ + "uuid_disk=${uuid_gpt_disk};" \ + "name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \ + "name=cache,size=256M,uuid=" CACHE_UUID \ + "name=system,size=1536M,uuid=" SYSTEM_UUID \ + "name=vendor,size=256M,uuid=" VENDOR_UUID \ + "name=userdata,size=4746M,uuid=" USERDATA_UUID \ + "name=rootfs,size=-,uuid=" ROOT_UUID + +#define BOOTENV_DEV_FASTBOOT(devtypeu, devtypel, instance) \ + "bootcmd_fastboot=" \ + "sm reboot_reason reason;" \ + "setenv run_fastboot 0;" \ + "if gpt verify mmc ${mmcdev} ${partitions}; then; " \ + "else " \ + "echo Broken MMC partition scheme;" \ + "setenv run_fastboot 1;" \ + "fi;" \ + "if test \"${reason}\" = \"bootloader\" -o " \ + "\"${reason}\" = \"fastboot\"; then " \ + "echo Fastboot asked by reboot reason;" \ + "setenv run_fastboot 1;" \ + "fi;" \ + "if test \"${skip_fastboot}\" -eq 1; then " \ + "echo Fastboot skipped by environment;" \ + "setenv run_fastboot 0;" \ + "fi;" \ + "if test \"${force_fastboot}\" -eq 1; then " \ + "echo Fastboot forced by environment;" \ + "setenv run_fastboot 1;" \ + "fi;" \ + "if test \"${run_fastboot}\" -eq 1; then " \ + "echo Running Fastboot...;" \ + "fastboot 0;" \ + "fi\0" + +#define BOOTENV_DEV_NAME_FASTBOOT(devtypeu, devtypel, instance) \ + "fastboot " + +/* TOFIX: Run actual recovery instead of fastboot */ +#define BOOTENV_DEV_RECOVERY(devtypeu, devtypel, instance) \ + "bootcmd_recovery=" \ + "pinmux dev pinctrl@14;" \ + "pinmux dev pinctrl@40;" \ + "sm reboot_reason reason;" \ + "setenv run_recovery 0;" \ + "if run check_button; then " \ + "echo Recovery button is pressed;" \ + "setenv run_recovery 1;" \ + "elif test \"${reason}\" = \"recovery\" -o " \ + "\"${reason}\" = \"update\"; then " \ + "echo Recovery asked by reboot reason;" \ + "setenv run_recovery 1;" \ + "fi;" \ + "if test \"${skip_recovery}\" -eq 1; then " \ + "echo Recovery skipped by environment;" \ + "setenv run_recovery 0;" \ + "fi;" \ + "if test \"${force_recovery}\" -eq 1; then " \ + "echo Recovery forced by environment;" \ + "setenv run_recovery 1;" \ + "fi;" \ + "if test \"${run_recovery}\" -eq 1; then " \ + "echo Running Recovery...;" \ + "fastboot 0;" \ + "fi\0" + +#define BOOTENV_DEV_NAME_RECOVERY(devtypeu, devtypel, instance) \ + "recovery " + +#define BOOTENV_DEV_SYSTEM(devtypeu, devtypel, instance) \ + "bootcmd_system=" \ + "echo Loading Android boot partition...;" \ + "mmc dev ${mmcdev};" \ + "setenv bootargs ${bootargs} console=${console} androidboot.serialno=${serial#};" \ + "part start mmc ${mmcdev} ${bootpart} boot_start;" \ + "part size mmc ${mmcdev} ${bootpart} boot_size;" \ + "if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \ + "echo Running Android...;" \ + "bootm ${loadaddr};" \ + "fi;" \ + "echo Failed to boot Android...;" \ + "reset\0" + +#define BOOTENV_DEV_NAME_SYSTEM(devtypeu, devtypel, instance) \ + "system " + +#define BOOT_TARGET_DEVICES(func) \ + func(ROMUSB, romusb, na) \ + func(FASTBOOT, fastboot, na) \ + func(RECOVERY, recovery, na) \ + func(SYSTEM, system, na) \ + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "partitions=" PARTS_DEFAULT "\0" \ + "mmcdev=2\0" \ + "bootpart=1\0" \ + "gpio_recovery=88\0" \ + "check_button=gpio input ${gpio_recovery};test $? -eq 0;\0" \ + "console=/dev/ttyAML0\0" \ + "bootargs=no_console_suspend\0" \ + "stdin=" STDIN_CFG "\0" \ + "stdout=" STDOUT_CFG "\0" \ + "stderr=" STDOUT_CFG "\0" \ + "loadaddr=0x01000000\0" \ + "fdt_addr_r=0x01000000\0" \ + "scriptaddr=0x08000000\0" \ + "kernel_addr_r=0x01080000\0" \ + "pxefile_addr_r=0x01080000\0" \ + "ramdisk_addr_r=0x13000000\0" \ + "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" BOOTENV + +#include + +#endif /* __CONFIG_H */ From patchwork Mon Jul 29 14:01:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1138388 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="I5QULaeo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45y1f74BzRz9sML for ; Tue, 30 Jul 2019 00:04:47 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C67DBC21E49; Mon, 29 Jul 2019 14:03:19 +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=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 CF97CC21E2B; Mon, 29 Jul 2019 14:02:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5645FC21E15; Mon, 29 Jul 2019 14:02:10 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id E8101C21DB3 for ; Mon, 29 Jul 2019 14:02:07 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v15so53990537wml.0 for ; Mon, 29 Jul 2019 07:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5bm0WfA6USY8ij3P3Yuv/wGc4d8WlXw4CuY4WHjJL7I=; b=I5QULaeoFiDdfyhA9rR7ShDFa4EGRnN5jPem8pLzbkYbTTsSE44A3PP8EG7dcRO1Nj sD/gf1ykEHbMhspy5qrUYqNVGao1Ybnaw8jy/5lhcv6bd5k9pnMdgUbseqoWIrMsjfoX MjpbbYEr02CwP1/YV9ab15i8CMN1/YVukkXuyFGYVCmO3PMycXNNx7kFkZtL2+qFL+p7 Pmay9WCmQbFjlRpr5mLSu8ffdzTFyuHA7zSrhSzNXYmvtUKfy8CwrUkrlbYeNOIgc0rb +FuFsYpZxr4bJqFobhsEUHWTXvekFrNI8z5uT9s87I1//E5YVPp52K615+1HvNDuE8M/ 7T/A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=5bm0WfA6USY8ij3P3Yuv/wGc4d8WlXw4CuY4WHjJL7I=; b=i0zK1jgXNWU60yqwzyCfpp6st/O18LWSDlyfcMoRruv5PeSMlrnanddiRhcGOP9gj+ KKYRqXyQFR0lAL5sVqKoBzb46yW0nR8n05gI5FfZZki5YT3VEoMhxacmCf1s0vMztTJH vLlFD33T10l0cROdunUea/hqT2n5EGUYbogre03ryZKjcuyhkl8DA4gyTBpjSUvQgriK a3a+Qa2lOQVxkiwAYvP7WpZKLvLtrHnEYtHMd5A/RYgK6rg9sndUsTNHcFncpJ7CgGn3 LSHEY1EuF+acUhKdB0em624wJVGjofs1Rw10+iR1HRkKpsnE6CpuV0pF872ieyZxCVnO q0aw== X-Gm-Message-State: APjAAAX56dk9lJ2Q2GtB7u/dET9U/8A4XidJHEnWSKZML6zZjIJ9A2Ro mFpAzUaLB2kUext29LaWuG5BSTJFPzo= X-Google-Smtp-Source: APXvYqwCAAvjbVQ299fFo5qrXq9S6Kt0TkSyU1y8DvMYeC7gNPa5bXOL7rSJb7NNxqh8Qhy8EFLVIA== X-Received: by 2002:a1c:a6d3:: with SMTP id p202mr102188009wme.26.1564408927184; Mon, 29 Jul 2019 07:02:07 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f70sm79397528wme.22.2019.07.29.07.02.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:02:06 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Mon, 29 Jul 2019 16:01:57 +0200 Message-Id: <20190729140158.6954-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729140158.6954-1-narmstrong@baylibre.com> References: <20190729140158.6954-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 4/5] ARM: meson: Add support for fastboot_set_reboot_flag() 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add support for fastboot_set_reboot_flag() by storing the reboot flag in the common code to be used by the custom PSCI reboot handler. --- arch/arm/mach-meson/board-common.c | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 18383f774e..c39643fc17 100644 --- a/arch/arm/mach-meson/board-common.c +++ b/arch/arm/mach-meson/board-common.c @@ -14,6 +14,11 @@ #include #include +#if CONFIG_IS_ENABLED(FASTBOOT) +#include +#include +#endif + DECLARE_GLOBAL_DATA_PTR; __weak int board_init(void) @@ -142,7 +147,35 @@ int board_late_init(void) return meson_board_late_init(); } +#if CONFIG_IS_ENABLED(FASTBOOT) +static unsigned int reboot_reason = REBOOT_REASON_NORMAL; + +int fastboot_set_reboot_flag() +{ + reboot_reason = REBOOT_REASON_BOOTLOADER; + + printf("Using reboot reason: 0x%x\n", reboot_reason); + + return 0; +} + +void reset_cpu(ulong addr) +{ + struct pt_regs regs; + + regs.regs[0] = ARM_PSCI_0_2_FN_SYSTEM_RESET; + regs.regs[1] = reboot_reason; + + printf("Rebooting with reason: 0x%lx\n", regs.regs[1]); + + smc_call(®s); + + while (1) + ; +} +#else void reset_cpu(ulong addr) { psci_system_reset(); } +#endif From patchwork Mon Jul 29 14:01:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1138387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="lvhi/RfM"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45y1d56Vqcz9sBt for ; Tue, 30 Jul 2019 00:03:53 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 87343C21E2B; Mon, 29 Jul 2019 14:03:28 +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=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 7102FC21E29; Mon, 29 Jul 2019 14:02:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CEDEDC21E29; Mon, 29 Jul 2019 14:02:11 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by lists.denx.de (Postfix) with ESMTPS id 995F0C21E15 for ; Mon, 29 Jul 2019 14:02:08 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id l2so53567821wmg.0 for ; Mon, 29 Jul 2019 07:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FqXboZtnFxPhUhwQdN2RiClNzlD+fBj4287OcP6XIy0=; b=lvhi/RfMQtp6YVYZRAIgI+sBv846akSf7gF/LIFXk6fmVBBFHL8CIQZu11XPy1dNvU Nv/gXJ3+1P42QsjTSyJYvpV4RAy2u8znv+u22d/GDjidcxVVWmU5c39E8ZriBPURfQfI kj7wLBCKzUhKl7tlzTcDQiokW9m7GOlSVlJpzqmfq27r1ne68TJE5pKvwsP5QMDvVAjA ZyWqccwHXXhWf4lyoM2cTqmoEj2skq7lnE9yykuCWE5K6RIgf4u02pFadFZi2nBw26QN RbvvjxBCA5t46r5pkwK3FE7tdYmNy7JQRIH+6StQtZOYtLaTTfIu67+IiUnDJPEtRZok hW2A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FqXboZtnFxPhUhwQdN2RiClNzlD+fBj4287OcP6XIy0=; b=o8SVF5oBdu9AgOg4rq7EhsEXADEfNaF/3rKkIWayjoAPoltFZlKp4E49VNhgpIMRHP GTbyyGC+tiXuPB5h4KPPLdITvzwPQSWXkykRjJikmiNZvhNnY5FY71mz9bX//7OoJ1g/ yQ82pae9zEvz2f663fnv7wYboXm+srj9XPWySiNUS89po+wq6tWmCc+O/Gqno2DTy1+c KRobmsCQ0NJBG5o0sC+VdKbnnAobHjxjMlo8KxoL3fg5gwIhTpVzCiKLadQc5HJ0+Wh1 R2FX2VmQbX2exbOzTyWpbkM0QtF7Y8feQOBMI3K5M70kS9ogKQ05AQ9jzfllZ1N6/cyL ycgg== X-Gm-Message-State: APjAAAWAlwXPI5sCl8dkV1vUByH4l+2k2HY96F1OimB/7oLB3z+0dnUm vrsqfgrCnFbzlKCUOtN+eR2iF5AI3zE= X-Google-Smtp-Source: APXvYqyuVkul0cyuHyD6CUP7ncWuWWmFoTxfIopSdP/9EL8xFs8MNOOFfTcQPVCTSQYzJDmYPZzV4g== X-Received: by 2002:a1c:f409:: with SMTP id z9mr29722067wma.176.1564408927897; Mon, 29 Jul 2019 07:02:07 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f70sm79397528wme.22.2019.07.29.07.02.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 07:02:07 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Date: Mon, 29 Jul 2019 16:01:58 +0200 Message-Id: <20190729140158.6954-6-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729140158.6954-1-narmstrong@baylibre.com> References: <20190729140158.6954-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: u-boot-amlogic@groups.io Subject: [U-Boot] [PATCH 5/5] configs: sei510: disable PSCI_RESET to support fastboot reboot_flag 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Disable the PSCI_RESET reboot handler to permit handling the reboot flag and calling the PSCI handler with the flag in parameter. --- configs/sei510_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sei510_defconfig b/configs/sei510_defconfig index 20534bd6b4..6c89d4a381 100644 --- a/configs/sei510_defconfig +++ b/configs/sei510_defconfig @@ -7,6 +7,7 @@ CONFIG_MESON_G12A=y CONFIG_DEBUG_UART_BASE=0xff803000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_IDENT_STRING=" sei510" +# CONFIG_PSCI_RESET is not set CONFIG_DEBUG_UART=y CONFIG_NR_DRAM_BANKS=1 CONFIG_OF_BOARD_SETUP=y