| 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * linux/arch/sh/boards/se/7751/irq.c |
| 4 | * |
| 5 | * Copyright (C) 2000 Kazumoto Kojima |
| 6 | * |
| 7 | * Hitachi SolutionEngine Support. |
| 8 | * |
| 9 | * Modified for 7751 Solution Engine by |
| 10 | * Ian da Silva and Jeremy Siegel, 2001. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/irq.h> |
| 15 | #include <asm/irq.h> |
| 16 | #include <mach-se/mach/se7751.h> |
| 17 | |
| 18 | static struct ipr_data ipr_irq_table[] = { |
| 19 | { 13, 3, 3, 2 }, |
| 20 | /* Add additional entries here as drivers are added and tested. */ |
| 21 | }; |
| 22 | |
| 23 | static unsigned long ipr_offsets[] = { |
| 24 | BCR_ILCRA, |
| 25 | BCR_ILCRB, |
| 26 | BCR_ILCRC, |
| 27 | BCR_ILCRD, |
| 28 | BCR_ILCRE, |
| 29 | BCR_ILCRF, |
| 30 | BCR_ILCRG, |
| 31 | }; |
| 32 | |
| 33 | static struct ipr_desc ipr_irq_desc = { |
| 34 | .ipr_offsets = ipr_offsets, |
| 35 | .nr_offsets = ARRAY_SIZE(ipr_offsets), |
| 36 | |
| 37 | .ipr_data = ipr_irq_table, |
| 38 | .nr_irqs = ARRAY_SIZE(ipr_irq_table), |
| 39 | |
| 40 | .chip = { |
| 41 | .name = "IPR-se7751" , |
| 42 | }, |
| 43 | }; |
| 44 | |
| 45 | /* |
| 46 | * Initialize IRQ setting |
| 47 | */ |
| 48 | void __init init_7751se_IRQ(void) |
| 49 | { |
| 50 | register_ipr_controller(&ipr_irq_desc); |
| 51 | } |
| 52 | |