BlueSCSI_platform_config.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /**
  2. * ZuluSCSI™ - Copyright (c) 2024-2025 Rabbit Hole Computing™
  3. *
  4. * ZuluSCSI™ firmware is licensed under the GPL version 3 or any later version. 
  5. *
  6. * https://www.gnu.org/licenses/gpl-3.0.html
  7. * ----
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version. 
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. * GNU General Public License for more details. 
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  20. **/
  21. #pragma once
  22. #ifdef BLUESCSI_PICO
  23. # ifdef BLUESCSI_DAYNAPORT
  24. # define PLATFORM_NAME "BlueSCSI Pico DaynaPORT"
  25. # else
  26. # define PLATFORM_NAME "BlueSCSI Pico"
  27. # endif
  28. # define PLATFORM_PID "Pico"
  29. # define PLATFORM_REVISION "2.0"
  30. # define PLATFORM_HAS_INITIATOR_MODE 1
  31. # define DISABLE_SWO
  32. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_20
  33. # define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 20
  34. #elif defined(BLUESCSI_PICO_2)
  35. # ifdef BLUESCSI_PICO_2_DAYNAPORT
  36. # define PLATFORM_NAME "BlueSCSI Pico 2 DaynaPORT"
  37. # else
  38. # define PLATFORM_NAME "BlueSCSI Pico 2"
  39. # endif
  40. # define PLATFORM_PID "Pico 2"
  41. # define PLATFORM_REVISION "2.3A"
  42. # define PLATFORM_HAS_INITIATOR_MODE 1
  43. # define DISABLE_SWO
  44. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_20
  45. # define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 20
  46. #elif defined(BLUESCSI_BLASTER)
  47. # define PLATFORM_NAME "BlueSCSI Blaster"
  48. # define PLATFORM_PID "Blaster"
  49. # define PLATFORM_REVISION "2.3B"
  50. # define PLATFORM_HAS_INITIATOR_MODE 1
  51. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_20
  52. # define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 20
  53. #elif defined(BLUESCSI_BS2)
  54. # define PLATFORM_NAME "BlueSCSI BS2"
  55. # define PLATFORM_PID "BS2"
  56. # define PLATFORM_REVISION "1.0"
  57. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_20
  58. # define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 20
  59. #else
  60. # define PLATFORM_NAME "BlueSCSI RP2040"
  61. # define PLATFORM_PID "RP2040"
  62. # define PLATFORM_REVISION "2.0"
  63. # define PLATFORM_HAS_INITIATOR_MODE 1
  64. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_20
  65. # define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 20
  66. #endif
  67. #define PLATFORM_OPTIMAL_MIN_SD_WRITE_SIZE 32768
  68. #define PLATFORM_OPTIMAL_MAX_SD_WRITE_SIZE 65536
  69. #define PLATFORM_OPTIMAL_LAST_SD_WRITE_SIZE 8192
  70. #define SD_USE_SDIO 1
  71. #define PLATFORM_HAS_PARITY_CHECK 1
  72. #ifndef PLATFORM_VDD_WARNING_LIMIT_mV
  73. #define PLATFORM_VDD_WARNING_LIMIT_mV 2800
  74. #endif