rk: memory: set vmalloc size to 496MB by default, so:

1. if memory is 256MB, then: 256MB(lowmem)+744MB(vmalloc)+0MB(highmem)
  2. if memory is 512MB, then: 512MB(lowmem)+488MB(vmalloc)+0MB(highmem)
  3. if memory is large then 512MB, then: 512MB(lowmem)+488MB(vmalloc)+other(highmem)
This commit is contained in:
CMY
2014-08-27 11:25:46 +08:00
parent 21eec3b85c
commit 1e848a3e6f
5 changed files with 5 additions and 12 deletions

View File

@@ -9,7 +9,7 @@
};
chosen {
bootargs = "vmalloc=512M clk_ignore_unused";
bootargs = "vmalloc=496M clk_ignore_unused";
};
pwm_regulator1:pwm-regulator1 {

View File

@@ -152,10 +152,6 @@
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
chosen {
bootargs = "vmalloc=512M";
};
};
&pinctrl {
gpio0_gpio {

View File

@@ -155,10 +155,6 @@
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
chosen {
bootargs = "vmalloc=512M";
};
};
&pinctrl {
gpio0_gpio {

View File

@@ -171,9 +171,6 @@
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
chosen {
bootargs = "vmalloc=512M";
};
};
&gmac {

View File

@@ -1364,4 +1364,8 @@
pinctrl-1 = <&sdcard_vcc_18>;
pinctrl-2 = <&sdcard_vcc_33>;
};
chosen {
bootargs = "vmalloc=496M";
};
};