cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/plat-samsung/include/plat/sdhci.h

/* linux/arch/arm/plat-samsung/include/plat/sdhci.h
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 *              http://www.samsung.com
 *
 * Copyright 2008 Openmoko, Inc.
 * Copyright 2008 Simtec Electronics
 *      http://armlinux.simtec.co.uk/
 *      Ben Dooks <ben@simtec.co.uk>
 *
 * S3C Platform - SDHCI (HSMMC) platform data definitions
 *
 * 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 __PLAT_S3C_SDHCI_H

#define __PLAT_S3C_SDHCI_H __FILE__

#include <linux/platform_data/mmc-sdhci-s3c.h>
#include <plat/devs.h>

/* s3c_sdhci_set_platdata() - common helper for setting SDHCI platform data
 * @pd: The default platform data for this device.
 * @set: Pointer to the platform data to fill in.
 */
extern void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd,
				    struct s3c_sdhci_platdata *set);

/**
 * s3c_sdhci0_set_platdata - Set platform data for S3C SDHCI device.
 * @pd: Platform data to register to device.
 *
 * Register the given platform data for use withe S3C SDHCI device.
 * The call will copy the platform data, so the board definitions can
 * make the structure itself __initdata.
 */
extern void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd);
extern void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd);
extern void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd);
extern void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd);

/* Default platform data, exported so that per-cpu initialisation can
 * set the correct one when there are more than one cpu type selected.
*/

extern struct s3c_sdhci_platdata s3c_hsmmc0_def_platdata;
extern struct s3c_sdhci_platdata s3c_hsmmc1_def_platdata;
extern struct s3c_sdhci_platdata s3c_hsmmc2_def_platdata;
extern struct s3c_sdhci_platdata s3c_hsmmc3_def_platdata;

/* Helper function availability */

extern void s3c2416_setup_sdhci0_cfg_gpio(struct platform_device *, int w);
extern void s3c2416_setup_sdhci1_cfg_gpio(struct platform_device *, int w);
extern void s3c64xx_setup_sdhci0_cfg_gpio(struct platform_device *, int w);
extern void s3c64xx_setup_sdhci1_cfg_gpio(struct platform_device *, int w);
extern void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *, int w);

/* S3C2416 SDHCI setup */

#ifdef CONFIG_S3C2416_SETUP_SDHCI

static inline void s3c2416_default_sdhci0(void) { #ifdef CONFIG_S3C_DEV_HSMMC s3c_hsmmc0_def_platdata.cfg_gpio = s3c2416_setup_sdhci0_cfg_gpio; #endif /* CONFIG_S3C_DEV_HSMMC */ }

Contributors

PersonTokensPropCommitsCommitProp
Yauhen Kharuzhy21100.00%1100.00%
Total21100.00%1100.00%


static inline void s3c2416_default_sdhci1(void) { #ifdef CONFIG_S3C_DEV_HSMMC1 s3c_hsmmc1_def_platdata.cfg_gpio = s3c2416_setup_sdhci1_cfg_gpio; #endif /* CONFIG_S3C_DEV_HSMMC1 */ }

Contributors

PersonTokensPropCommitsCommitProp
Yauhen Kharuzhy21100.00%1100.00%
Total21100.00%1100.00%

#else
static inline void s3c2416_default_sdhci0(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Yauhen Kharuzhy8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c2416_default_sdhci1(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Yauhen Kharuzhy8100.00%1100.00%
Total8100.00%1100.00%

#endif /* CONFIG_S3C2416_SETUP_SDHCI */ /* S3C64XX SDHCI setup */ #ifdef CONFIG_S3C64XX_SETUP_SDHCI
static inline void s3c6400_default_sdhci0(void) { #ifdef CONFIG_S3C_DEV_HSMMC s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks1680.00%150.00%
Kukjin Kim420.00%150.00%
Total20100.00%2100.00%


static inline void s3c6400_default_sdhci1(void) { #ifdef CONFIG_S3C_DEV_HSMMC1 s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks1680.00%150.00%
Kukjin Kim420.00%150.00%
Total20100.00%2100.00%


static inline void s3c6400_default_sdhci2(void) { #ifdef CONFIG_S3C_DEV_HSMMC2 s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Maurus Cuelenaere1680.00%150.00%
Kukjin Kim420.00%150.00%
Total20100.00%2100.00%


static inline void s3c6410_default_sdhci0(void) { #ifdef CONFIG_S3C_DEV_HSMMC s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks1680.00%375.00%
Kukjin Kim420.00%125.00%
Total20100.00%4100.00%


static inline void s3c6410_default_sdhci1(void) { #ifdef CONFIG_S3C_DEV_HSMMC1 s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks1680.00%375.00%
Kukjin Kim420.00%125.00%
Total20100.00%4100.00%


static inline void s3c6410_default_sdhci2(void) { #ifdef CONFIG_S3C_DEV_HSMMC2 s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; #endif }

Contributors

PersonTokensPropCommitsCommitProp
Maurus Cuelenaere1680.00%150.00%
Kukjin Kim420.00%150.00%
Total20100.00%2100.00%

#else
static inline void s3c6410_default_sdhci0(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c6410_default_sdhci1(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c6410_default_sdhci2(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Marek Szyprowski8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c6400_default_sdhci0(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c6400_default_sdhci1(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks8100.00%1100.00%
Total8100.00%1100.00%


static inline void s3c6400_default_sdhci2(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Marek Szyprowski8100.00%1100.00%
Total8100.00%1100.00%

#endif /* CONFIG_S3C64XX_SETUP_SDHCI */
static inline void s3c_sdhci_setname(int id, char *name) { switch (id) { #ifdef CONFIG_S3C_DEV_HSMMC case 0: s3c_device_hsmmc0.name = name; break; #endif #ifdef CONFIG_S3C_DEV_HSMMC1 case 1: s3c_device_hsmmc1.name = name; break; #endif #ifdef CONFIG_S3C_DEV_HSMMC2 case 2: s3c_device_hsmmc2.name = name; break; #endif #ifdef CONFIG_S3C_DEV_HSMMC3 case 3: s3c_device_hsmmc3.name = name; break; #endif default: break; } }

Contributors

PersonTokensPropCommitsCommitProp
Thomas Abraham8097.56%150.00%
Sachin Kamat22.44%150.00%
Total82100.00%2100.00%

#endif /* __PLAT_S3C_SDHCI_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks17035.27%529.41%
Yauhen Kharuzhy9118.88%15.88%
Thomas Abraham8317.22%15.88%
Maurus Cuelenaere428.71%15.88%
Kukjin Kim265.39%211.76%
Kyungmin Park173.53%15.88%
Banajit Goswami163.32%15.88%
Marek Szyprowski163.32%15.88%
Hyuk Lee153.11%15.88%
Arnd Bergmann30.62%15.88%
Sachin Kamat20.41%15.88%
Lucas De Marchi10.21%15.88%
Total482100.00%17100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.