From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 1/4] pblimage: drop PowerPC support
Date: Tue, 19 Dec 2023 14:00:37 +0100 [thread overview]
Message-ID: <20231219130040.4115-2-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20231219130040.4115-1-s.hauer@pengutronix.de>
PowerPC support has never been tested in the pblimage tool and will
hopefully be never needed. Drop its support from pblimage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
scripts/pblimage.c | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
diff --git a/scripts/pblimage.c b/scripts/pblimage.c
index df5d7aef69..9489c52b18 100644
--- a/scripts/pblimage.c
+++ b/scripts/pblimage.c
@@ -60,12 +60,6 @@ static uint32_t pbl_cmd_initaddr;
static uint32_t pbi_crc_cmd1;
static uint32_t pbi_crc_cmd2;
-enum arch {
- ARCH_ARM,
- ARCH_POWERPC,
-};
-
-enum arch architecture = ARCH_ARM;
static char *rcwfile;
static char *pbifile;
static char *outfile;
@@ -253,17 +247,11 @@ static int pblimage_check_params(void)
exit(EXIT_FAILURE);
}
- if (architecture == ARCH_ARM) {
- pbi_crc_cmd1 = 0x61;
- pbi_crc_cmd2 = 0;
- pbl_cmd_initaddr = loadaddr & PBL_ADDR_24BIT_MASK;
- pbl_cmd_initaddr |= PBL_ACS_CONT_CMD;
- pbl_cmd_initaddr += image_size;
- } else {
- pbi_crc_cmd1 = 0x13;
- pbi_crc_cmd2 = 0x80;
- pbl_cmd_initaddr = 0x82000000;
- }
+ pbi_crc_cmd1 = 0x61;
+ pbi_crc_cmd2 = 0;
+ pbl_cmd_initaddr = loadaddr & PBL_ADDR_24BIT_MASK;
+ pbl_cmd_initaddr |= PBL_ACS_CONT_CMD;
+ pbl_cmd_initaddr += image_size;
next_pbl_cmd = pbl_cmd_initaddr;
return 0;
--
2.39.2
next prev parent reply other threads:[~2023-12-19 13:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-19 13:00 [PATCH 0/4] Layerscape LS1028a pblimage support Sascha Hauer
2023-12-19 13:00 ` Sascha Hauer [this message]
2023-12-19 13:00 ` [PATCH 2/4] pblimage: simplify a bit Sascha Hauer
2023-12-19 13:00 ` [PATCH 3/4] pblimage: use roundup() from kernel.h Sascha Hauer
2023-12-19 13:00 ` [PATCH 4/4] pblimage: Add LS1028a support 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=20231219130040.4115-2-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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