[hw/top_earlgrey] Add meson targets for AST/SENSOR_CTRL registers
Signed-off-by: Michael Munday <mike.munday@lowrisc.org>
diff --git a/hw/top_earlgrey/ip/ast/data/BUILD b/hw/top_earlgrey/ip/ast/data/BUILD
index 36beb77..a3498f6 100644
--- a/hw/top_earlgrey/ip/ast/data/BUILD
+++ b/hw/top_earlgrey/ip/ast/data/BUILD
@@ -8,3 +8,12 @@
name = "all_files",
srcs = glob(["**"]),
)
+
+load("//rules:autogen.bzl", "autogen_hjson_header")
+
+autogen_hjson_header(
+ name = "ast_regs",
+ srcs = [
+ "ast.hjson",
+ ],
+)
diff --git a/meson.build b/meson.build
index 4c38d23..3463230 100644
--- a/meson.build
+++ b/meson.build
@@ -242,6 +242,8 @@
hw_ip_ibex_reg_h = gen_hw_hdr.process('hw//ip/rv_core_ibex/data/rv_core_ibex.hjson')
hw_top_earlgrey_pinmux_reg_h = gen_hw_hdr.process('hw/' + TOPNAME + '/ip/pinmux/data/autogen/pinmux.hjson')
hw_top_earlgrey_rv_plic_reg_h = gen_hw_hdr.process('hw/' + TOPNAME + '/ip_autogen/rv_plic/data/rv_plic.hjson')
+hw_ip_ast_reg_h = gen_hw_hdr.process('hw/' + TOPNAME + '/ip/ast/data/ast.hjson')
+hw_ip_sensor_ctrl_reg_h = gen_hw_hdr.process('hw/' + TOPNAME + '/ip/sensor_ctrl/data/sensor_ctrl.hjson')
# Top Earlgrey library (top_earlgrey)
# The sources for this are generated into the hw hierarchy.