mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 04:23:46 +00:00
c30b7adbca
These functions do not use driver model but are fairly widely used in U-Boot. But it is not clear that they will use driver model anytime soon, so we don't want to label them as 'legacy'. Move them to a new irq_func.h header file. Avoid the name 'irq.h' since it is widely used in U-Boot already. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
79 lines
1.2 KiB
C
79 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2000-2002
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*
|
|
* Copyright 2004 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
#include <irq_func.h>
|
|
#include <mpc83xx.h>
|
|
#include <asm/processor.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
struct irq_action {
|
|
interrupt_handler_t *handler;
|
|
void *arg;
|
|
ulong count;
|
|
};
|
|
|
|
void interrupt_init_cpu (unsigned *decrementer_count)
|
|
{
|
|
volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
|
|
|
|
*decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
|
|
|
|
/* Enable e300 time base */
|
|
|
|
immr->sysconf.spcr |= 0x00400000;
|
|
}
|
|
|
|
|
|
/*
|
|
* Handle external interrupts
|
|
*/
|
|
|
|
void external_interrupt(struct pt_regs *regs)
|
|
{
|
|
}
|
|
|
|
|
|
/*
|
|
* Install and free an interrupt handler.
|
|
*/
|
|
|
|
void
|
|
irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
|
|
{
|
|
}
|
|
|
|
|
|
void irq_free_handler(int irq)
|
|
{
|
|
}
|
|
|
|
|
|
void timer_interrupt_cpu (struct pt_regs *regs)
|
|
{
|
|
/* nothing to do here */
|
|
return;
|
|
}
|
|
|
|
|
|
#if defined(CONFIG_CMD_IRQ)
|
|
|
|
/* ripped this out of ppc4xx/interrupts.c */
|
|
|
|
/*
|
|
* irqinfo - print information about PCI devices
|
|
*/
|
|
|
|
void
|
|
do_irqinfo(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char * const argv[])
|
|
{
|
|
}
|
|
|
|
#endif
|