Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 157d2644 authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Haojian Zhuang
Browse files

ARM: pxa: change gpio to platform device



Remove most gpio macros and change gpio driver to platform driver.

Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@marvell.com>
parent 9bf448c6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -591,6 +591,7 @@ config ARCH_MMP
	select ARCH_REQUIRE_GPIOLIB
	select CLKDEV_LOOKUP
	select GENERIC_CLOCKEVENTS
	select GPIO_PXA
	select HAVE_SCHED_CLOCK
	select TICK_ONESHOT
	select PLAT_PXA
@@ -673,6 +674,7 @@ config ARCH_PXA
	select CLKSRC_MMIO
	select ARCH_REQUIRE_GPIOLIB
	select GENERIC_CLOCKEVENTS
	select GPIO_PXA
	select HAVE_SCHED_CLOCK
	select TICK_ONESHOT
	select PLAT_PXA
+1 −0
Original line number Diff line number Diff line
@@ -231,6 +231,7 @@ static void __init common_init(void)
	pxa168_add_nand(&aspenite_nand_info);
	pxa168_add_fb(&aspenite_lcd_info);
	pxa168_add_keypad(&aspenite_keypad_info);
	platform_device_register(&pxa168_device_gpio);

	/* off-chip devices */
	platform_device_register(&smc91x_device);
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ static void __init avengers_lite_init(void)

	/* on-chip devices */
	pxa168_add_uart(2);
	platform_device_register(&pxa168_device_gpio);
}

MACHINE_START(AVENGERS_LITE, "PXA168 Avengers lite Development Platform")
+1 −0
Original line number Diff line number Diff line
@@ -202,6 +202,7 @@ static void __init brownstone_init(void)
	/* on-chip devices */
	mmp2_add_uart(1);
	mmp2_add_uart(3);
	platform_device_register(&mmp2_device_gpio);
	mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info));
	mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */
	mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ static void __init flint_init(void)
	/* on-chip devices */
	mmp2_add_uart(1);
	mmp2_add_uart(2);
	platform_device_register(&mmp2_device_gpio);

	/* off-chip devices */
	platform_device_register(&smc91x_device);
Loading