Commit 579f1421 authored by Mika Westerberg's avatar Mika Westerberg

thunderbolt: Move constants for USB4 router operations to tb_regs.h

We are going to use these in subsequent patch so make them available
outside of usb4.c.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 9490f711
...@@ -217,6 +217,19 @@ struct tb_regs_switch_header { ...@@ -217,6 +217,19 @@ struct tb_regs_switch_header {
#define ROUTER_CS_26_ONS BIT(30) #define ROUTER_CS_26_ONS BIT(30)
#define ROUTER_CS_26_OV BIT(31) #define ROUTER_CS_26_OV BIT(31)
/* USB4 router operations opcodes */
enum usb4_switch_op {
USB4_SWITCH_OP_QUERY_DP_RESOURCE = 0x10,
USB4_SWITCH_OP_ALLOC_DP_RESOURCE = 0x11,
USB4_SWITCH_OP_DEALLOC_DP_RESOURCE = 0x12,
USB4_SWITCH_OP_NVM_WRITE = 0x20,
USB4_SWITCH_OP_NVM_AUTH = 0x21,
USB4_SWITCH_OP_NVM_READ = 0x22,
USB4_SWITCH_OP_NVM_SET_OFFSET = 0x23,
USB4_SWITCH_OP_DROM_READ = 0x24,
USB4_SWITCH_OP_NVM_SECTOR_SIZE = 0x25,
};
/* Router TMU configuration */ /* Router TMU configuration */
#define TMU_RTR_CS_0 0x00 #define TMU_RTR_CS_0 0x00
#define TMU_RTR_CS_0_TD BIT(27) #define TMU_RTR_CS_0_TD BIT(27)
......
...@@ -16,18 +16,6 @@ ...@@ -16,18 +16,6 @@
#define USB4_DATA_DWORDS 16 #define USB4_DATA_DWORDS 16
#define USB4_DATA_RETRIES 3 #define USB4_DATA_RETRIES 3
enum usb4_switch_op {
USB4_SWITCH_OP_QUERY_DP_RESOURCE = 0x10,
USB4_SWITCH_OP_ALLOC_DP_RESOURCE = 0x11,
USB4_SWITCH_OP_DEALLOC_DP_RESOURCE = 0x12,
USB4_SWITCH_OP_NVM_WRITE = 0x20,
USB4_SWITCH_OP_NVM_AUTH = 0x21,
USB4_SWITCH_OP_NVM_READ = 0x22,
USB4_SWITCH_OP_NVM_SET_OFFSET = 0x23,
USB4_SWITCH_OP_DROM_READ = 0x24,
USB4_SWITCH_OP_NVM_SECTOR_SIZE = 0x25,
};
enum usb4_sb_target { enum usb4_sb_target {
USB4_SB_TARGET_ROUTER, USB4_SB_TARGET_ROUTER,
USB4_SB_TARGET_PARTNER, USB4_SB_TARGET_PARTNER,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment