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>
61 lines
1.9 KiB
C
61 lines
1.9 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_SYSINFO_H
|
|
#define _HARDWARE_STRUCTS_SYSINFO_H
|
|
|
|
/**
|
|
* \file rp2350/sysinfo.h
|
|
*/
|
|
|
|
#include "hardware/address_mapped.h"
|
|
#include "hardware/regs/sysinfo.h"
|
|
|
|
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_sysinfo
|
|
//
|
|
// 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/sysinfo.h.
|
|
//
|
|
// Bit-field descriptions are of the form:
|
|
// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
|
|
|
|
typedef struct {
|
|
_REG_(SYSINFO_CHIP_ID_OFFSET) // SYSINFO_CHIP_ID
|
|
// JEDEC JEP-106 compliant chip identifier
|
|
// 0xf0000000 [31:28] REVISION (-)
|
|
// 0x0ffff000 [27:12] PART (-)
|
|
// 0x00000ffe [11:1] MANUFACTURER (-)
|
|
// 0x00000001 [0] STOP_BIT (1)
|
|
io_ro_32 chip_id;
|
|
|
|
_REG_(SYSINFO_PACKAGE_SEL_OFFSET) // SYSINFO_PACKAGE_SEL
|
|
// 0x00000001 [0] PACKAGE_SEL (0)
|
|
io_ro_32 package_sel;
|
|
|
|
_REG_(SYSINFO_PLATFORM_OFFSET) // SYSINFO_PLATFORM
|
|
// Platform register
|
|
// 0x00000010 [4] GATESIM (-)
|
|
// 0x00000008 [3] BATCHSIM (-)
|
|
// 0x00000004 [2] HDLSIM (-)
|
|
// 0x00000002 [1] ASIC (-)
|
|
// 0x00000001 [0] FPGA (-)
|
|
io_ro_32 platform;
|
|
|
|
uint32_t _pad0[2];
|
|
|
|
_REG_(SYSINFO_GITREF_RP2350_OFFSET) // SYSINFO_GITREF_RP2350
|
|
// Git hash of the chip source
|
|
// 0xffffffff [31:0] GITREF_RP2350 (-)
|
|
io_ro_32 gitref_rp2350;
|
|
} sysinfo_hw_t;
|
|
|
|
#define sysinfo_hw ((sysinfo_hw_t *)SYSINFO_BASE)
|
|
static_assert(sizeof (sysinfo_hw_t) == 0x0018, "");
|
|
|
|
#endif // _HARDWARE_STRUCTS_SYSINFO_H
|
|
|