fpga: Use Castor specific VID/PID in UDI

Allows an app to determine which type of device it is running on.

- Reserve vendor ID 0x7357 for people using Unlocked.
- Use Castor product ID.
- Serial number is just nonsense, as before.
This commit is contained in:
Mikael Ågren 2025-04-23 13:12:58 +02:00
parent 8965fea947
commit b144cdfbdb
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
2 changed files with 3 additions and 3 deletions

View file

@ -1,2 +1,2 @@
00010203
073570c0
04050607

View file

@ -122,8 +122,8 @@ int main(void)
// But a syscall to get parts of UDI should be able to run
int vidpid = syscall(TK1_SYSCALL_GET_VIDPID, 0, 0, 0);
if (vidpid != 0x00010203) {
failmsg("Expected VID/PID to be 0x00010203");
if (vidpid != 0x073570c0) {
failmsg("Expected VID/PID to be 0x073570c0");
anyfailed = 1;
}