Skip to content

Commit

Permalink
[sw/silicon_creator] Add SFDP table definition and READ_SFDP command
Browse files Browse the repository at this point in the history
Signed-off-by: Alphan Ulusoy <[email protected]>
  • Loading branch information
alphan committed Mar 28, 2022
1 parent 2053cc4 commit e58cc40
Show file tree
Hide file tree
Showing 5 changed files with 661 additions and 6 deletions.
2 changes: 2 additions & 0 deletions sw/device/silicon_creator/lib/drivers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,10 @@ cc_library(
hdrs = ["spi_device.h"],
deps = [
"//hw/ip/spi_device/data:spi_device_regs",
"//hw/ip/flash_ctrl/data:flash_ctrl_regs",
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/base:abs_mmio",
"//sw/device/lib/base:memory",
"//sw/device/silicon_creator/lib:error",
],
)
Expand Down
3 changes: 3 additions & 0 deletions sw/device/silicon_creator/lib/drivers/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,12 @@ sw_silicon_creator_lib_driver_spi_device = declare_dependency(
'sw_silicon_creator_lib_driver_spi_device',
sources: [
hw_ip_spi_device_reg_h,
hw_ip_flash_ctrl_reg_h,
'spi_device.c',
],
dependencies: [
sw_lib_abs_mmio,
sw_lib_mem,
],
),
)
Expand All @@ -600,6 +602,7 @@ test('sw_silicon_creator_lib_driver_spi_device_unittest', executable(
],
dependencies: [
sw_vendor_gtest,
sw_lib_testing_memory,
sw_lib_testing_mock_abs_mmio,
],
native: true,
Expand Down
Loading

0 comments on commit e58cc40

Please sign in to comment.