public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Clean up omap24xx.h symbolic constants
@ 2007-05-16 22:58 Paul Walmsley
  2007-05-16 22:58 ` [PATCH 1/5] omap2: modify omap24xx.h to improve constant names and prepare for multi-arch kernels Paul Walmsley
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Paul Walmsley @ 2007-05-16 22:58 UTC (permalink / raw)
  To: linux-omap-open-source

These patches clean up the symbolic constants defined in
include/asm-arm/arch-omap/omap24xx.h.  The names of some constants,
like OMAP24XX_SDRC_BASE, denote that their values are the same on all
OMAP24XX platforms.  This isn't so - the constant is defined to
different values depending on the Kconfig architecture parameters.
Also, we'd eventually like to create kernels that can be used on
both 2420 or 2430, with runtime CPU detection.  These types of
defines prevent that from happening.

Fix these defines by explicitly defining separate constants for both
architectures, when the values are different.  Use ifdefs to control
which value is assigned to the "base name" of the constant.

So, to continue the example above, the OMAP24XX_SDRC_BASE constant
will be removed, and replaced with two defines: OMAP2420_SDRC_BASE and
OMAP243X_SDRC_BASE.  Depending on which CONFIG_ARCH_OMAP* Kconfig
parameter is specified, we then set an SDRC_BASE define to point to
one of the two architecture-specific values.

These patches are necessary prerequisites for the forthcoming PRCM
cleanup series.


- Paul

-- 

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/5] Clean up omap24xx.h symbolic constants
@ 2007-05-21 22:59 Paul Walmsley
  0 siblings, 0 replies; 13+ messages in thread
From: Paul Walmsley @ 2007-05-21 22:59 UTC (permalink / raw)
  To: linux-omap-open-source

These patches clean up the symbolic constants defined in
include/asm-arm/arch-omap/omap24xx.h.  The names of some constants,
like OMAP24XX_SDRC_BASE, denote that their values are the same on all
OMAP24XX platforms.  This isn't so - the constant is defined to
different values depending on the Kconfig architecture parameters.
Also, we'd eventually like to create kernels that can be used on
both 2420 or 2430, with runtime CPU detection.  These types of
defines prevent that from happening.

Fix these defines by explicitly defining separate constants for both
architectures, when the values are different.  Use ifdefs to control
which value is assigned to the "base name" of the constant.

So, to continue the example above, the OMAP24XX_SDRC_BASE constant
will be removed, and replaced with two defines: OMAP2420_SDRC_BASE and
OMAP243X_SDRC_BASE.  Depending on which CONFIG_ARCH_OMAP* Kconfig
parameter is specified, we then set an OMAP_SDRC_BASE define to point
to one of the two architecture-specific values.

These patches are necessary prerequisites for the forthcoming PRCM
cleanup series.


- Paul

-- 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-05-21 22:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-16 22:58 [PATCH 0/5] Clean up omap24xx.h symbolic constants Paul Walmsley
2007-05-16 22:58 ` [PATCH 1/5] omap2: modify omap24xx.h to improve constant names and prepare for multi-arch kernels Paul Walmsley
2007-05-16 22:58 ` [PATCH 2/5] omap2: use OMAP24XX_32KSYNCT_BASE in place of OMAP_32KSYNCT_BASE Paul Walmsley
2007-05-16 22:58 ` [PATCH 3/5] omap2: use PRCM_BASE in place of OMAP24XX_PRCM_BASE Paul Walmsley
2007-05-16 22:58 ` [PATCH 4/5] omap2: use SDRC_BASE in place of OMAP24XX_SDRC_BASE Paul Walmsley
2007-05-16 22:58 ` [PATCH 5/5] omap2: use CTRL_BASE in place of OMAP24XX_CTRL_BASE Paul Walmsley
2007-05-17  8:28 ` [PATCH 0/5] Clean up omap24xx.h symbolic constants Dmitry Krivoschekov
2007-05-17 17:43   ` Tony Lindgren
2007-05-17 17:53     ` Syed Mohammed, Khasim
2007-05-17 18:14       ` Tony Lindgren
2007-05-17 19:11         ` Syed Mohammed, Khasim
2007-05-21 16:52           ` Paul Walmsley
  -- strict thread matches above, loose matches on Subject: below --
2007-05-21 22:59 Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox