diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-27 21:29:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-04-27 21:29:03 +0000 |
commit | 2613074f8f5dd917b9bb010227bc27b86e843d54 (patch) | |
tree | 71f04e6d6effb70702ea3fb576d803ee05d25910 /sim | |
parent | 559a7a62019960bacbbe4b099f3c7926352cb131 (diff) | |
download | fsf-binutils-gdb-2613074f8f5dd917b9bb010227bc27b86e843d54.zip fsf-binutils-gdb-2613074f8f5dd917b9bb010227bc27b86e843d54.tar.gz fsf-binutils-gdb-2613074f8f5dd917b9bb010227bc27b86e843d54.tar.bz2 |
sim: bfin: constify dmac pmap arrays
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim')
-rw-r--r-- | sim/bfin/ChangeLog | 9 | ||||
-rw-r--r-- | sim/bfin/dv-bfin_dmac.c | 26 |
2 files changed, 22 insertions, 13 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 6314e97..3470143 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,12 @@ +2011-04-27 Mike Frysinger <vapier@gentoo.org> + + * dv-bfin_dmac.c (bfin_dmac): Constify pmap array. + (bfin_dmac_50x_pmap, bfin_dmac_51x_pmap, bfin_dmac_52x_pmap, + bfin_dmac_533_pmap, bfin_dmac_537_pmap, bfin_dmac0_538_pmap, + bfin_dmac1_538_pmap, bfin_dmac0_54x_pmap, bfin_dmac1_54x_pmap, + bfin_dmac0_561_pmap, bfin_dmac1_561_pmap, bfin_dmac_59x_pmap): + Likewise. + 2011-04-26 Mike Frysinger <vapier@gentoo.org> * dv-bfin_gpio.c (bfin_gpio_forward_ouput): New function. diff --git a/sim/bfin/dv-bfin_dmac.c b/sim/bfin/dv-bfin_dmac.c index 5cc05b1..8551456 100644 --- a/sim/bfin/dv-bfin_dmac.c +++ b/sim/bfin/dv-bfin_dmac.c @@ -34,7 +34,7 @@ struct bfin_dmac struct hw *dma_master; bool acked; - const char **pmap; + const char * const *pmap; unsigned int pmap_count; }; @@ -84,7 +84,7 @@ bfin_dmac_default_pmap (struct hw *dma) return CTYPE; /* MDMA */ } -static const char *bfin_dmac_50x_pmap[] = +static const char * const bfin_dmac_50x_pmap[] = { "ppi@0", "rsi", "sport@0", "sport@0", "sport@1", "sport@1", "spi@0", "spi@1", "uart2@0", "uart2@0", "uart2@1", "uart2@1", @@ -108,7 +108,7 @@ static const struct hw_port_descriptor bfin_dmac_50x_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac_51x_pmap[] = +static const char * const bfin_dmac_51x_pmap[] = { "ppi@0", "emac", "emac", "sport@0", "sport@0", "sport@1", "sport@1", "spi@0", "uart@0", "uart@0", "uart@1", "uart@1", @@ -134,7 +134,7 @@ static const struct hw_port_descriptor bfin_dmac_51x_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac_52x_pmap[] = +static const char * const bfin_dmac_52x_pmap[] = { "ppi@0", "emac", "emac", "sport@0", "sport@0", "sport@1", "sport@1", "spi", "uart@0", "uart@0", "uart@1", "uart@1", @@ -162,7 +162,7 @@ static const struct hw_port_descriptor bfin_dmac_52x_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac_533_pmap[] = +static const char * const bfin_dmac_533_pmap[] = { "ppi@0", "sport@0", "sport@0", "sport@1", "sport@1", "spi", "uart@0", "uart@0", @@ -181,7 +181,7 @@ static const struct hw_port_descriptor bfin_dmac_533_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac_537_pmap[] = +static const char * const bfin_dmac_537_pmap[] = { "ppi@0", "emac", "emac", "sport@0", "sport@0", "sport@1", "sport@1", "spi", "uart@0", "uart@0", "uart@1", "uart@1", @@ -204,7 +204,7 @@ static const struct hw_port_descriptor bfin_dmac_537_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac0_538_pmap[] = +static const char * const bfin_dmac0_538_pmap[] = { "ppi@0", "sport@0", "sport@0", "sport@1", "sport@1", "spi@0", "uart@0", "uart@0", @@ -223,7 +223,7 @@ static const struct hw_port_descriptor bfin_dmac0_538_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac1_538_pmap[] = +static const char * const bfin_dmac1_538_pmap[] = { "sport@2", "sport@2", "sport@3", "sport@3", NULL, NULL, "spi@1", "spi@2", "uart@1", "uart@1", "uart@2", "uart@2", @@ -244,7 +244,7 @@ static const struct hw_port_descriptor bfin_dmac1_538_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac0_54x_pmap[] = +static const char * const bfin_dmac0_54x_pmap[] = { "sport@0", "sport@0", "sport@1", "sport@1", "spi@0", "spi@1", "uart2@0", "uart2@0", "uart2@1", "uart2@1", "atapi", "atapi", @@ -267,7 +267,7 @@ static const struct hw_port_descriptor bfin_dmac0_54x_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac1_54x_pmap[] = +static const char * const bfin_dmac1_54x_pmap[] = { "eppi@0", "eppi@1", "eppi@2", "pixc", "pixc", "pixc", "sport@2", "sport@2", "sport@3", "sport@3", "sdh", @@ -296,7 +296,7 @@ static const struct hw_port_descriptor bfin_dmac1_54x_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac0_561_pmap[] = +static const char * const bfin_dmac0_561_pmap[] = { "sport@0", "sport@0", "sport@1", "sport@1", "spi", "uart@0", "uart@0", }; @@ -313,7 +313,7 @@ static const struct hw_port_descriptor bfin_dmac0_561_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac1_561_pmap[] = +static const char * const bfin_dmac1_561_pmap[] = { "ppi@0", "ppi@1", }; @@ -325,7 +325,7 @@ static const struct hw_port_descriptor bfin_dmac1_561_ports[] = { NULL, 0, 0, 0, }, }; -static const char *bfin_dmac_59x_pmap[] = +static const char * const bfin_dmac_59x_pmap[] = { "ppi@0", "sport@0", "sport@0", "sport@1", "sport@1", "spi@0", "spi@1", "uart@0", "uart@0", |