interrupt_controller: plic: remove plic.h
Fold plic.h into plic.c as the .h only defined two things that are only used in plic.c. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
2c1e0439c7
commit
d16b9c37af
2 changed files with 4 additions and 16 deletions
|
@ -13,9 +13,12 @@
|
|||
#include <kernel.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <init.h>
|
||||
#include "plic.h"
|
||||
#include <soc.h>
|
||||
|
||||
#include <sw_isr_table.h>
|
||||
|
||||
#define PLIC_IRQS (CONFIG_NUM_IRQS - RISCV_MAX_GENERIC_IRQ)
|
||||
#define PLIC_EN_SIZE ((PLIC_IRQS >> 5) + 1)
|
||||
|
||||
struct plic_regs_t {
|
||||
u32_t threshold_prio;
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Antmicro <www.antmicro.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_PLIC_H_
|
||||
#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_PLIC_H_
|
||||
|
||||
#include <soc.h>
|
||||
|
||||
#define PLIC_IRQS (CONFIG_NUM_IRQS - RISCV_MAX_GENERIC_IRQ)
|
||||
#define PLIC_EN_SIZE ((PLIC_IRQS >> 5) + 1)
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue