* H616 DRAM support on mailine kernel
@ 2023-10-05 20:23 project-tvbox project-tvbox
2023-10-20 23:51 ` Andre Przywara
0 siblings, 1 reply; 2+ messages in thread
From: project-tvbox project-tvbox @ 2023-10-05 20:23 UTC (permalink / raw)
To: u-boot
dears,
How can I edit the drm parameters directly in the mainline kernel,
since the mainline dts does not have these options like the legacy
one, I saw that the dram.c drives in the legacy and mailline are
similar, for example:
[dram_para]
dram_clk = 600
dram_type = 3
dram_dx_odt = 0x03030303
dram_dx_dri = 0x0e0e0e0e
dram_ca_dri = 0x1f12
dram_odt_en = 1
dram_para1 = 0x30fb
dram_para2 = 0x0000
dram_mr0 = 0x840
in the mainline kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: H616 DRAM support on mailine kernel
2023-10-05 20:23 H616 DRAM support on mailine kernel project-tvbox project-tvbox
@ 2023-10-20 23:51 ` Andre Przywara
0 siblings, 0 replies; 2+ messages in thread
From: Andre Przywara @ 2023-10-20 23:51 UTC (permalink / raw)
To: project-tvbox project-tvbox; +Cc: u-boot
On Thu, 5 Oct 2023 17:23:06 -0300
project-tvbox project-tvbox <project-tvbox@prp.uespi.br> wrote:
Hi,
>
> How can I edit the drm parameters directly in the mainline kernel,
> since the mainline dts does not have these options like the legacy
> one, I saw that the dram.c drives in the legacy and mailline are
> similar, for example:
> [dram_para]
> dram_clk = 600
> dram_type = 3
> dram_dx_odt = 0x03030303
> dram_dx_dri = 0x0e0e0e0e
> dram_ca_dri = 0x1f12
> dram_odt_en = 1
> dram_para1 = 0x30fb
> dram_para2 = 0x0000
> dram_mr0 = 0x840
> in the mainline kernel
The kernel is not responsible for setting up the DRAM controller, this
is done in U-Boot (as you apparently have already figured out).
Mainline U-Boot patches a few months ago added U-Boot Kconfig options
for those parameters, please check configs/x96_mate_defconfig and
configs/orangepi_zero2_defconfig for examples. All options are
enumerated here:
https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-sunxi/Kconfig?ref_type=heads#L54-105
Cheers,
Andre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-20 23:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05 20:23 H616 DRAM support on mailine kernel project-tvbox project-tvbox
2023-10-20 23:51 ` Andre Przywara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox