mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 06:50:22 +07:00
5017f1cd9b
First rename the config option MACH_U8500 to MACH_MOP500 because that is what it's obviously all about, this has confused me for the last time. Fix some whitespace in the process. Since the machine descriptors for HREFv60 and snowball are clearly in the file board-mop500.c which only compiles if MACH_MOP500 (former MACH_U8500) is set, select this for the board variants and nothing else. For the MOP500 variants the UIB (user interface board) is probed using I2C so select I2C and I2C_NOMADIK so we know that this probe will always be successful. Cc: Arnd Bergmann <arnd@arndb.de> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
57 lines
1.5 KiB
C
57 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2008 STMicroelectronics
|
|
* Copyright (C) 2009 ST-Ericsson.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
#ifndef ASM_ARCH_IRQS_H
|
|
#define ASM_ARCH_IRQS_H
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
#define IRQ_LOCALTIMER 29
|
|
#define IRQ_LOCALWDOG 30
|
|
|
|
/* Shared Peripheral Interrupt (SHPI) */
|
|
#define IRQ_SHPI_START 32
|
|
|
|
/*
|
|
* MTU0 preserved for now until plat-nomadik is taught not to use it. Don't
|
|
* add any other IRQs here, use the irqs-dbx500.h files.
|
|
*/
|
|
#define IRQ_MTU0 (IRQ_SHPI_START + 4)
|
|
|
|
#define DBX500_NR_INTERNAL_IRQS 160
|
|
|
|
/* After chip-specific IRQ numbers we have the GPIO ones */
|
|
#define NOMADIK_NR_GPIO 288
|
|
#define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + DBX500_NR_INTERNAL_IRQS)
|
|
#define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - DBX500_NR_INTERNAL_IRQS)
|
|
#define IRQ_GPIO_END NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)
|
|
|
|
#define IRQ_SOC_START IRQ_GPIO_END
|
|
/* This will be overridden by SoC-specific irq headers */
|
|
#define IRQ_SOC_END IRQ_SOC_START
|
|
|
|
#include <mach/irqs-db5500.h>
|
|
#include <mach/irqs-db8500.h>
|
|
|
|
#define IRQ_BOARD_START IRQ_SOC_END
|
|
/* This will be overridden by board-specific irq headers */
|
|
#define IRQ_BOARD_END IRQ_BOARD_START
|
|
|
|
#ifdef CONFIG_MACH_MOP500
|
|
#include <mach/irqs-board-mop500.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_MACH_U5500
|
|
#include <mach/irqs-board-u5500.h>
|
|
#endif
|
|
|
|
#define NR_IRQS IRQ_BOARD_END
|
|
|
|
#endif /* ASM_ARCH_IRQS_H */
|