mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
088efd9273
Tie in the Emma Mobile GPIO driver "em-gio" to support the GPIOs on Emma Mobile EV2. A static IRQ range is used to allow boards to hook up their platform devices to the GPIOs. DT support is still on the TODO for the GPIO driver, so only platform device support is included here. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
20 lines
652 B
C
20 lines
652 B
C
#ifndef __ASM_EMEV2_H__
|
|
#define __ASM_EMEV2_H__
|
|
|
|
extern void emev2_map_io(void);
|
|
extern void emev2_init_irq(void);
|
|
extern void emev2_add_early_devices(void);
|
|
extern void emev2_add_standard_devices(void);
|
|
extern void emev2_clock_init(void);
|
|
extern void emev2_set_boot_vector(unsigned long value);
|
|
extern unsigned int emev2_get_core_count(void);
|
|
extern int emev2_platform_cpu_kill(unsigned int cpu);
|
|
extern void emev2_secondary_init(unsigned int cpu);
|
|
extern int emev2_boot_secondary(unsigned int cpu);
|
|
extern void emev2_smp_prepare_cpus(void);
|
|
|
|
#define EMEV2_GPIO_BASE 200
|
|
#define EMEV2_GPIO_IRQ(n) (EMEV2_GPIO_BASE + (n))
|
|
|
|
#endif /* __ASM_EMEV2_H__ */
|