return ret;
 }
 
+bool baco_program_registers(struct pp_hwmgr *hwmgr,
+                           const struct baco_cmd_entry *entry,
+                           const u32 array_size)
+{
+       u32 i, reg = 0;
+
+       for (i = 0; i < array_size; i++) {
+               if ((entry[i].cmd == CMD_WRITE) ||
+                   (entry[i].cmd == CMD_READMODIFYWRITE) ||
+                   (entry[i].cmd == CMD_WAITFOR))
+                       reg = entry[i].reg_offset;
+               if (!baco_cmd_handler(hwmgr, entry[i].cmd, reg, entry[i].mask,
+                                    entry[i].shift, entry[i].val, entry[i].timeout))
+                       return false;
+       }
+
+       return true;
+}
+
 bool soc15_baco_program_registers(struct pp_hwmgr *hwmgr,
                                 const struct soc15_baco_cmd_entry *entry,
                                 const u32 array_size)
 
        CMD_DELAY_US,
 };
 
+struct baco_cmd_entry {
+       enum baco_cmd_type cmd;
+       uint32_t        reg_offset;
+       uint32_t        mask;
+       uint32_t        shift;
+       uint32_t        timeout;
+       uint32_t        val;
+};
+
 struct soc15_baco_cmd_entry {
        enum baco_cmd_type cmd;
        uint32_t        hwip;
        uint32_t        timeout;
        uint32_t        val;
 };
+
+extern bool baco_program_registers(struct pp_hwmgr *hwmgr,
+                                  const struct baco_cmd_entry *entry,
+                                  const u32 array_size);
 extern bool soc15_baco_program_registers(struct pp_hwmgr *hwmgr,
                                        const struct soc15_baco_cmd_entry *entry,
                                        const u32 array_size);