From c50209bbfe71f42ef279ab614d638ca7beec81bf Mon Sep 17 00:00:00 2001 From: Kukjin Kim Date: Wed, 2 Jan 2013 09:57:59 -0800 Subject: [PATCH] --- yaml --- r: 355258 b: refs/heads/master c: b2ca78717cea921151baf4af5ac9322eacf872c6 h: refs/heads/master v: v3 --- [refs] | 2 +- .../mach-s3c24xx/{include/mach => }/gta02.h | 14 ++++- trunk/arch/arm/mach-s3c24xx/mach-gta02.c | 59 +++++++++---------- trunk/sound/soc/samsung/neo1973_wm8753.c | 8 +-- 4 files changed, 43 insertions(+), 40 deletions(-) rename trunk/arch/arm/mach-s3c24xx/{include/mach => }/gta02.h (53%) diff --git a/[refs] b/[refs] index 9459956ba0a3..38ef5a6d3595 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bbd7e5e1e90954761f766400000a8f4c882d1202 +refs/heads/master: b2ca78717cea921151baf4af5ac9322eacf872c6 diff --git a/trunk/arch/arm/mach-s3c24xx/include/mach/gta02.h b/trunk/arch/arm/mach-s3c24xx/gta02.h similarity index 53% rename from trunk/arch/arm/mach-s3c24xx/include/mach/gta02.h rename to trunk/arch/arm/mach-s3c24xx/gta02.h index 217393482153..9430a71e9184 100644 --- a/trunk/arch/arm/mach-s3c24xx/include/mach/gta02.h +++ b/trunk/arch/arm/mach-s3c24xx/gta02.h @@ -1,5 +1,13 @@ -#ifndef _GTA02_H -#define _GTA02_H +/* + * GTA02 header + * + * 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 __MACH_S3C24XX_GTA02_H +#define __MACH_S3C24XX_GTA02_H __FILE__ #include @@ -12,4 +20,4 @@ #define GTA02_IRQ_PCF50633 IRQ_EINT9 -#endif /* _GTA02_H */ +#endif /* __MACH_S3C24XX_GTA02_H */ diff --git a/trunk/arch/arm/mach-s3c24xx/mach-gta02.c b/trunk/arch/arm/mach-s3c24xx/mach-gta02.c index 973b87ca87f4..1053706c0ea5 100644 --- a/trunk/arch/arm/mach-s3c24xx/mach-gta02.c +++ b/trunk/arch/arm/mach-s3c24xx/mach-gta02.c @@ -1,6 +1,4 @@ /* - * linux/arch/arm/mach-s3c2442/mach-gta02.c - * * S3C2442 Machine Support for Openmoko GTA02 / FreeRunner. * * Copyright (C) 2006-2009 by Openmoko, Inc. @@ -23,7 +21,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA - * */ #include @@ -34,62 +31,60 @@ #include #include #include +#include #include #include #include -#include -#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include + #include #include #include #include #include -#include -#include #include -#include -#include -#include -#include -#include -#include - -#include -#include +#include +#include +#include +#include #include #include #include -#include -#include +#include +#include +#include +#include +#include -#include -#include #include - -#include -#include #include +#include +#include +#include -#include - -#include -#include -#include #include -#include -#include +#include #include -#include -#include +#include +#include #include "common.h" +#include "gta02.h" static struct pcf50633 *gta02_pcf; diff --git a/trunk/sound/soc/samsung/neo1973_wm8753.c b/trunk/sound/soc/samsung/neo1973_wm8753.c index c7e965f80d2e..a301d8cfaa34 100644 --- a/trunk/sound/soc/samsung/neo1973_wm8753.c +++ b/trunk/sound/soc/samsung/neo1973_wm8753.c @@ -237,7 +237,7 @@ static int lm4853_set_spk(struct snd_kcontrol *kcontrol, { gta02_speaker_enabled = ucontrol->value.integer.value[0]; - gpio_set_value(GTA02_GPIO_HP_IN, !gta02_speaker_enabled); + gpio_set_value(S3C2410_GPJ(2), !gta02_speaker_enabled); return 0; } @@ -252,7 +252,7 @@ static int lm4853_get_spk(struct snd_kcontrol *kcontrol, static int lm4853_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *k, int event) { - gpio_set_value(GTA02_GPIO_AMP_SHUT, SND_SOC_DAPM_EVENT_OFF(event)); + gpio_set_value(S3C2410_GPJ(1), SND_SOC_DAPM_EVENT_OFF(event)); return 0; } @@ -396,8 +396,8 @@ static struct snd_soc_codec_conf neo1973_codec_conf[] = { }; static const struct gpio neo1973_gta02_gpios[] = { - { GTA02_GPIO_HP_IN, GPIOF_OUT_INIT_HIGH, "GTA02_HP_IN" }, - { GTA02_GPIO_AMP_SHUT, GPIOF_OUT_INIT_HIGH, "GTA02_AMP_SHUT" }, + { S3C2410_GPJ(2), GPIOF_OUT_INIT_HIGH, "GTA02_HP_IN" }, + { S3C2410_GPJ(1), GPIOF_OUT_INIT_HIGH, "GTA02_AMP_SHUT" }, }; static struct snd_soc_card neo1973 = {