Commit 5917bfa4 authored by Magnus Damm's avatar Magnus Damm Committed by Nicolas Pitre

ARM: mach-shmobile: use standard 2MiB coherent DMA memory size

The 158MiB memory area was used to support HD
resolution multimedia workloads using the same
legacy memory allocating solution as on SH.

There are no in-tree kernel dependencies on the
158MiB setting, and future development should
reserve and allocate memory using some other
method like for instance CMA.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
parent 0af362f8
...@@ -466,8 +466,6 @@ static struct map_desc ag5evm_io_desc[] __initdata = { ...@@ -466,8 +466,6 @@ static struct map_desc ag5evm_io_desc[] __initdata = {
static void __init ag5evm_map_io(void) static void __init ag5evm_map_io(void)
{ {
iotable_init(ag5evm_io_desc, ARRAY_SIZE(ag5evm_io_desc)); iotable_init(ag5evm_io_desc, ARRAY_SIZE(ag5evm_io_desc));
/* DMA memory at 0xf6000000 - 0xffdfffff */
init_consistent_dma_size(158 << 20);
/* setup early devices and console here as well */ /* setup early devices and console here as well */
sh73a0_add_early_devices(); sh73a0_add_early_devices();
......
...@@ -1172,8 +1172,6 @@ static struct map_desc ap4evb_io_desc[] __initdata = { ...@@ -1172,8 +1172,6 @@ static struct map_desc ap4evb_io_desc[] __initdata = {
static void __init ap4evb_map_io(void) static void __init ap4evb_map_io(void)
{ {
iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc)); iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc));
/* DMA memory at 0xf6000000 - 0xffdfffff */
init_consistent_dma_size(158 << 20);
/* setup early devices and console here as well */ /* setup early devices and console here as well */
sh7372_add_early_devices(); sh7372_add_early_devices();
......
...@@ -261,8 +261,6 @@ static struct map_desc g3evm_io_desc[] __initdata = { ...@@ -261,8 +261,6 @@ static struct map_desc g3evm_io_desc[] __initdata = {
static void __init g3evm_map_io(void) static void __init g3evm_map_io(void)
{ {
iotable_init(g3evm_io_desc, ARRAY_SIZE(g3evm_io_desc)); iotable_init(g3evm_io_desc, ARRAY_SIZE(g3evm_io_desc));
/* DMA memory at 0xf6000000 - 0xffdfffff */
init_consistent_dma_size(158 << 20);
/* setup early devices and console here as well */ /* setup early devices and console here as well */
sh7367_add_early_devices(); sh7367_add_early_devices();
......
...@@ -275,8 +275,6 @@ static struct map_desc g4evm_io_desc[] __initdata = { ...@@ -275,8 +275,6 @@ static struct map_desc g4evm_io_desc[] __initdata = {
static void __init g4evm_map_io(void) static void __init g4evm_map_io(void)
{ {
iotable_init(g4evm_io_desc, ARRAY_SIZE(g4evm_io_desc)); iotable_init(g4evm_io_desc, ARRAY_SIZE(g4evm_io_desc));
/* DMA memory at 0xf6000000 - 0xffdfffff */
init_consistent_dma_size(158 << 20);
/* setup early devices and console here as well */ /* setup early devices and console here as well */
sh7377_add_early_devices(); sh7377_add_early_devices();
......
...@@ -1390,8 +1390,6 @@ static struct map_desc mackerel_io_desc[] __initdata = { ...@@ -1390,8 +1390,6 @@ static struct map_desc mackerel_io_desc[] __initdata = {
static void __init mackerel_map_io(void) static void __init mackerel_map_io(void)
{ {
iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc)); iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc));
/* DMA memory at 0xf6000000 - 0xffdfffff */
init_consistent_dma_size(158 << 20);
/* setup early devices and console here as well */ /* setup early devices and console here as well */
sh7372_add_early_devices(); sh7372_add_early_devices();
......
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