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:
Kumar Gala 2019-08-08 23:07:08 -05:00 committed by Kumar Gala
commit d16b9c37af
2 changed files with 4 additions and 16 deletions

View file

@ -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;

View file

@ -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