Skip to content

Commit

Permalink
davinci: Move PINMUX defines to SoC files
Browse files Browse the repository at this point in the history
Different SoC have different numbers of pinmux registers and other
resources that overlap with each other.  To clean up the code and
eliminate defines that overlap with each other, move the PINMUX
defines to the SoC specific files.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Mark A. Greer authored and Kevin Hilman committed May 28, 2009
1 parent 3abd5ac commit 5570078
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
8 changes: 8 additions & 0 deletions arch/arm/mach-davinci/dm355.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,14 @@ void __init dm355_init_spi0(unsigned chipselect_mask,

/*----------------------------------------------------------------------*/

#define PINMUX0 0x00
#define PINMUX1 0x04
#define PINMUX2 0x08
#define PINMUX3 0x0c
#define PINMUX4 0x10
#define INTMUX 0x18
#define EVTMUX 0x1c

/*
* Device specific mux setup
*
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-davinci/dm644x.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ static struct platform_device dm644x_emac_device = {
.resource = dm644x_emac_resources,
};

#define PINMUX0 0x00
#define PINMUX1 0x04

/*
* Device specific mux setup
*
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-davinci/dm646x.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ static struct platform_device dm646x_emac_device = {
.resource = dm646x_emac_resources,
};

#define PINMUX0 0x00
#define PINMUX1 0x04

/*
* Device specific mux setup
*
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/mach-davinci/include/mach/mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
#ifndef __INC_MACH_MUX_H
#define __INC_MACH_MUX_H

/* System module registers */
#define PINMUX0 0x00
#define PINMUX1 0x04
/* dm355 only */
#define PINMUX2 0x08
#define PINMUX3 0x0c
#define PINMUX4 0x10
#define INTMUX 0x18
#define EVTMUX 0x1c

struct mux_config {
const char *name;
const char *mux_reg_name;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-davinci/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static char *id_to_name[] = {
static int timer32_config(struct timer_s *t)
{
u32 tcr;
struct davinci_soc_info *soc_info = davinci_get_soc_info();
struct davinci_soc_info *soc_info = &davinci_soc_info;

if (USING_COMPARE(t)) {
struct davinci_timer_instance *dtip =
Expand Down

0 comments on commit 5570078

Please sign in to comment.