Skip to content

Commit

Permalink
lib: system: zephyr: Use default metal_generic_bus
Browse files Browse the repository at this point in the history
The only difference is the DMA ops, which the generic ops turns into
simple cache operation which zephyr does support.

Signed-off-by: Andrew Davis <afd@ti.com>
  • Loading branch information
glneo committed Mar 18, 2024
1 parent 5bab722 commit 4714dcb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/system/zephyr/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,3 @@ int metal_generic_dev_sys_open(struct metal_device *dev)
*/
return 0;
}

struct metal_bus metal_generic_bus = {
.name = "generic",
.ops = {
.bus_close = NULL,
.dev_open = metal_generic_dev_open,
.dev_close = NULL,
.dev_irq_ack = NULL,
.dev_dma_map = NULL,
.dev_dma_unmap = NULL,
},
};

0 comments on commit 4714dcb

Please sign in to comment.