mirror of
https://github.com/andreili/katapult.git
synced 2025-08-24 03:44:06 +02:00
Synchronize with the latest Klipper code. This pulls in the latest lib/ files (needed to use the pico-sdk v2.0.0 version). It updates to latest can2040 code (needed for pico-sdk v2.0.0 support). It implements USB double buffering (as is now done in Klipper). It adds in support for additional UART pins (as is now done in Klipper). It adds support for rp2350 chips. This replaces the execute in ram code previously implemented in Katapult with the execute in ram code that is now standard in Klipper. The CONFIG_RP2040_ADD_BOOT_SIGNATURE kconfig symbol was removed and the build now always produces a katapult.withclear.uf2 file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
|
|
|
|
/**
|
|
* Copyright (c) 2024 Raspberry Pi Ltd.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef _HARDWARE_STRUCTS_BOOTRAM_H
|
|
#define _HARDWARE_STRUCTS_BOOTRAM_H
|
|
|
|
/**
|
|
* \file rp2350/bootram.h
|
|
*/
|
|
|
|
#include "hardware/address_mapped.h"
|
|
#include "hardware/regs/bootram.h"
|
|
|
|
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_bootram
|
|
//
|
|
// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
|
|
// _REG_(x) will link to the corresponding register in hardware/regs/bootram.h.
|
|
//
|
|
// Bit-field descriptions are of the form:
|
|
// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
|
|
|
|
typedef struct {
|
|
// (Description copied from array index 0 register BOOTRAM_WRITE_ONCE0 applies similarly to other array indexes)
|
|
_REG_(BOOTRAM_WRITE_ONCE0_OFFSET) // BOOTRAM_WRITE_ONCE0
|
|
// This registers always ORs writes into its current contents
|
|
// 0xffffffff [31:0] WRITE_ONCE0 (0x00000000)
|
|
io_rw_32 write_once[2];
|
|
|
|
_REG_(BOOTRAM_BOOTLOCK_STAT_OFFSET) // BOOTRAM_BOOTLOCK_STAT
|
|
// Bootlock status register
|
|
// 0x000000ff [7:0] BOOTLOCK_STAT (0xff)
|
|
io_rw_32 bootlock_stat;
|
|
|
|
// (Description copied from array index 0 register BOOTRAM_BOOTLOCK0 applies similarly to other array indexes)
|
|
_REG_(BOOTRAM_BOOTLOCK0_OFFSET) // BOOTRAM_BOOTLOCK0
|
|
// Read to claim and check
|
|
// 0xffffffff [31:0] BOOTLOCK0 (0x00000000)
|
|
io_rw_32 bootlock[8];
|
|
} bootram_hw_t;
|
|
|
|
#define bootram_hw ((bootram_hw_t *)(BOOTRAM_BASE + BOOTRAM_WRITE_ONCE0_OFFSET))
|
|
static_assert(sizeof (bootram_hw_t) == 0x002c, "");
|
|
|
|
#endif // _HARDWARE_STRUCTS_BOOTRAM_H
|
|
|