From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Dang Huynh <danct12@riseup.net>,
Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Michael Riesch <michael.riesch@wolfvision.net>
Subject: Re: [PATCH v2] ARM: rockchip: Add support for Pine64 PineTab 2
Date: Tue, 3 Dec 2024 11:48:41 +0100 [thread overview]
Message-ID: <96947c97-749e-4507-a299-468d9d52ae76@pengutronix.de> (raw)
In-Reply-To: <20241203-pt2-init-v2-1-d6c625e1e455@riseup.net>
Hello Dang,
On 03.12.24 11:24, Dang Huynh wrote:
> The Pine64 PineTab 2 tablet is basically the Quartz64 but as
> a finished product.
>
> There are (currently) two revisions, v0.1 and v2.0.
>
> v0.1 was sent to developers and there are a few units around
> (probably less than 10?)
>
> v2.0 is the consumer available version, this version changed the
> display reset pin and hooked WLAN/BT chip to a GPIO.
>
> Signed-off-by: Dang Huynh <danct12@riseup.net>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> + if (bootsource == BOOTSOURCE_MMC && instance == 0)
> + of_device_enable_path("/chosen/environment-sd");
> + else
> + of_device_enable_path("/chosen/environment-emmc");
> +
> + rockchip_bbu_mmc_register("sd", 0, "/dev/mmc0");
> + rockchip_bbu_mmc_register("emmc", BBU_HANDLER_FLAG_DEFAULT, "/dev/mmc1");
I still think it's useful to set BBU_HANDLER_FLAG_DEFAULT for the SD-card when
SD-booted, i.e.:
int sd_flags = 0, emmc_flags = 0;
if (bootsource == BOOTSOURCE_MMC && instance == 0) {
of_device_enable_path("/chosen/environment-sd");
sd_flags = BBU_HANDLER_FLAG_DEFAULT;
} else {
of_device_enable_path("/chosen/environment-emmc");
emmc_flags = BBU_HANDLER_FLAG_DEFAULT;
}
rockchip_bbu_mmc_register("sd", sd_flags, "/dev/mmc0");
rockchip_bbu_mmc_register("emmc", emmc_flags, "/dev/mmc1");
But I don't have the board, so it's up to you.
Cheers,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2024-12-03 11:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 10:24 Dang Huynh
2024-12-03 10:48 ` Ahmad Fatoum [this message]
2024-12-12 9:07 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=96947c97-749e-4507-a299-468d9d52ae76@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=danct12@riseup.net \
--cc=michael.riesch@wolfvision.net \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox