Commit e4a9f45b authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

net: ipa: make all configuration data constant

All of the platform configuration data should be constant, but
that isn't the case for the memory regions, interconnects, and
clocks.  Fix this.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 96a2be51
...@@ -300,7 +300,7 @@ static const struct ipa_mem ipa_mem_local_data[] = { ...@@ -300,7 +300,7 @@ static const struct ipa_mem ipa_mem_local_data[] = {
}, },
}; };
static struct ipa_mem_data ipa_mem_data = { static const struct ipa_mem_data ipa_mem_data = {
.local_count = ARRAY_SIZE(ipa_mem_local_data), .local_count = ARRAY_SIZE(ipa_mem_local_data),
.local = ipa_mem_local_data, .local = ipa_mem_local_data,
.imem_addr = 0x146a8000, .imem_addr = 0x146a8000,
...@@ -310,7 +310,7 @@ static struct ipa_mem_data ipa_mem_data = { ...@@ -310,7 +310,7 @@ static struct ipa_mem_data ipa_mem_data = {
}; };
/* Interconnect bandwidths are in 1000 byte/second units */ /* Interconnect bandwidths are in 1000 byte/second units */
static struct ipa_interconnect_data ipa_interconnect_data[] = { static const struct ipa_interconnect_data ipa_interconnect_data[] = {
{ {
.name = "memory", .name = "memory",
.peak_bandwidth = 465000, /* 465 MBps */ .peak_bandwidth = 465000, /* 465 MBps */
...@@ -329,7 +329,7 @@ static struct ipa_interconnect_data ipa_interconnect_data[] = { ...@@ -329,7 +329,7 @@ static struct ipa_interconnect_data ipa_interconnect_data[] = {
}, },
}; };
static struct ipa_clock_data ipa_clock_data = { static const struct ipa_clock_data ipa_clock_data = {
.core_clock_rate = 100 * 1000 * 1000, /* Hz */ .core_clock_rate = 100 * 1000 * 1000, /* Hz */
.interconnect_count = ARRAY_SIZE(ipa_interconnect_data), .interconnect_count = ARRAY_SIZE(ipa_interconnect_data),
.interconnect_data = ipa_interconnect_data, .interconnect_data = ipa_interconnect_data,
......
...@@ -320,7 +320,7 @@ static const struct ipa_mem ipa_mem_local_data[] = { ...@@ -320,7 +320,7 @@ static const struct ipa_mem ipa_mem_local_data[] = {
}, },
}; };
static struct ipa_mem_data ipa_mem_data = { static const struct ipa_mem_data ipa_mem_data = {
.local_count = ARRAY_SIZE(ipa_mem_local_data), .local_count = ARRAY_SIZE(ipa_mem_local_data),
.local = ipa_mem_local_data, .local = ipa_mem_local_data,
.imem_addr = 0x146bd000, .imem_addr = 0x146bd000,
...@@ -330,7 +330,7 @@ static struct ipa_mem_data ipa_mem_data = { ...@@ -330,7 +330,7 @@ static struct ipa_mem_data ipa_mem_data = {
}; };
/* Interconnect bandwidths are in 1000 byte/second units */ /* Interconnect bandwidths are in 1000 byte/second units */
static struct ipa_interconnect_data ipa_interconnect_data[] = { static const struct ipa_interconnect_data ipa_interconnect_data[] = {
{ {
.name = "memory", .name = "memory",
.peak_bandwidth = 600000, /* 600 MBps */ .peak_bandwidth = 600000, /* 600 MBps */
...@@ -349,7 +349,7 @@ static struct ipa_interconnect_data ipa_interconnect_data[] = { ...@@ -349,7 +349,7 @@ static struct ipa_interconnect_data ipa_interconnect_data[] = {
}, },
}; };
static struct ipa_clock_data ipa_clock_data = { static const struct ipa_clock_data ipa_clock_data = {
.core_clock_rate = 75 * 1000 * 1000, /* Hz */ .core_clock_rate = 75 * 1000 * 1000, /* Hz */
.interconnect_count = ARRAY_SIZE(ipa_interconnect_data), .interconnect_count = ARRAY_SIZE(ipa_interconnect_data),
.interconnect_data = ipa_interconnect_data, .interconnect_data = ipa_interconnect_data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment