aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040/chipid.c
Commit message (Collapse)AuthorAgeFilesLines
* rp2040: Move chipid reading to bootrom.cKevin O'Connor2024-11-141-98/+4
| | | | | | | | | | | Rewrite chipid.c so that it contains just the USB and canbus id manipulation code. Move the low-level chipid reading to bootrom.c. Also, introduce a new bootrom_reboot_usb_bootloader() function in bootrom.c so that the main.c code does not need to know the specifics of rebooting into the bootrom. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Initial support for CANbusKevin O'Connor2022-07-061-5/+8
| | | | | | | Add support for CANbus on the rp2040 using the can2040 "software canbus" implementation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: Add _ramfunc macro to internal.h and use in bootrom.c and chipid.cKevin O'Connor2021-07-041-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040: add chipid supportLasse Dalegaard2021-07-041-0/+132
The rp2040 doesn't have a chip ID, but the flash chip connected does. We can get this ID by asking the flash chip directly, but doing so requires disengaging the XIP layer, performing the interrogation of the flash chip, and then re-enabling the XIP layer. This gives us a 64-bit unique ID that we can use as our USB serial number. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>