Re: [PATCH 6/9] accel/rocket: Add a new driver for Rockchip's NPU

From: Zenghui Yu
Date: Tue Jul 09 2024 - 03:30:12 EST


On 2024/6/12 21:52, Tomeu Vizoso wrote:
This initial version supports the NPU as shipped in the RK3588 SoC and
described in the first part of its TRM, in Chapter 36.

This NPU contains 3 independent cores that the driver can submit jobs
to.

This commit adds just hardware initialization and power management.

Signed-off-by: Tomeu Vizoso <tomeu@xxxxxxxxxxxxxxx>

[...]

+void rocket_core_reset(struct rocket_core *core)
+{
+ reset_control_assert(core->a_reset);
+ reset_control_assert(core->h_reset);
+
+ udelay(10);
+
+ reset_control_deassert(core->a_reset);
+ reset_control_deassert(core->h_reset);
+}

Seems unused.

+void rocket_core_reset(struct rocket_core *core);

+void rocket_device_reset(struct rocket_device *rdev);

Ditto.