mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
hw/arm/omap: Remove unused omap_mpuio functions
The omap1.c file includes some functions which used to be used by the other OMAP SoC variants which we removed a while ago, but which we missed when doing that removal. They have no callers, so we can delete them. This code was the last user of hw_error() in this file, so we can also remove the hw-error.h include. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260512203414.3633237-3-peter.maydell@linaro.org
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
#include "target/arm/cpu.h"
|
||||
#include "system/address-spaces.h"
|
||||
#include "exec/cpu-common.h"
|
||||
#include "hw/core/hw-error.h"
|
||||
#include "hw/core/irq.h"
|
||||
#include "hw/core/qdev-properties.h"
|
||||
#include "hw/arm/boot.h"
|
||||
@@ -2095,31 +2094,6 @@ static struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory,
|
||||
return s;
|
||||
}
|
||||
|
||||
qemu_irq *omap_mpuio_in_get(struct omap_mpuio_s *s)
|
||||
{
|
||||
return s->in;
|
||||
}
|
||||
|
||||
void omap_mpuio_out_set(struct omap_mpuio_s *s, int line, qemu_irq handler)
|
||||
{
|
||||
if (line >= 16 || line < 0)
|
||||
hw_error("%s: No GPIO line %i\n", __func__, line);
|
||||
s->handler[line] = handler;
|
||||
}
|
||||
|
||||
void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down)
|
||||
{
|
||||
if (row >= 5 || row < 0)
|
||||
hw_error("%s: No key %i-%i\n", __func__, col, row);
|
||||
|
||||
if (down)
|
||||
s->buttons[row] |= 1 << col;
|
||||
else
|
||||
s->buttons[row] &= ~(1 << col);
|
||||
|
||||
omap_mpuio_kbd_update(s);
|
||||
}
|
||||
|
||||
/* MicroWire Interface */
|
||||
struct omap_uwire_s {
|
||||
MemoryRegion iomem;
|
||||
|
||||
@@ -486,9 +486,6 @@ struct omap_uart_s *omap_uart_init(hwaddr base,
|
||||
void omap_uart_reset(struct omap_uart_s *s);
|
||||
|
||||
struct omap_mpuio_s;
|
||||
qemu_irq *omap_mpuio_in_get(struct omap_mpuio_s *s);
|
||||
void omap_mpuio_out_set(struct omap_mpuio_s *s, int line, qemu_irq handler);
|
||||
void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down);
|
||||
|
||||
struct omap_uwire_s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user