forked from luck/tmp_suning_uos_patched
Pin control fixes for v4.16:
- One fix to the Renesas SH-PFC driver removing a duplicate clkout pin which was causing crashes. - One fix to the Samsung driver for out of bounds exceptions. -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJatSn5AAoJEEEQszewGV1zh6cP/2Lib4XM+mJXGMaiBNOHkT5l ZWJ+6jbicVl2q0b0bmqA4VgxWmXayVPHaXwo52IuITWX4wizsXen4ihlIS8EEHug ot7jjLK3D4E4eWNe30T34NoR3bQ+lfEyDEwb1nwXmixvUT0s6Otc7zBeZqGMubw1 D55TlcsURGG0C+iJLmmRLRrw1FIwfK/XatFeV9JHoPLch5KsUz+YnrhQ6LGb1ZQT 9JE7cJzHFYeApEiY5Trc94gD2xCmjjECwAQ6j+80fKl7X0tASk6piZR8l3f0e7dN RoSrR2F8H6uHnkzrN/ZLA0YwdLqU7hljmULorj7IaFc7JjoCMbpaK++Ylo/bqYAO MKtnzAVJQNcE1u0RURHAteZ/iTgwaulfIR5n0431pnEt9RvdBgbwTSiTnAGqZmTM m7pt2+wEpUUPZdtTIvWp9OCQmh/1qeLNGhBmaagfXZ3WW6jHf/qVphZDEgta4VVs oqNW4nBkfRjp4rtcN3QMY4+8ZMMMI7DUM0v1oidqSeti/PaOGFQ/8oHU7aLetxnc SmoymwHfRQCFPHXzilDiaDqB+WXwyXC1JiWAM1mzUs/pgEor31W6gEfcUtPJ2szo LbyOLhKaNVfXuUHiMU+w7GnLZEu8FRzb7xt9o1AguPt16IzNUhXvmq0Ig8ijoYWP +MJXKqcGmKC/MQ/YXArC =1Y8Z -----END PGP SIGNATURE----- Merge tag 'pinctrl-v4.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl Pull pin control fixes from Linus Walleij: "Two fixes for pin control for v4.16: - Renesas SH-PFC: remove a duplicate clkout pin which was causing crashes - fix Samsung out of bounds exceptions" * tag 'pinctrl-v4.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: samsung: Validate alias coming from DT pinctrl: sh-pfc: r8a7795: remove duplicate of CLKOUT pin in pinmux_pins[]
This commit is contained in:
commit
bcfc1f4554
@ -124,7 +124,7 @@ static const struct samsung_pin_bank_data s5pv210_pin_bank[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTW(8, 0xc60, "gph3", 0x0c),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl s5pv210_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s5pv210_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = s5pv210_pin_bank,
|
||||
@ -137,6 +137,11 @@ const struct samsung_pin_ctrl s5pv210_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s5pv210_of_data __initconst = {
|
||||
.ctrl = s5pv210_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s5pv210_pin_ctrl),
|
||||
};
|
||||
|
||||
/* Pad retention control code for accessing PMU regmap */
|
||||
static atomic_t exynos_shared_retention_refcnt;
|
||||
|
||||
@ -199,7 +204,7 @@ static const struct samsung_retention_data exynos3250_retention_data __initconst
|
||||
* Samsung pinctrl driver data for Exynos3250 SoC. Exynos3250 SoC includes
|
||||
* two gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos3250_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos3250_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos3250_pin_banks0,
|
||||
@ -220,6 +225,11 @@ const struct samsung_pin_ctrl exynos3250_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos3250_of_data __initconst = {
|
||||
.ctrl = exynos3250_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos3250_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos4210 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos4210_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
|
||||
@ -303,7 +313,7 @@ static const struct samsung_retention_data exynos4_audio_retention_data __initco
|
||||
* Samsung pinctrl driver data for Exynos4210 SoC. Exynos4210 SoC includes
|
||||
* three gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos4210_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos4210_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos4210_pin_banks0,
|
||||
@ -329,6 +339,11 @@ const struct samsung_pin_ctrl exynos4210_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos4210_of_data __initconst = {
|
||||
.ctrl = exynos4210_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos4210_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos4x12 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos4x12_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
|
||||
@ -391,7 +406,7 @@ static const struct samsung_pin_bank_data exynos4x12_pin_banks3[] __initconst =
|
||||
* Samsung pinctrl driver data for Exynos4x12 SoC. Exynos4x12 SoC includes
|
||||
* four gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos4x12_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos4x12_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos4x12_pin_banks0,
|
||||
@ -427,6 +442,11 @@ const struct samsung_pin_ctrl exynos4x12_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos4x12_of_data __initconst = {
|
||||
.ctrl = exynos4x12_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos4x12_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos5250 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos5250_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
|
||||
@ -487,7 +507,7 @@ static const struct samsung_pin_bank_data exynos5250_pin_banks3[] __initconst =
|
||||
* Samsung pinctrl driver data for Exynos5250 SoC. Exynos5250 SoC includes
|
||||
* four gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos5250_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos5250_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos5250_pin_banks0,
|
||||
@ -523,6 +543,11 @@ const struct samsung_pin_ctrl exynos5250_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos5250_of_data __initconst = {
|
||||
.ctrl = exynos5250_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos5250_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos5260 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos5260_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(4, 0x000, "gpa0", 0x00),
|
||||
@ -567,7 +592,7 @@ static const struct samsung_pin_bank_data exynos5260_pin_banks2[] __initconst =
|
||||
* Samsung pinctrl driver data for Exynos5260 SoC. Exynos5260 SoC includes
|
||||
* three gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos5260_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos5260_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos5260_pin_banks0,
|
||||
@ -587,6 +612,11 @@ const struct samsung_pin_ctrl exynos5260_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos5260_of_data __initconst = {
|
||||
.ctrl = exynos5260_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos5260_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos5410 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos5410_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpa0", 0x00),
|
||||
@ -657,7 +687,7 @@ static const struct samsung_pin_bank_data exynos5410_pin_banks3[] __initconst =
|
||||
* Samsung pinctrl driver data for Exynos5410 SoC. Exynos5410 SoC includes
|
||||
* four gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos5410_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos5410_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos5410_pin_banks0,
|
||||
@ -690,6 +720,11 @@ const struct samsung_pin_ctrl exynos5410_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos5410_of_data __initconst = {
|
||||
.ctrl = exynos5410_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos5410_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos5420 pin-controller 0 */
|
||||
static const struct samsung_pin_bank_data exynos5420_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpy7", 0x00),
|
||||
@ -774,7 +809,7 @@ static const struct samsung_retention_data exynos5420_retention_data __initconst
|
||||
* Samsung pinctrl driver data for Exynos5420 SoC. Exynos5420 SoC includes
|
||||
* four gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos5420_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos5420_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos5420_pin_banks0,
|
||||
@ -808,3 +843,8 @@ const struct samsung_pin_ctrl exynos5420_pin_ctrl[] __initconst = {
|
||||
.retention_data = &exynos4_audio_retention_data,
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos5420_of_data __initconst = {
|
||||
.ctrl = exynos5420_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos5420_pin_ctrl),
|
||||
};
|
||||
|
@ -175,7 +175,7 @@ static const struct samsung_retention_data exynos5433_fsys_retention_data __init
|
||||
* Samsung pinctrl driver data for Exynos5433 SoC. Exynos5433 SoC includes
|
||||
* ten gpio/pin-mux/pinconfig controllers.
|
||||
*/
|
||||
const struct samsung_pin_ctrl exynos5433_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos5433_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 data */
|
||||
.pin_banks = exynos5433_pin_banks0,
|
||||
@ -260,6 +260,11 @@ const struct samsung_pin_ctrl exynos5433_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos5433_of_data __initconst = {
|
||||
.ctrl = exynos5433_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos5433_pin_ctrl),
|
||||
};
|
||||
|
||||
/* pin banks of exynos7 pin-controller - ALIVE */
|
||||
static const struct samsung_pin_bank_data exynos7_pin_banks0[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTW(8, 0x000, "gpa0", 0x00),
|
||||
@ -339,7 +344,7 @@ static const struct samsung_pin_bank_data exynos7_pin_banks9[] __initconst = {
|
||||
EXYNOS_PIN_BANK_EINTG(4, 0x020, "gpz1", 0x04),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 0 Alive data */
|
||||
.pin_banks = exynos7_pin_banks0,
|
||||
@ -392,3 +397,8 @@ const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = {
|
||||
.eint_gpio_init = exynos_eint_gpio_init,
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data exynos7_of_data __initconst = {
|
||||
.ctrl = exynos7_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(exynos7_pin_ctrl),
|
||||
};
|
||||
|
@ -565,7 +565,7 @@ static const struct samsung_pin_bank_data s3c2412_pin_banks[] __initconst = {
|
||||
PIN_BANK_2BIT(13, 0x080, "gpj"),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl s3c2412_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s3c2412_pin_ctrl[] __initconst = {
|
||||
{
|
||||
.pin_banks = s3c2412_pin_banks,
|
||||
.nr_banks = ARRAY_SIZE(s3c2412_pin_banks),
|
||||
@ -573,6 +573,11 @@ const struct samsung_pin_ctrl s3c2412_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s3c2412_of_data __initconst = {
|
||||
.ctrl = s3c2412_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s3c2412_pin_ctrl),
|
||||
};
|
||||
|
||||
static const struct samsung_pin_bank_data s3c2416_pin_banks[] __initconst = {
|
||||
PIN_BANK_A(27, 0x000, "gpa"),
|
||||
PIN_BANK_2BIT(11, 0x010, "gpb"),
|
||||
@ -587,7 +592,7 @@ static const struct samsung_pin_bank_data s3c2416_pin_banks[] __initconst = {
|
||||
PIN_BANK_2BIT(2, 0x100, "gpm"),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl s3c2416_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s3c2416_pin_ctrl[] __initconst = {
|
||||
{
|
||||
.pin_banks = s3c2416_pin_banks,
|
||||
.nr_banks = ARRAY_SIZE(s3c2416_pin_banks),
|
||||
@ -595,6 +600,11 @@ const struct samsung_pin_ctrl s3c2416_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s3c2416_of_data __initconst = {
|
||||
.ctrl = s3c2416_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s3c2416_pin_ctrl),
|
||||
};
|
||||
|
||||
static const struct samsung_pin_bank_data s3c2440_pin_banks[] __initconst = {
|
||||
PIN_BANK_A(25, 0x000, "gpa"),
|
||||
PIN_BANK_2BIT(11, 0x010, "gpb"),
|
||||
@ -607,7 +617,7 @@ static const struct samsung_pin_bank_data s3c2440_pin_banks[] __initconst = {
|
||||
PIN_BANK_2BIT(13, 0x0d0, "gpj"),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl s3c2440_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s3c2440_pin_ctrl[] __initconst = {
|
||||
{
|
||||
.pin_banks = s3c2440_pin_banks,
|
||||
.nr_banks = ARRAY_SIZE(s3c2440_pin_banks),
|
||||
@ -615,6 +625,11 @@ const struct samsung_pin_ctrl s3c2440_pin_ctrl[] __initconst = {
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s3c2440_of_data __initconst = {
|
||||
.ctrl = s3c2440_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s3c2440_pin_ctrl),
|
||||
};
|
||||
|
||||
static const struct samsung_pin_bank_data s3c2450_pin_banks[] __initconst = {
|
||||
PIN_BANK_A(28, 0x000, "gpa"),
|
||||
PIN_BANK_2BIT(11, 0x010, "gpb"),
|
||||
@ -630,10 +645,15 @@ static const struct samsung_pin_bank_data s3c2450_pin_banks[] __initconst = {
|
||||
PIN_BANK_2BIT(2, 0x100, "gpm"),
|
||||
};
|
||||
|
||||
const struct samsung_pin_ctrl s3c2450_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s3c2450_pin_ctrl[] __initconst = {
|
||||
{
|
||||
.pin_banks = s3c2450_pin_banks,
|
||||
.nr_banks = ARRAY_SIZE(s3c2450_pin_banks),
|
||||
.eint_wkup_init = s3c24xx_eint_init,
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s3c2450_of_data __initconst = {
|
||||
.ctrl = s3c2450_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s3c2450_pin_ctrl),
|
||||
};
|
||||
|
@ -789,7 +789,7 @@ static const struct samsung_pin_bank_data s3c64xx_pin_banks0[] __initconst = {
|
||||
* Samsung pinctrl driver data for S3C64xx SoC. S3C64xx SoC includes
|
||||
* one gpio/pin-mux/pinconfig controller.
|
||||
*/
|
||||
const struct samsung_pin_ctrl s3c64xx_pin_ctrl[] __initconst = {
|
||||
static const struct samsung_pin_ctrl s3c64xx_pin_ctrl[] __initconst = {
|
||||
{
|
||||
/* pin-controller instance 1 data */
|
||||
.pin_banks = s3c64xx_pin_banks0,
|
||||
@ -798,3 +798,8 @@ const struct samsung_pin_ctrl s3c64xx_pin_ctrl[] __initconst = {
|
||||
.eint_wkup_init = s3c64xx_eint_eint0_init,
|
||||
},
|
||||
};
|
||||
|
||||
const struct samsung_pinctrl_of_match_data s3c64xx_of_data __initconst = {
|
||||
.ctrl = s3c64xx_pin_ctrl,
|
||||
.num_ctrl = ARRAY_SIZE(s3c64xx_pin_ctrl),
|
||||
};
|
||||
|
@ -942,12 +942,33 @@ static int samsung_gpiolib_register(struct platform_device *pdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct samsung_pin_ctrl *
|
||||
samsung_pinctrl_get_soc_data_for_of_alias(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *node = pdev->dev.of_node;
|
||||
const struct samsung_pinctrl_of_match_data *of_data;
|
||||
int id;
|
||||
|
||||
id = of_alias_get_id(node, "pinctrl");
|
||||
if (id < 0) {
|
||||
dev_err(&pdev->dev, "failed to get alias id\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
of_data = of_device_get_match_data(&pdev->dev);
|
||||
if (id >= of_data->num_ctrl) {
|
||||
dev_err(&pdev->dev, "invalid alias id %d\n", id);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return &(of_data->ctrl[id]);
|
||||
}
|
||||
|
||||
/* retrieve the soc specific data */
|
||||
static const struct samsung_pin_ctrl *
|
||||
samsung_pinctrl_get_soc_data(struct samsung_pinctrl_drv_data *d,
|
||||
struct platform_device *pdev)
|
||||
{
|
||||
int id;
|
||||
struct device_node *node = pdev->dev.of_node;
|
||||
struct device_node *np;
|
||||
const struct samsung_pin_bank_data *bdata;
|
||||
@ -957,13 +978,9 @@ samsung_pinctrl_get_soc_data(struct samsung_pinctrl_drv_data *d,
|
||||
void __iomem *virt_base[SAMSUNG_PINCTRL_NUM_RESOURCES];
|
||||
unsigned int i;
|
||||
|
||||
id = of_alias_get_id(node, "pinctrl");
|
||||
if (id < 0) {
|
||||
dev_err(&pdev->dev, "failed to get alias id\n");
|
||||
ctrl = samsung_pinctrl_get_soc_data_for_of_alias(pdev);
|
||||
if (!ctrl)
|
||||
return ERR_PTR(-ENOENT);
|
||||
}
|
||||
ctrl = of_device_get_match_data(&pdev->dev);
|
||||
ctrl += id;
|
||||
|
||||
d->suspend = ctrl->suspend;
|
||||
d->resume = ctrl->resume;
|
||||
@ -1188,41 +1205,41 @@ static int __maybe_unused samsung_pinctrl_resume(struct device *dev)
|
||||
static const struct of_device_id samsung_pinctrl_dt_match[] = {
|
||||
#ifdef CONFIG_PINCTRL_EXYNOS_ARM
|
||||
{ .compatible = "samsung,exynos3250-pinctrl",
|
||||
.data = exynos3250_pin_ctrl },
|
||||
.data = &exynos3250_of_data },
|
||||
{ .compatible = "samsung,exynos4210-pinctrl",
|
||||
.data = exynos4210_pin_ctrl },
|
||||
.data = &exynos4210_of_data },
|
||||
{ .compatible = "samsung,exynos4x12-pinctrl",
|
||||
.data = exynos4x12_pin_ctrl },
|
||||
.data = &exynos4x12_of_data },
|
||||
{ .compatible = "samsung,exynos5250-pinctrl",
|
||||
.data = exynos5250_pin_ctrl },
|
||||
.data = &exynos5250_of_data },
|
||||
{ .compatible = "samsung,exynos5260-pinctrl",
|
||||
.data = exynos5260_pin_ctrl },
|
||||
.data = &exynos5260_of_data },
|
||||
{ .compatible = "samsung,exynos5410-pinctrl",
|
||||
.data = exynos5410_pin_ctrl },
|
||||
.data = &exynos5410_of_data },
|
||||
{ .compatible = "samsung,exynos5420-pinctrl",
|
||||
.data = exynos5420_pin_ctrl },
|
||||
.data = &exynos5420_of_data },
|
||||
{ .compatible = "samsung,s5pv210-pinctrl",
|
||||
.data = s5pv210_pin_ctrl },
|
||||
.data = &s5pv210_of_data },
|
||||
#endif
|
||||
#ifdef CONFIG_PINCTRL_EXYNOS_ARM64
|
||||
{ .compatible = "samsung,exynos5433-pinctrl",
|
||||
.data = exynos5433_pin_ctrl },
|
||||
.data = &exynos5433_of_data },
|
||||
{ .compatible = "samsung,exynos7-pinctrl",
|
||||
.data = exynos7_pin_ctrl },
|
||||
.data = &exynos7_of_data },
|
||||
#endif
|
||||
#ifdef CONFIG_PINCTRL_S3C64XX
|
||||
{ .compatible = "samsung,s3c64xx-pinctrl",
|
||||
.data = s3c64xx_pin_ctrl },
|
||||
.data = &s3c64xx_of_data },
|
||||
#endif
|
||||
#ifdef CONFIG_PINCTRL_S3C24XX
|
||||
{ .compatible = "samsung,s3c2412-pinctrl",
|
||||
.data = s3c2412_pin_ctrl },
|
||||
.data = &s3c2412_of_data },
|
||||
{ .compatible = "samsung,s3c2416-pinctrl",
|
||||
.data = s3c2416_pin_ctrl },
|
||||
.data = &s3c2416_of_data },
|
||||
{ .compatible = "samsung,s3c2440-pinctrl",
|
||||
.data = s3c2440_pin_ctrl },
|
||||
.data = &s3c2440_of_data },
|
||||
{ .compatible = "samsung,s3c2450-pinctrl",
|
||||
.data = s3c2450_pin_ctrl },
|
||||
.data = &s3c2450_of_data },
|
||||
#endif
|
||||
{},
|
||||
};
|
||||
|
@ -281,6 +281,16 @@ struct samsung_pinctrl_drv_data {
|
||||
void (*resume)(struct samsung_pinctrl_drv_data *);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct samsung_pinctrl_of_match_data: OF match device specific configuration data.
|
||||
* @ctrl: array of pin controller data.
|
||||
* @num_ctrl: size of array @ctrl.
|
||||
*/
|
||||
struct samsung_pinctrl_of_match_data {
|
||||
const struct samsung_pin_ctrl *ctrl;
|
||||
unsigned int num_ctrl;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct samsung_pin_group: represent group of pins of a pinmux function.
|
||||
* @name: name of the pin group, used to lookup the group.
|
||||
@ -309,20 +319,20 @@ struct samsung_pmx_func {
|
||||
};
|
||||
|
||||
/* list of all exported SoC specific data */
|
||||
extern const struct samsung_pin_ctrl exynos3250_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos4210_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos4x12_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos5250_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos5260_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos5410_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos5420_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos5433_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl exynos7_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s3c64xx_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s3c2412_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s3c2416_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s3c2440_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s3c2450_pin_ctrl[];
|
||||
extern const struct samsung_pin_ctrl s5pv210_pin_ctrl[];
|
||||
extern const struct samsung_pinctrl_of_match_data exynos3250_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos4210_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos4x12_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos5250_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos5260_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos5410_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos5420_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos5433_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data exynos7_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s3c64xx_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s3c2412_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s3c2416_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s3c2440_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s3c2450_of_data;
|
||||
extern const struct samsung_pinctrl_of_match_data s5pv210_of_data;
|
||||
|
||||
#endif /* __PINCTRL_SAMSUNG_H */
|
||||
|
@ -1538,7 +1538,6 @@ static const struct sh_pfc_pin pinmux_pins[] = {
|
||||
SH_PFC_PIN_NAMED_CFG('B', 18, AVB_TD1, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('B', 19, AVB_RXC, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('C', 1, PRESETOUT#, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('F', 1, CLKOUT, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('H', 37, MLB_REF, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('V', 3, QSPI1_SPCLK, CFG_FLAGS),
|
||||
SH_PFC_PIN_NAMED_CFG('V', 5, QSPI1_SSL, CFG_FLAGS),
|
||||
|
Loading…
Reference in New Issue
Block a user