Commit Graph

10 Commits

Author SHA1 Message Date
Joseph Chen 160c99aa45 rockchip: param: add common memory reserve for most AArch32 mode
The ARMv8 platform enabling AArch32 mode should reserve memory the same
as AArch64 mode(because there is no difference about ATF), only some
platform has special request, they are: RK3308.

Change-Id: I0ffbfac7ddaff50ef53128dccd5b7dc2d02b560a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-05-28 20:30:36 +08:00
Joseph Chen 44f308bd53 rockchip: param: add CONFIG_RKFLASH for bootdev "rknand 0"
Change-Id: Ifbb541d2b6ed883deaceff7838663763ab841dd1
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-05-15 10:17:51 +08:00
Jason Zhu 94aee224c6 rockchip: param: use module config to decide whether use atags parameters
We can not call some drivers if this driver is closed. But this time we use
the parameters passed by atags directly but not test the drivers whether
exist. Add it.

Change-Id: I857ccf3b3e23a9e92502868d1514849770390ebb
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2019-05-07 09:55:29 +08:00
Jason Zhu c9f547d895 rockchip: param: add sdupdate variable to indicate card function
Add sdupdate variable to receive card function info from preloader atags.
If the sd card is updated-card, set sdupdate to bootargs. otherwise test
whether the sd cart is ROCKCHIP_SD_UPDATE_CARD or not by rkimgtest cmd.

Change-Id: I6c09ade4a31a2e4c8349245e9e345f735afd11e9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-30 08:50:53 +08:00
Joseph Chen 2dd104a51f rockchip: param: set common reserved memory only for ARM64
Follow legacy U-Boot rules(branch: rkdevelop).

Change-Id: Id181baf1b3fe77f2bf5f15405b1a7618920cbed1
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-09 10:54:14 +08:00
Joseph Chen 4e92aae1f9 rockchip: param: remove some function compile for TPL/SPL
Change-Id: I828e14d12c056a7dbc8a5a8863f2f0fab4285d22
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-09 10:54:14 +08:00
Joseph Chen b9bc76b4e1 rockchip: param: add ddr memory region parse
Change-Id: I7d59ee54a82da57b62970f4bc47faded60ba6ac8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-03-26 11:04:33 +08:00
Joseph Chen 6e15146eff lib: sysmem: refactor code
- import memblk id to manage memory blocks;
- change "sysmem_property" to generic "memblock";
- use alloc instead of reserve for all memory blocks;
- clean up and fix some logic;
- add U-Boot cmd for sysmem;

Change-Id: I614223ce3bf97a7b3566412a9d1864fb30b68fd8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-03-26 11:04:33 +08:00
Joseph Chen 07ea4f345b rockchip: param: fix bl32 enable flag not set when atags effect
Change-Id: I3a57dcdbd3e247fbe7f2230d70dd9687251cce0a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-02-15 11:32:32 +08:00
Joseph Chen dbf8423e37 rockchip: add platform param parse interface to param.c
parse: atf/optee/bootdev and common reserved memory.

Change-Id: I829eb42370b217e567cdafe03de4dab6063aa251
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-01-24 15:33:12 +08:00