Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *		http://www.samsung.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (c) 2004 Simtec Electronics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Ben Dooks <ben@simtec.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Header file for s3c2410 standard platform devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef __PLAT_DEVS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define __PLAT_DEVS_H __FILE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct s3c24xx_uart_resources {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	struct resource		*resources;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	unsigned long		 nr_resources;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern struct s3c24xx_uart_resources s3c2410_uart_resources[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern struct s3c24xx_uart_resources s3c64xx_uart_resources[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern struct platform_device *s3c24xx_uart_devs[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern struct platform_device *s3c24xx_uart_src[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern struct platform_device s3c64xx_device_ac97;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern struct platform_device s3c64xx_device_iis0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern struct platform_device s3c64xx_device_iis1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern struct platform_device s3c64xx_device_iisv4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern struct platform_device s3c64xx_device_onenand1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern struct platform_device s3c64xx_device_pcm0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern struct platform_device s3c64xx_device_pcm1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) extern struct platform_device s3c64xx_device_spi0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern struct platform_device s3c64xx_device_spi1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern struct platform_device s3c64xx_device_spi2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) extern struct platform_device s3c_device_adc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) extern struct platform_device s3c_device_cfcon;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) extern struct platform_device s3c_device_fb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) extern struct platform_device s3c_device_hwmon;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) extern struct platform_device s3c_device_hsmmc0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) extern struct platform_device s3c_device_hsmmc1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) extern struct platform_device s3c_device_hsmmc2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) extern struct platform_device s3c_device_hsmmc3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) extern struct platform_device s3c_device_i2c0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) extern struct platform_device s3c_device_i2c1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) extern struct platform_device s3c_device_i2c2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) extern struct platform_device s3c_device_i2c3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) extern struct platform_device s3c_device_i2c4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) extern struct platform_device s3c_device_i2c5;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) extern struct platform_device s3c_device_i2c6;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) extern struct platform_device s3c_device_i2c7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) extern struct platform_device s3c_device_iis;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) extern struct platform_device s3c_device_lcd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) extern struct platform_device s3c_device_nand;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) extern struct platform_device s3c_device_ohci;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) extern struct platform_device s3c_device_onenand;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) extern struct platform_device s3c_device_rtc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) extern struct platform_device s3c_device_sdi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) extern struct platform_device s3c_device_spi0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) extern struct platform_device s3c_device_spi1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) extern struct platform_device s3c_device_ts;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) extern struct platform_device s3c_device_timer[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) extern struct platform_device s3c_device_usbgadget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) extern struct platform_device s3c_device_usb_hsotg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) extern struct platform_device s3c_device_usb_hsudc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) extern struct platform_device s3c_device_wdt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) extern struct platform_device samsung_asoc_idma;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) extern struct platform_device samsung_device_keypad;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) extern struct platform_device samsung_device_pwm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) /* s3c2440 specific devices */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #ifdef CONFIG_CPU_S3C2440
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) extern struct platform_device s3c_device_camif;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) extern struct platform_device s3c_device_ac97;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)  * s3c_set_platdata() - helper for setting platform data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)  * @pd: The default platform data for this device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)  * @pdsize: The size of the platform data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)  * @pdev: Pointer to the device to fill in.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90)  * This helper replaces a number of calls that copy and then set the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)  * platform data of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) extern void *s3c_set_platdata(void *pd, size_t pdsize,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) 			      struct platform_device *pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) #endif /* __PLAT_DEVS_H */