This doesn't currently generate any interrupts (as there doesn't appear
to be any documentation to *when* it would even do so), but since the
HRM does say an interrupt line exists between the OTP and the SIC, add
one for completeness sake. This will make a follow up patch easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+2011-04-01 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-bfin_otp.c (bfin_otp_ports): Declare.
+ (bfin_otp_finish): Call set_hw_ports with bfin_otp_ports.
+
2011-03-29 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate after common/aclocal.m4 changes.
otp->base = attach_address;
}
+static const struct hw_port_descriptor bfin_otp_ports[] =
+{
+ { "stat", 0, 0, output_port, },
+ { NULL, 0, 0, 0, },
+};
+
static void
bfin_otp_finish (struct hw *me)
{
set_hw_data (me, otp);
set_hw_io_read_buffer (me, bfin_otp_io_read_buffer);
set_hw_io_write_buffer (me, bfin_otp_io_write_buffer);
+ set_hw_ports (me, bfin_otp_ports);
attach_bfin_otp_regs (me, otp);