From: Daniel Schwierzeck Date: Mon, 30 Nov 2020 18:28:13 +0100 Subject: [PATCH 5/5 v3] mips: octeon: tools: Add update_octeon_header tool In-Reply-To: <20201130121423.2241343-1-sr@denx.de> References: <20201130121423.2241343-1-sr@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Montag, den 30.11.2020, 13:14 +0100 schrieb Stefan Roese: > Add a tool to update or insert an Octeon specific header into the U-Boot > image. This is needed e.g. for booting via SPI NOR, eMMC and NAND. > > While working on this, move enum cvmx_board_types_enum and > cvmx_board_type_to_string() to cvmx-bootloader.h and remove the > unreferenced (unsupported) board definition. > > Signed-off-by: Stefan Roese > Cc: Aaron Williams > Cc: Chandrakala Chavva > Cc: Daniel Schwierzeck > --- > v3: > - Add .gitignore entry > - Use compiletime_assert() instead of adhoc-coded compile_time_assert() > - Dropped forward declarations > - All functions now static > - Used prinf instead of debug in most places to make the output > more verbose and descriptive > - Used "fprintf(stderr" for error messages > - Dropped cvmx_cpu_to_be64 > - Removed crashes as suggested by Daniel > > v2: > - No change > - Azure build success here: > https://dev.azure.com/sr0718/u-boot/_build/results?buildId=59&view=results > > .../mach-octeon/include/mach/cvmx-bootinfo.h | 222 --------- > .../include/mach/cvmx-bootloader.h | 172 +++++++ > tools/.gitignore | 1 + > tools/Makefile | 3 + > tools/update_octeon_header.c | 456 ++++++++++++++++++ > 5 files changed, 632 insertions(+), 222 deletions(-) > create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-bootloader.h > create mode 100644 tools/update_octeon_header.c > Reviewed-by: Daniel Schwierzeck -- - Daniel