mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 09:16:38 +07:00
ec976d6eb0
Move all the gpio functions out of <mach/hardware.h> as this file is for defining the generic IO base addresses for the kernel IO calls. Make a new header <mach/gpio-fns.h> to take this and include it via the chain from <linux/gpio.h> which is what most of these files should be using (and will be changed as soon as possible). Note, this does make minor changes to some drivers but should not mess up any pending merges. CC: Richard Purdie <rpurdie@rpsys.net> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> CC: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/* arch/arm/mach-s3c2410/include/mach/hardware.h
|
|
*
|
|
* Copyright (c) 2003 Simtec Electronics
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
*
|
|
* S3C2410 - hardware
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_HARDWARE_H
|
|
#define __ASM_ARCH_HARDWARE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
|
|
|
|
#ifdef CONFIG_CPU_S3C2440
|
|
|
|
extern int s3c2440_set_dsc(unsigned int pin, unsigned int value);
|
|
|
|
#endif /* CONFIG_CPU_S3C2440 */
|
|
|
|
#ifdef CONFIG_CPU_S3C2412
|
|
|
|
extern int s3c2412_gpio_set_sleepcfg(unsigned int pin, unsigned int state);
|
|
|
|
#endif /* CONFIG_CPU_S3C2412 */
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#include <asm/sizes.h>
|
|
#include <mach/map.h>
|
|
|
|
/* machine specific hardware definitions should go after this */
|
|
|
|
/* currently here until moved into config (todo) */
|
|
#define CONFIG_NO_MULTIWORD_IO
|
|
|
|
#endif /* __ASM_ARCH_HARDWARE_H */
|