From: Ladislav Michl <ladis@linux-mips.org>
To: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] ARM: OMAP: Add Amstrad Delta platform bits for framebuffer.
Date: Tue, 15 Aug 2006 09:54:35 +0200 [thread overview]
Message-ID: <20060815075435.GA5426@orphique> (raw)
In-Reply-To: <20060814183119.GN27094@earth.li>
On Mon, Aug 14, 2006 at 07:31:19PM +0100, Jonathan McDowell wrote:
> This patch adds the platform file components for the Amstrad Delta LCD
> framebuffer. I have confirmed it works with latest git. The patch to
> clock.c /is/ needed for this to work.
>
> Signed-Off-By: Jonathan McDowell <noodles@earth.li>
[snip]
> diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
> index cc08775..70a5d50 100644
> --- a/arch/arm/mach-omap1/clock.c
> +++ b/arch/arm/mach-omap1/clock.c
> @@ -20,6 +20,7 @@ #include <linux/err.h>
> #include <linux/clk.h>
>
> #include <asm/io.h>
> +#include <asm/mach-types.h>
>
> #include <asm/arch/cpu.h>
> #include <asm/arch/usb.h>
> @@ -756,6 +757,14 @@ #if defined(CONFIG_MACH_OMAP_PERSEUS2) |
> omap_writew(omap_readw(OMAP730_PCC_UPLD_CTRL) & ~0x1, OMAP730_PCC_UPLD_CTRL);
> #endif
>
> +#ifdef CONFIG_MACH_AMS_DELTA
> + /* Amstrad Delta wants BCLK high when inactive */
> + if (machine_is_ams_delta())
> + omap_writel(omap_readl(ULPD_CLOCK_CTRL) |
> + (1 << SDW_MCLK_INV_BIT),
> + ULPD_CLOCK_CTRL);
> +#endif
This #ifdef is not necessary. machine_is_ams_delta() will expand to (0)
when CONFIG_MACH_AMS_DELTA not selected and that if (0) will be
optimized away.
> /* Turn off DSP and ARM_TIMXO. Make sure ARM_INTHCK is not divided */
> /* (on 730, bit 13 must not be cleared) */
> if (cpu_is_omap730())
Best regards,
ladis
next prev parent reply other threads:[~2006-08-15 7:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-14 18:31 [PATCH] ARM: OMAP: Add Amstrad Delta platform bits for framebuffer Jonathan McDowell
2006-08-15 7:54 ` Ladislav Michl [this message]
2006-08-17 15:21 ` Jonathan McDowell
2006-08-17 22:48 ` Jonathan McDowell
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=20060815075435.GA5426@orphique \
--to=ladis@linux-mips.org \
--cc=linux-omap-open-source@linux.omap.com \
/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.