mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
78 lines
1.2 KiB
C
78 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 <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
|