From: Tony Lindgren <tony@atomide.com>
To: Hardik Shah <hardik.shah@ti.com>
Cc: linux-omap@vger.kernel.org,
linux-fbdev-devel@lists.sourceforge.net,
video4linux-list@redhat.com
Subject: Re: [Linux-fbdev-devel] [PATCHv2 1/4] OMAP 2/3 DSS Library
Date: Fri, 24 Oct 2008 12:13:25 -0700 [thread overview]
Message-ID: <20081024191325.GF16354@atomide.com> (raw)
In-Reply-To: <1224841964-24576-1-git-send-email-hardik.shah@ti.com>
Hi,
* Hardik Shah <hardik.shah@ti.com> [081024 03:16]:
> Cleaned up the DSS Library according to open source comments
>
> Removed unused #ifdefs
> Removed unused #defines
> Minor cleanups done
> Removed Architecture specific #ifdefs
>
> Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
> Hari Nagalla <hnagalla@ti.com>
> Hardik Shah <hardik.shah@ti.com>
> Manjunath Hadli <mrh@ti.com>
> R Sivaraj <sivaraj@ti.com>
> Vaibhav Hiremath <hvaibhav@ti.com>
>
> ---
> arch/arm/plat-omap/Kconfig | 7 +
> arch/arm/plat-omap/Makefile | 2 +-
> arch/arm/plat-omap/include/mach/io.h | 2 +-
> arch/arm/plat-omap/include/mach/omap-dss.h | 921 ++++++++++++
> arch/arm/plat-omap/omap-dss.c | 2248 ++++++++++++++++++++++++++++
> 5 files changed, 3178 insertions(+), 2 deletions(-)
> create mode 100644 arch/arm/plat-omap/include/mach/omap-dss.h
> create mode 100644 arch/arm/plat-omap/omap-dss.c
>
> diff --git a/arch/arm/plat-omap/include/mach/io.h b/arch/arm/plat-omap/include/mach/io.h
> index ea55267..2495656 100644
> --- a/arch/arm/plat-omap/include/mach/io.h
> +++ b/arch/arm/plat-omap/include/mach/io.h
> @@ -142,11 +142,11 @@
> #define OMAP343X_SDRC_VIRT 0xFD000000
> #define OMAP343X_SDRC_SIZE SZ_1M
>
> -
> #define IO_OFFSET 0x90000000
> #define __IO_ADDRESS(pa) ((pa) + IO_OFFSET)/* Works for L3 and L4 */
> #define __OMAP2_IO_ADDRESS(pa) ((pa) + IO_OFFSET)/* Works for L3 and L4 */
> #define io_v2p(va) ((va) - IO_OFFSET)/* Works for L3 and L4 */
> +#define io_p2v(pa) __IO_ADDRESS(pa)/* Works for L3 and L4 */
>
> /* DSP */
> #define DSP_MEM_34XX_PHYS OMAP34XX_DSP_MEM_BASE /* 0x58000000 */
NAK for adding back io_p2v(). See below.
> diff --git a/arch/arm/plat-omap/include/mach/omap-dss.h b/arch/arm/plat-omap/include/mach/omap-dss.h
> new file mode 100644
> index 0000000..d9a33bd
> --- /dev/null
> +++ b/arch/arm/plat-omap/include/mach/omap-dss.h
> @@ -0,0 +1,921 @@
> +/*
> + * arch/arm/plat-omap/include/mach/omap-dss.h
> + *
> + * Copyright (C) 2004-2005 Texas Instruments.
> + * Copyright (C) 2006 Texas Instruments.
> + *
> + * This file is licensed under the terms of the GNU General Public License
> + * version 2. This program is licensed "as is" without any warranty of any
> + * kind, whether express or implied.
> +
> + * Leveraged from original Linux 2.6 framebuffer driver for OMAP24xx
> + * Author: Andy Lowe (source@mvista.com)
> + * Copyright (C) 2004 MontaVista Software, Inc.
> + *
> + */
> +
> +#ifndef __ASM_ARCH_OMAP_DISP_H
> +#define __ASM_ARCH_OMAP_DISP_H
> +
> +/* 16 bit uses LDRH/STRH, base +/- offset_8 */
> +typedef struct {
> + volatile u16 offset[256];
> +} __regbase16;
> +#define __REGV16(vaddr) (((__regbase16 *)((vaddr)&~0xff)) \
> + ->offset[((vaddr)&0xff)>>1])
> +#define __REG16(paddr) __REGV16(io_p2v(paddr))
> +
> +/* 8/32 bit uses LDR/STR, base +/- offset_12 */
> +typedef struct {
> + volatile u8 offset[4096];
> +} __regbase8;
> +#define __REGV8(vaddr) (((__regbase8 *)((vaddr)&~4095)) \
> + ->offset[((vaddr)&4095)>>0])
> +#define __REG8(paddr) __REGV8(io_p2v(paddr))
> +
> +typedef struct {
> + volatile u32 offset[4096];
> +} __regbase32;
> +#define __REGV32(vaddr) (((__regbase32 *)((vaddr)&~4095)) \
> + ->offset[((vaddr)&4095)>>2])
> +#define __REG32(paddr) __REGV32(io_p2v(paddr))
> +
NAK for adding back the __REG stuff. We've just spent quite a bit of
effort to remove these. The __REG stuff is not portable.
Please use ioremap and then __raw_read/write instead.
Regards,
Tony
next prev parent reply other threads:[~2008-10-24 19:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 9:52 [PATCHv2 1/4] OMAP 2/3 DSS Library Hardik Shah
2008-10-24 9:52 ` Hardik Shah
2008-10-24 19:13 ` Tony Lindgren [this message]
2008-10-25 7:14 ` [Linux-fbdev-devel] " Shah, Hardik
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=20081024191325.GF16354@atomide.com \
--to=tony@atomide.com \
--cc=hardik.shah@ti.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-omap@vger.kernel.org \
--cc=video4linux-list@redhat.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.