#include <platform_override.h>
#include <thead/c9xx_errata.h>
+#include <thead/c9xx_pmu.h>
#include <sbi/sbi_const.h>
#include <sbi/sbi_platform.h>
#include <sbi/sbi_scratch.h>
return 0;
}
+static int thead_generic_extensions_init(const struct fdt_match *match,
+ struct sbi_hart_features *hfeatures)
+{
+ thead_c9xx_register_pmu_device();
+ return 0;
+}
+
static struct thead_generic_quirks thead_th1520_quirks = {
.errata = THEAD_QUIRK_ERRATA_TLB_FLUSH,
};
};
const struct platform_override thead_generic = {
- .match_table = thead_generic_match,
- .early_init = thead_generic_early_init,
+ .match_table = thead_generic_match,
+ .early_init = thead_generic_early_init,
+ .extensions_init = thead_generic_extensions_init,
};