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

Commit 408c8b8c authored by Ben Dooks's avatar Ben Dooks
Browse files

ARM: BAST: Update mach-bast to use gpiolib API



Change mach-bast .c to use gpiolib for the GPIO lines that are directly
manipulated by it.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 96efa8da
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -216,9 +216,7 @@ static struct s3c2410_uartcfg bast_uartcfgs[] __initdata = {
static int bast_pm_suspend(struct sys_device *sd, pm_message_t state)
static int bast_pm_suspend(struct sys_device *sd, pm_message_t state)
{
{
	/* ensure that an nRESET is not generated on resume. */
	/* ensure that an nRESET is not generated on resume. */
	s3c2410_gpio_setpin(S3C2410_GPA(21), 1);
	gpio_direction_output(S3C2410_GPA(21), 1);
	s3c2410_gpio_cfgpin(S3C2410_GPA(21), S3C2410_GPIO_OUTPUT);

	return 0;
	return 0;
}
}


@@ -658,6 +656,8 @@ static void __init bast_init(void)
	nor_simtec_init();
	nor_simtec_init();
	simtec_audio_add(NULL, true, &bast_audio);
	simtec_audio_add(NULL, true, &bast_audio);


	WARN_ON(gpio_request(S3C2410_GPA(21), "bast nreset"));
	
	s3c_cpufreq_setboard(&bast_cpufreq);
	s3c_cpufreq_setboard(&bast_cpufreq);
}
}