Pep.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /** @file
  2. *
  3. * PEP device tables
  4. *
  5. * Copyright (c) 2019, ARM Ltd. All rights reserved.
  6. * Copyright (c) 2018, Andrei Warkentin <andrey.warkentin@gmail.com>
  7. * Copyright (c) Microsoft Corporation. All rights reserved.
  8. *
  9. * SPDX-License-Identifier: BSD-2-Clause-Patent
  10. *
  11. **/
  12. #include "Pep.h"
  13. PEP_PROCESSOR_TABLE_PLAT RpiProcessors = {
  14. 1, // Version
  15. 1, // NumberProcessors
  16. { // ProcessorInfo
  17. { // [0]
  18. L"\\_SB.CPU0", // DevicePath, wchar_t[16]
  19. 0, // FeedbackCounterCount
  20. 0x00000000, // Flags
  21. 0, // NumberIdleStates
  22. 0, // NumberPerfStates
  23. { // IdleInfo
  24. },
  25. { // perfinfo
  26. }
  27. }
  28. }
  29. };
  30. PEP_COORDINATED_STATE_TABLE_PLAT RpiCoordinatedStates = {
  31. 1, // Version
  32. 1, // CoordinatedStateCount
  33. { // CordinatedStates[]
  34. { // [0]
  35. { // DependencyInfo
  36. { // [0]
  37. 1, // ExpectedState
  38. 0, // TargetProcessor
  39. 0x0 | 0x2 | 0x4, // LooseDependency = FALSE, InitialState = TRUE, DependentState = TRUE
  40. }
  41. },
  42. SOC_STATE_TYPE, // StateType
  43. 0x1, // Flags
  44. 0, // Latency
  45. 0, // BreakEvenDuration
  46. 1, // DependencyCount
  47. 1, // MaximumDependencySize
  48. }
  49. }
  50. };
  51. PEP_DEVICE_TABLE_PLAT RpiDevices = {
  52. 1, // Version
  53. 1, // NumberDevices
  54. { // DeviceInfo
  55. { // [1]
  56. L"\\_SB.I2C0", // DevicePath, wchar_t[16]
  57. 0x1 | (1 << 3), // DStateSupportMask (D0 and D3)
  58. 1, // NumberCompoenents
  59. { // DStateRequirement
  60. { // [0]
  61. PowerDeviceD3 // DState
  62. }
  63. },
  64. { // FStateRequirement
  65. { // [0]
  66. { // FState
  67. { // [0]
  68. 0
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }
  75. };