All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/7] EXYNOS5: GPIO to enable MAX98095
Date: Tue, 22 Jan 2013 06:55:46 -0800	[thread overview]
Message-ID: <CAPnjgZ0eQb7-YwHS2Ss11_zTZSLM98-S8eAE68E9-iqy2ygS4g@mail.gmail.com> (raw)
In-Reply-To: <1358765559-32709-5-git-send-email-rajeshwari.s@samsung.com>

Hi Rajeshwari,

On Mon, Jan 21, 2013 at 2:52 AM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This patch sets high a GPIO to enable the codec MAX98095
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
>  board/samsung/smdk5250/smdk5250.c |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
> index 12cc03e..6f2e067 100644
> --- a/board/samsung/smdk5250/smdk5250.c
> +++ b/board/samsung/smdk5250/smdk5250.c
> @@ -56,6 +56,18 @@ int board_usb_vbus_init(void)
>  }
>  #endif
>
> +#ifdef CONFIG_SOUND_MAX98095
> +static void  board_enable_audio_codec(void)
> +{
> +       struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *)
> +                                               samsung_get_base_gpio_part1();
> +
> +       /* Enable MAX98095 Codec */
> +       s5p_gpio_direction_output(&gpio1->x1, 7, 1);
> +       s5p_gpio_set_pull(&gpio1->x1, 7, GPIO_PULL_NONE);

This GPIO is hard-coded - does the FDT version of this file do this differently?

> +}
> +#endif
> +
>  int board_init(void)
>  {
>         gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
> @@ -65,6 +77,9 @@ int board_init(void)
>  #ifdef CONFIG_USB_EHCI_EXYNOS
>         board_usb_vbus_init();
>  #endif
> +#ifdef CONFIG_SOUND_MAX98095
> +       board_enable_audio_codec();
> +#endif
>         return 0;
>  }
>
> --
> 1.7.4.4
>

Regards,
Simon

  reply	other threads:[~2013-01-22 14:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 10:52 [U-Boot] [PATCH 0/7] EXYNOS5: Add audio support for Snow Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 1/7] EXYNOS5: Add function to enable XXTI clock source Rajeshwari Shinde
2013-01-22 14:51   ` Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 2/7] Sound: MAX98095: Add the driver for codec Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 3/7] Sound: Support for MAX98095 codec in driver Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 4/7] EXYNOS5: GPIO to enable MAX98095 Rajeshwari Shinde
2013-01-22 14:55   ` Simon Glass [this message]
2013-01-23 10:05     ` Rajeshwari Birje
2013-01-25 20:40       ` Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 5/7] EXYNOS5: FDT: Add compatible strings for MAX98095 Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 6/7] EXYNOS5: Add initial DTS file for Snow Rajeshwari Shinde
2013-01-22 14:56   ` Simon Glass
2013-01-25 20:42   ` Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 7/7] EXYNOS5: Snow: Add a configuration file Rajeshwari Shinde
2013-01-22 14:58   ` Simon Glass
2013-01-23 10:13     ` Rajeshwari Birje
2013-01-25 21:03       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPnjgZ0eQb7-YwHS2Ss11_zTZSLM98-S8eAE68E9-iqy2ygS4g@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.