Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36832 )
Change subject: util/inteltool: Add many Apollolake USB registers ......................................................................
util/inteltool: Add many Apollolake USB registers
Change-Id: Ifc92b4029af28fceefbc76d34a557b0ef4c7be0d Signed-off-by: Felix Singer felix.singer@9elements.com --- M util/inteltool/usb.c 1 file changed, 469 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/36832/1
diff --git a/util/inteltool/usb.c b/util/inteltool/usb.c index 7c84c42..bcba4c7 100644 --- a/util/inteltool/usb.c +++ b/util/inteltool/usb.c @@ -450,6 +450,475 @@ {0x8E24, 4, "ALWAYS_RUNNING_TIME_HIGH"}, };
+/* Registers 19.3 */ +static const io_register_t apollolake_usbx_exi_on_dbc[] = { + { 0x000, 4, "DBC_GP2_OUT_PAYLOAD_BP_LOW" }, + { 0x004, 4, "DBC_GP2_OUT_PAYLOAD_BP_HI" }, + { 0x008, 4, "DBC_GP2_OUT_PAYLOAD_QUALIFIERS" }, + { 0x00C, 4, "DBC_GP2_OUT_PAYLOAD_TRANSFER_LENGTH" }, + { 0x010, 4, "DBC_GP2_OUT_STATUS_BP_LOW" }, + { 0x014, 4, "DBC_GP2_OUT_STATUS_BP_HI" }, + { 0x018, 4, "DBC_GP2_OUT_STATUS_QUALIFIERS" }, + { 0x01c, 4, "DBC_GP2_IN_PAYLOAD_BP_LOW" }, + { 0x020, 4, "DBC_GP2_IN_PAYLOAD_BP_HI" }, + { 0x024, 4, "DBC_GP2_IN_PAYLOAD_QUALIFIERS" }, + { 0x028, 4, "DBC_GP2_IN_PAYLOAD_TRANSFER_LENGTH" }, + { 0x02c, 4, "DBC_GP2_IN_STATUS_BP_LOW" }, + { 0x030, 4, "DBC_GP2_IN_STATUS_BP_HI" }, + { 0x034, 4, "DBC_GP2_IN_STATUS_QUALIFIERS" }, + { 0x038, 4, "DBC_DFX_OUT_CONTROL" }, + { 0x03c, 4, "DBC_DFX_IN_PAYLOAD_BP_LOW" }, + { 0x040, 4, "DBC_DFX_IN_PAYLOAD_BP_HI" }, + { 0x044, 4, "DBC_DFX_IN_PAYLOAD_TRANSFER_LENGTH" }, + { 0x048, 4, "DBC_DFX_IN_STATUS_BP_LOW" }, + { 0x04c, 4, "DBC_DFX_IN_STATUS_BP_HI" }, + { 0x050, 4, "DBC_TRACE_IN_PAYLOAD_BP_LOW" }, + { 0x054, 4, "DBC_TRACE_IN_PAYLOAD_BP_HI" }, + { 0x058, 4, "DBC_TRACE_IN_PAYLOAD_QUALIFIERS" }, + { 0x05c, 4, "DBC_TRACE_IN_PAYLOAD_TRASNFER_DOORBELL" }, + { 0x060, 4, "DBC_TRACE_IN_STATUS_BP_LOW" }, + { 0x064, 4, "DBC_TRACE_IN_STATUS_BP_HI" }, + { 0x068, 4, "DBC_TRACE_IN_STATUS_QUALIFIERS" }, + { 0x06c, 4, "DBC_ERROR_CONTROL_STATUS_REG" }, + { 0x070, 4, "DBC_EXI_CONTROL_STATUS_REG" }, + { 0x074, 4, "FABRIC_AGENT_UPSTREAM_GRANT_COUNT_REG" }, + { 0x078, 4, "DBC_ECO_POLICY_REG1" }, + { 0x07c, 4, "DBC_ECO_POLICY_REG2" }, + { 0x080, 4, "DBC_ECO_POLICY_REG3" }, + { 0x084, 4, "DBC_ECO_POLICY_REG4" }, + { 0x088, 4, "DBC_EXI_DCPORTSC" }, + { 0x100, 4, "DEBUG_SW_CONTROL_STATUS_REG" }, + { 0x104, 4, "DEBUG_REQUEST_INFO_AND_STATUS_REG" }, + { 0x108, 4, "DEBUG_REQUEST_STACK_REG_0" }, + { 0x10c, 4, "DEBUG_REQUEST_STACK_REG_1" }, + { 0x110, 4, "DEBUG_REQUEST_STACK_REG_2" }, + { 0x114, 4, "DEBUG_REQUEST_STACK_REG_3" }, + { 0x118, 4, "DEBUG_REQUEST_STACK_REG_4" }, + { 0x11c, 4, "DEBUG_REQUEST_STACK_REG_5" }, + { 0x120, 4, "DEBUG_REQUEST_STACK_REG_6" }, + { 0x124, 4, "DEBUG_REQUEST_STACK_REG_7" }, + { 0x128, 4, "DEBUG_REQUEST_STACK_REG_8" }, + { 0x12c, 4, "DEBUG_REQUEST_STACK_REG_9" }, + { 0x130, 4, "DEBUG_REQUEST_STACK_REG_10" }, + { 0x134, 4, "DEBUG_REQUEST_STACK_REG_11" }, + { 0x138, 4, "DEBUG_REQUEST_STACK_REG_12" }, + { 0x13c, 4, "DEBUG_REQUEST_STACK_REG_13" }, + { 0x140, 4, "DEBUG_REQUEST_STACK_REG_14" }, + { 0x144, 4, "DEBUG_REQUEST_STACK_REG_15" }, + { 0x148, 4, "DEBUG_RESPONSE_INFO_AND_STATUS_REG" }, + { 0x180, 4, "DEBUG_RESPONSE_DATA_STACK_REG_0" }, + { 0x184, 4, "DEBUG_RESPONSE_DATA_STACK_REG_1" }, + { 0x188, 4, "DEBUG_RESPONSE_DATA_STACK_REG_2" }, + { 0x18c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_3" }, + { 0x190, 4, "DEBUG_RESPONSE_DATA_STACK_REG_4" }, + { 0x194, 4, "DEBUG_RESPONSE_DATA_STACK_REG_5" }, + { 0x198, 4, "DEBUG_RESPONSE_DATA_STACK_REG_6" }, + { 0x19c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_7" }, + { 0x1a0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_8" }, + { 0x1a4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_9" }, + { 0x1a8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_10" }, + { 0x1ac, 4, "DEBUG_RESPONSE_DATA_STACK_REG_11" }, + { 0x1b0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_12" }, + { 0x1b4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_13" }, + { 0x1b8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_14" }, + { 0x1bc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_15" }, + { 0x1c0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_16" }, + { 0x1c4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_17" }, + { 0x1c8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_18" }, + { 0x1cc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_19" }, + { 0x1d0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_20" }, + { 0x1d4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_21" }, + { 0x1d8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_22" }, + { 0x1dc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_23" }, + { 0x1e0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_24" }, + { 0x1e4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_25" }, + { 0x1e8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_26" }, + { 0x1ec, 4, "DEBUG_RESPONSE_DATA_STACK_REG_27" }, + { 0x1f0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_28" }, + { 0x1f4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_29" }, + { 0x1f8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_30" }, + { 0x1fc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_31" }, + { 0x200, 4, "DEBUG_RESPONSE_DATA_STACK_REG_32" }, + { 0x204, 4, "DEBUG_RESPONSE_DATA_STACK_REG_33" }, + { 0x208, 4, "DEBUG_RESPONSE_DATA_STACK_REG_34" }, + { 0x20c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_35" }, + { 0x210, 4, "DEBUG_RESPONSE_DATA_STACK_REG_36" }, + { 0x214, 4, "DEBUG_RESPONSE_DATA_STACK_REG_37" }, + { 0x218, 4, "DEBUG_RESPONSE_DATA_STACK_REG_38" }, + { 0x21c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_39" }, + { 0x220, 4, "DEBUG_RESPONSE_DATA_STACK_REG_40" }, + { 0x224, 4, "DEBUG_RESPONSE_DATA_STACK_REG_41" }, + { 0x228, 4, "DEBUG_RESPONSE_DATA_STACK_REG_42" }, + { 0x22c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_43" }, + { 0x230, 4, "DEBUG_RESPONSE_DATA_STACK_REG_44" }, + { 0x234, 4, "DEBUG_RESPONSE_DATA_STACK_REG_45" }, + { 0x238, 4, "DEBUG_RESPONSE_DATA_STACK_REG_46" }, + { 0x23c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_47" }, + { 0x240, 4, "DEBUG_RESPONSE_DATA_STACK_REG_48" }, + { 0x244, 4, "DEBUG_RESPONSE_DATA_STACK_REG_49" }, + { 0x248, 4, "DEBUG_RESPONSE_DATA_STACK_REG_50" }, + { 0x24c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_51" }, + { 0x250, 4, "DEBUG_RESPONSE_DATA_STACK_REG_52" }, + { 0x254, 4, "DEBUG_RESPONSE_DATA_STACK_REG_53" }, + { 0x258, 4, "DEBUG_RESPONSE_DATA_STACK_REG_54" }, + { 0x25c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_55" }, + { 0x260, 4, "DEBUG_RESPONSE_DATA_STACK_REG_56" }, + { 0x264, 4, "DEBUG_RESPONSE_DATA_STACK_REG_57" }, + { 0x268, 4, "DEBUG_RESPONSE_DATA_STACK_REG_58" }, + { 0x26c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_59" }, + { 0x270, 4, "DEBUG_RESPONSE_DATA_STACK_REG_60" }, + { 0x274, 4, "DEBUG_RESPONSE_DATA_STACK_REG_61" }, + { 0x278, 4, "DEBUG_RESPONSE_DATA_STACK_REG_62" }, + { 0x27c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_63" }, + { 0x280, 4, "DEBUG_RESPONSE_DATA_STACK_REG_64" }, + { 0x284, 4, "DEBUG_RESPONSE_DATA_STACK_REG_65" }, + { 0x288, 4, "DEBUG_RESPONSE_DATA_STACK_REG_66" }, + { 0x28c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_67" }, + { 0x290, 4, "DEBUG_RESPONSE_DATA_STACK_REG_68" }, + { 0x294, 4, "DEBUG_RESPONSE_DATA_STACK_REG_69" }, + { 0x298, 4, "DEBUG_RESPONSE_DATA_STACK_REG_70" }, + { 0x29c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_71" }, + { 0x2a0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_72" }, + { 0x2a4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_73" }, + { 0x2a8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_74" }, + { 0x2ac, 4, "DEBUG_RESPONSE_DATA_STACK_REG_75" }, + { 0x2b0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_76" }, + { 0x2b4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_77" }, + { 0x2b8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_78" }, + { 0x2bc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_79" }, + { 0x2c0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_80" }, + { 0x2c4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_81" }, + { 0x2c8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_82" }, + { 0x2cc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_83" }, + { 0x2d0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_84" }, + { 0x2d4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_85" }, + { 0x2d8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_86" }, + { 0x2dc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_87" }, + { 0x2e0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_88" }, + { 0x2e4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_89" }, + { 0x2e8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_90" }, + { 0x2ec, 4, "DEBUG_RESPONSE_DATA_STACK_REG_91" }, + { 0x2f0, 4, "DEBUG_RESPONSE_DATA_STACK_REG_92" }, + { 0x2f4, 4, "DEBUG_RESPONSE_DATA_STACK_REG_93" }, + { 0x2f8, 4, "DEBUG_RESPONSE_DATA_STACK_REG_94" }, + { 0x2fc, 4, "DEBUG_RESPONSE_DATA_STACK_REG_95" }, + { 0x300, 4, "DEBUG_RESPONSE_DATA_STACK_REG_96" }, + { 0x304, 4, "DEBUG_RESPONSE_DATA_STACK_REG_97" }, + { 0x308, 4, "DEBUG_RESPONSE_DATA_STACK_REG_98" }, + { 0x30c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_99" }, + { 0x310, 4, "DEBUG_RESPONSE_DATA_STACK_REG_100" }, + { 0x314, 4, "DEBUG_RESPONSE_DATA_STACK_REG_101" }, + { 0x318, 4, "DEBUG_RESPONSE_DATA_STACK_REG_102" }, + { 0x31c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_103" }, + { 0x320, 4, "DEBUG_RESPONSE_DATA_STACK_REG_104" }, + { 0x324, 4, "DEBUG_RESPONSE_DATA_STACK_REG_105" }, + { 0x328, 4, "DEBUG_RESPONSE_DATA_STACK_REG_106" }, + { 0x32c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_107" }, + { 0x330, 4, "DEBUG_RESPONSE_DATA_STACK_REG_118" }, + { 0x334, 4, "DEBUG_RESPONSE_DATA_STACK_REG_109" }, + { 0x338, 4, "DEBUG_RESPONSE_DATA_STACK_REG_110" }, + { 0x33c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_111" }, + { 0x340, 4, "DEBUG_RESPONSE_DATA_STACK_REG_112" }, + { 0x344, 4, "DEBUG_RESPONSE_DATA_STACK_REG_113" }, + { 0x348, 4, "DEBUG_RESPONSE_DATA_STACK_REG_114" }, + { 0x34c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_115" }, + { 0x350, 4, "DEBUG_RESPONSE_DATA_STACK_REG_116" }, + { 0x354, 4, "DEBUG_RESPONSE_DATA_STACK_REG_117" }, + { 0x358, 4, "DEBUG_RESPONSE_DATA_STACK_REG_118" }, + { 0x35c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_119" }, + { 0x360, 4, "DEBUG_RESPONSE_DATA_STACK_REG_120" }, + { 0x364, 4, "DEBUG_RESPONSE_DATA_STACK_REG_121" }, + { 0x368, 4, "DEBUG_RESPONSE_DATA_STACK_REG_122" }, + { 0x36c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_123" }, + { 0x370, 4, "DEBUG_RESPONSE_DATA_STACK_REG_124" }, + { 0x374, 4, "DEBUG_RESPONSE_DATA_STACK_REG_125" }, + { 0x378, 4, "DEBUG_RESPONSE_DATA_STACK_REG_126" }, + { 0x37c, 4, "DEBUG_RESPONSE_DATA_STACK_REG_127" }, + { 0x380, 4, "DEBUG_RESPONSE_HEADER_STACK_REG_0" }, + { 0x384, 4, "DEBUG_RESPONSE_HEADER_STACK_REG_1" }, + { 0x388, 4, "DEBUG_RESPONSE_HEADER_STACK_REG_2" }, +}; + +/* Registers 19.4 */ +static const io_register_t apollolake_usbx_device_top1[] = { + { 0xc700, 4, "DCFG" }, + { 0xc704, 4, "DCTL" }, + { 0xc708, 4, "DEVTEN" }, + { 0xc70c, 4, "DSTS" }, + { 0xc710, 4, "DGCMDPAR" }, + { 0xc714, 4, "DGCMD" }, + { 0xc720, 4, "DALEPENA" }, + { 0xc800, 4, "DEPCMDPAR2_0" }, + { 0xc804, 4, "DEPCMDPAR1_0" }, + { 0xc808, 4, "DEPCMDPAR0_0" }, + { 0xc80c, 4, "DEPCMD_0" }, + { 0xc810, 4, "DEPCMDPAR2_1" }, + { 0xc814, 4, "DEPCMDPAR1_1" }, + { 0xc818, 4, "DEPCMDPAR0_1" }, + { 0xc81c, 4, "DEPCMD_1" }, + { 0xc820, 4, "DEPCMDPAR2_2" }, + { 0xc824, 4, "DEPCMDPAR1_2" }, + { 0xc828, 4, "DEPCMDPAR0_2" }, + { 0xc82c, 4, "DEPCMD_2" }, + { 0xc830, 4, "DEPCMDPAR2_3" }, + { 0xc834, 4, "DEPCMDPAR1_3" }, + { 0xc838, 4, "DEPCMDPAR0_3" }, + { 0xc83c, 4, "DEPCMD_3" }, + { 0xc840, 4, "DEPCMDPAR2_4" }, + { 0xc844, 4, "DEPCMDPAR1_4" }, + { 0xc848, 4, "DEPCMDPAR0_4" }, + { 0xc84c, 4, "DEPCMD_4" }, + { 0xc850, 4, "DEPCMDPAR2_5" }, + { 0xc854, 4, "DEPCMDPAR1_5" }, + { 0xc858, 4, "DEPCMDPAR0_5" }, + { 0xc85c, 4, "DEPCMD_5" }, + { 0xc860, 4, "DEPCMDPAR2_6" }, + { 0xc864, 4, "DEPCMDPAR1_6" }, + { 0xc868, 4, "DEPCMDPAR0_6" }, + { 0xc86c, 4, "DEPCMD_6" }, + { 0xc870, 4, "DEPCMDPAR2_7" }, + { 0xc874, 4, "DEPCMDPAR1_7" }, + { 0xc878, 4, "DEPCMDPAR0_7" }, + { 0xc87c, 4, "DEPCMD_7" }, + { 0xc880, 4, "DEPCMDPAR2_8" }, + { 0xc884, 4, "DEPCMDPAR1_8" }, + { 0xc888, 4, "DEPCMDPAR0_8" }, + { 0xc88c, 4, "DEPCMD_8" }, + { 0xc890, 4, "DEPCMDPAR2_9" }, + { 0xc894, 4, "DEPCMDPAR1_9" }, + { 0xc898, 4, "DEPCMDPAR0_9" }, + { 0xc89c, 4, "DEPCMD_9" }, + { 0xc8a0, 4, "DEPCMDPAR2_10" }, + { 0xc8a4, 4, "DEPCMDPAR1_10" }, + { 0xc8a8, 4, "DEPCMDPAR0_10" }, + { 0xc8ac, 4, "DEPCMD_10" }, + { 0xc8b0, 4, "DEPCMDPAR2_11" }, + { 0xc8b4, 4, "DEPCMDPAR1_11" }, + { 0xc8b8, 4, "DEPCMDPAR0_11" }, + { 0xc8bc, 4, "DEPCMD_11" }, + { 0xc8c0, 4, "DEPCMDPAR2_12" }, + { 0xc8c4, 4, "DEPCMDPAR1_12" }, + { 0xc8c8, 4, "DEPCMDPAR0_12" }, + { 0xc8cc, 4, "DEPCMD_12" }, + { 0xc8d0, 4, "DEPCMDPAR2_13" }, + { 0xc8d4, 4, "DEPCMDPAR1_13" }, + { 0xc8d8, 4, "DEPCMDPAR0_13" }, + { 0xc8dc, 4, "DEPCMD_13" }, + { 0xc8e0, 4, "DEPCMDPAR2_14" }, + { 0xc8e4, 4, "DEPCMDPAR1_14" }, + { 0xc8e8, 4, "DEPCMDPAR0_14" }, + { 0xc8ec, 4, "DEPCMD_14" }, + { 0xc8f0, 4, "DEPCMDPAR2_15" }, + { 0xc8f4, 4, "DEPCMDPAR1_15" }, + { 0xc8f8, 4, "DEPCMDPAR0_15" }, + { 0xc8fc, 4, "DEPCMD_15" }, + { 0xc900, 4, "DEPCMDPAR2_16" }, + { 0xc904, 4, "DEPCMDPAR1_16" }, + { 0xc908, 4, "DEPCMDPAR0_16" }, + { 0xc90c, 4, "DEPCMD_16" }, + { 0xc910, 4, "DEPCMDPAR2_17" }, + { 0xc914, 4, "DEPCMDPAR1_17" }, + { 0xc918, 4, "DEPCMDPAR0_17" }, + { 0xc91c, 4, "DEPCMD_17" }, + { 0xc920, 4, "DEPCMDPAR2_18" }, + { 0xc924, 4, "DEPCMDPAR1_18" }, + { 0xc928, 4, "DEPCMDPAR0_18" }, + { 0xc92c, 4, "DEPCMD_18" }, + { 0xc930, 4, "DEPCMDPAR2_19" }, + { 0xc934, 4, "DEPCMDPAR1_19" }, + { 0xc938, 4, "DEPCMDPAR0_19" }, + { 0xc93c, 4, "DEPCMD_19" }, + { 0xc940, 4, "DEPCMDPAR2_20" }, + { 0xc944, 4, "DEPCMDPAR1_20" }, + { 0xc948, 4, "DEPCMDPAR0_20" }, + { 0xc94c, 4, "DEPCMD_20" }, + { 0xc950, 4, "DEPCMDPAR2_21" }, + { 0xc954, 4, "DEPCMDPAR1_21" }, + { 0xc958, 4, "DEPCMDPAR0_21" }, + { 0xc95c, 4, "DEPCMD_21" }, + { 0xc960, 4, "DEPCMDPAR2_22" }, + { 0xc964, 4, "DEPCMDPAR1_22" }, + { 0xc968, 4, "DEPCMDPAR0_22" }, + { 0xc96c, 4, "DEPCMD_22" }, + { 0xc970, 4, "DEPCMDPAR2_23" }, + { 0xc974, 4, "DEPCMDPAR1_23" }, + { 0xc978, 4, "DEPCMDPAR0_23" }, + { 0xc97c, 4, "DEPCMD_23" }, + { 0xc980, 4, "DEPCMDPAR2_24" }, + { 0xc984, 4, "DEPCMDPAR1_24" }, + { 0xc988, 4, "DEPCMDPAR0_24" }, + { 0xc98c, 4, "DEPCMD_24" }, + { 0xc990, 4, "DEPCMDPAR2_25" }, + { 0xc994, 4, "DEPCMDPAR1_25" }, + { 0xc998, 4, "DEPCMDPAR0_25" }, + { 0xc99c, 4, "DEPCMD_25" }, + { 0xc9a0, 4, "DEPCMDPAR2_26" }, + { 0xc9a4, 4, "DEPCMDPAR1_26" }, + { 0xc9a8, 4, "DEPCMDPAR0_26" }, + { 0xc9ac, 4, "DEPCMD_26" }, + { 0xc9b0, 4, "DEPCMDPAR2_27" }, + { 0xc9b4, 4, "DEPCMDPAR1_27" }, + { 0xc9b8, 4, "DEPCMDPAR0_27" }, + { 0xc9bc, 4, "DEPCMD_27" }, + { 0xc9c0, 4, "DEPCMDPAR2_28" }, + { 0xc9c4, 4, "DEPCMDPAR1_28" }, + { 0xc9c8, 4, "DEPCMDPAR0_28" }, + { 0xc9cc, 4, "DEPCMD_28" }, + { 0xc9d0, 4, "DEPCMDPAR2_29" }, + { 0xc9d4, 4, "DEPCMDPAR1_29" }, + { 0xc9d8, 4, "DEPCMDPAR0_29" }, + { 0xc9dc, 4, "DEPCMD_29" }, + { 0xc9e0, 4, "DEPCMDPAR2_30" }, + { 0xc9e4, 4, "DEPCMDPAR1_30" }, + { 0xc9e8, 4, "DEPCMDPAR0_30" }, + { 0xc9ec, 4, "DEPCMD_30" }, + { 0xc9f0, 4, "DEPCMDPAR2_31" }, + { 0xc9f4, 4, "DEPCMDPAR1_31" }, + { 0xc9f8, 4, "DEPCMDPAR0_31" }, + { 0xc9fc, 4, "DEPCMD_31" }, +}; + +/* Registers 19.5 */ +static const io_register_t apollolake_usbx_device_top2[] = { + { 0xc100, 4, "GSBUSCFG0" }, + { 0xc104, 4, "GSBUSCFG1" }, + { 0xc108, 4, "GTXTHRCFG" }, + { 0xc10c, 4, "GRXTHRCFG" }, + { 0xc110, 4, "GCTL" }, + { 0xc114, 4, "GPMSTS" }, + { 0xc118, 4, "GSTS" }, + { 0xc11c, 4, "GUCTL1" }, + { 0xc120, 4, "GSNPSID" }, + { 0xc124, 4, "GGPIO" }, + { 0xc128, 4, "GUID" }, + { 0xc12c, 4, "GUCTL" }, + { 0xc130, 4, "GBUSERRADDRLO" }, + { 0xc134, 4, "GBUSERRADDRHI" }, + { 0xc138, 4, "GPRTBIMAPLO" }, + { 0xc13c, 4, "GPRTBIMAPHI" }, + { 0xc140, 4, "GHWPARAMS0" }, + { 0xc144, 4, "GHWPARAMS1" }, + { 0xc148, 4, "GHWPARAMS2" }, + { 0xc14c, 4, "GHWPARAMS3" }, + { 0xc150, 4, "GHWPARAMS4" }, + { 0xc154, 4, "GHWPARAMS5" }, + { 0xc158, 4, "GHWPARAMS6" }, + { 0xc15c, 4, "GHWPARAMS7" }, + { 0xc160, 4, "GDBGFIFOSPACE" }, + { 0xc164, 4, "GDBGLTSSM" }, + { 0xc168, 4, "GDBGLNMCC" }, + { 0xc16c, 4, "GDBGBMU" }, + { 0xc170, 4, "GDBGLSPMUX_DEV" }, + { 0xc174, 4, "GDBGLSP" }, + { 0xc178, 4, "GDBGEPINFO0" }, + { 0xc17c, 4, "GDBGEPINFO1" }, + { 0xc180, 4, "GPRTBIMAP_HSLO" }, + { 0xc184, 4, "GPRTBIMAP_HSHI" }, + { 0xc188, 4, "GPRTBIMAP_FSLO" }, + { 0xc18c, 4, "GPRTBIMAP_FSHI" }, + { 0xc200, 4, "GUSB2PHYCFG_0" }, + { 0xc240, 4, "GUSB2I2CCTL_0" }, + { 0xc280, 4, "GUSB2PHYACC_ULPI_0" }, + { 0xc2c0, 4, "GUSB3PIPECTL_0" }, + { 0xc300, 4, "GTXFIFOSIZ0_0" }, + { 0xc304, 4, "GTXFIFOSIZ1_0" }, + { 0xc308, 4, "GTXFIFOSIZ2_0" }, + { 0xc30c, 4, "GTXFIFOSIZ3_0" }, + { 0xc310, 4, "GTXFIFOSIZ4_0" }, + { 0xc314, 4, "GTXFIFOSIZ5_0" }, + { 0xc318, 4, "GTXFIFOSIZ6_0" }, + { 0xc31c, 4, "GTXFIFOSIZ7_0" }, + { 0xc320, 4, "GTXFIFOSIZ8_0" }, + { 0xc324, 4, "GTXFIFOSIZ9_0" }, + { 0xc328, 4, "GTXFIFOSIZ10_0" }, + { 0xc32c, 4, "GTXFIFOSIZ11_0" }, + { 0xc330, 4, "GTXFIFOSIZ12_0" }, + { 0xc334, 4, "GTXFIFOSIZ13_0" }, + { 0xc338, 4, "GTXFIFOSIZ14_0" }, + { 0xc33c, 4, "GTXFIFOSIZ15_0" }, + { 0xc380, 4, "GRXFIFOSIZ0_0" }, + { 0xc400, 4, "GEVNTADRLO_0" }, + { 0xc404, 4, "GEVNTADRHI_0" }, + { 0xc408, 4, "GEVNTSIZ_0" }, + { 0xc40c, 4, "GEVNTCOUNT_0" }, + { 0xc600, 4, "GHWPARAMS8" }, + { 0xc610, 4, "GTXFIFOPRIDEV" }, + { 0xc630, 4, "GFLADJ" }, +}; + +/* Registers 19.6 */ +static const io_register_t apollolake_usbx_device_top3[] = { + { 0x10f808, 2, "APBFC_U3PMU_CFG0" }, + { 0x10f80c, 2, "APBFC_U3PMU_CFG1" }, + { 0x10f810, 2, "APBFC_U3PMU_CFG2" }, + { 0x10f814, 2, "APBFC_U3PMU_CFG3" }, + { 0x10f818, 2, "APBFC_U3PMU_CFG4" }, + { 0x10f81c, 2, "APBFC_U3PMU_CFG5" }, + { 0x10f820, 2, "APBFC_U3PMU_CFG6" }, + { 0x10f830, 2, "APBFC_D0I3C" }, +}; + +/* Registers 19.7 */ +static const io_register_t apollolake_usbx_device_top4[] = { + { 0xb0, 4, "GEN_REGRW1" }, + { 0xb4, 4, "GEN_REGRW2" }, + { 0xb8, 4, "GEN_REGRW3" }, + { 0xbc, 4, "GEN_REGRW4" }, + { 0xc0, 4, "GEN_INPUT_REGRW" }, +}; + +/* Registers 19.8 */ +static const io_register_t apollolake_usbx_device_top5[] = { + { 0xb0, 4, "GEN_REGRW1" }, + { 0xb4, 4, "GEN_REGRW2" }, + { 0xb8, 4, "GEN_REGRW3" }, + { 0xbc, 4, "GEN_REGRW4" }, + { 0xc0, 4, "GEN_INPUT_REGRW" }, +}; + +/* Registers 19.9 */ +static const io_register_t apollolake_usbx_device_top6[] = { + { 0x00, 4, "DEVVENDID" }, + { 0x04, 4, "STATUSCOMMAND" }, + { 0x08, 4, "REVCLASSCODE" }, + { 0x0c, 4, "CLLATHEADERBIST" }, + { 0x10, 8, "BAR" }, + { 0x18, 8, "BAR1" }, + { 0x2c, 4, "SUBSYSTEMID" }, + { 0x30, 4, "EXPANSION_ROM_BASEADDR" }, + { 0x34, 4, "CAPABILITYPTR" }, + { 0x3c, 4, "INTERRUPTREG" }, + { 0x80, 4, "POWERCAPID" }, + { 0x84, 4, "PMECTRLSTATUS" }, + { 0x90, 4, "PCIDEVIDLE_CAP_RECORD" }, + { 0x94, 4, "DEVID_VEND_SPECIFIC_REG" }, + { 0x98, 4, "D0I3_CONTROL_SW_LTR_MMIO_REG" }, + { 0x9c, 4, "DEVICE_IDLE_POINTER_REG" }, + { 0xa0, 4, "D0I3_MAX_POW_LAT_PG_CONFIG" }, +}; + +/* Registers 19.10 */ +static const io_register_t apollolake_usbx_device_top7[] = { + { 0x00, 4, "DEVVENDID" }, + { 0x04, 4, "STATUSCOMMAND" }, + { 0x08, 4, "REVCLASSCODE" }, + { 0x0c, 4, "CLLATHEADERBIST" }, + { 0x10, 8, "BAR" }, + { 0x18, 8, "BAR1" }, + { 0x2c, 4, "SUBSYSTEMID" }, + { 0x30, 4, "EXPANSION_ROM_BASEADDR" }, + { 0x34, 4, "CAPABILITYPTR" }, + { 0x3c, 4, "INTERRUPTREG" }, + { 0x80, 4, "POWERCAPID" }, + { 0x84, 4, "PMECTRLSTATUS" }, + { 0x90, 4, "PCIDEVIDLE_CAP_RECORD" }, + { 0x94, 4, "DEVID_VEND_SPECIFIC_REG" }, + { 0x98, 4, "D0I3_CONTROL_SW_LTR_MMIO_REG" }, + { 0x9c, 4, "DEVICE_IDLE_POINTER_REG" }, + { 0xa0, 4, "D0I3_MAX_POW_LAT_PG_CONFIG" }, +}; + + int print_usb(struct pci_dev *sb, struct pci_access *pacc) { size_t i, usb_cfg_registers_size, usb_registers_size;