narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
jelly has quit [Remote host closed the connection]
jelly has joined #linux-amlogic
montjoie has quit [Ping timeout: 255 seconds]
montjoie has joined #linux-amlogic
dliviu has quit [Quit: Going away]
dliviu has joined #linux-amlogic
Stricted has quit [Server closed connection]
Stricted has joined #linux-amlogic
camus has quit [Remote host closed the connection]
camus has joined #linux-amlogic
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Quit: WeeChat 4.0.4]
Daanct12 has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 255 seconds]
hexdump0815 has quit [Ping timeout: 245 seconds]
hexdump0815 has joined #linux-amlogic
Lyude has quit [Ping timeout: 240 seconds]
vagrantc has quit [Quit: leaving]
Lyude has joined #linux-amlogic
naoki has quit [Quit: naoki]
naoki has joined #linux-amlogic
camus has quit [*.net *.split]
Stricted has quit [*.net *.split]
dliviu has quit [*.net *.split]
Danct12 has quit [*.net *.split]
mripard has quit [*.net *.split]
rellla has quit [*.net *.split]
hexdump0815 has quit [*.net *.split]
luka177 has quit [*.net *.split]
montjoie has quit [*.net *.split]
jelly has quit [*.net *.split]
Daanct12 has quit [*.net *.split]
wens has quit [*.net *.split]
cottsay has quit [*.net *.split]
Lyude has quit [*.net *.split]
iprusov has quit [*.net *.split]
jkl has quit [*.net *.split]
Terry13732293409 has quit [*.net *.split]
tortoise has quit [*.net *.split]
aeroraptor has quit [*.net *.split]
BlueMatt has quit [*.net *.split]
rtp has quit [*.net *.split]
mturquette has quit [*.net *.split]
GNUtoo has quit [*.net *.split]
kilobyte_ch has quit [*.net *.split]
leah has quit [*.net *.split]
CounterPillow has quit [*.net *.split]
JerryXiao has quit [*.net *.split]
yang2 has quit [*.net *.split]
khilman has quit [*.net *.split]
ccaione has quit [*.net *.split]
ChanServ has quit [*.net *.split]
ndufresne5 has quit [*.net *.split]
narmstrong has quit [*.net *.split]
phh has quit [*.net *.split]
shoragan has quit [*.net *.split]
kbingham has quit [*.net *.split]
ungeskriptet has quit [*.net *.split]
samueldr has quit [*.net *.split]
Kwiboo has quit [*.net *.split]
kilobyte_ch has joined #linux-amlogic
Terry13732293409 has joined #linux-amlogic
Danct12 has joined #linux-amlogic
tortoise has joined #linux-amlogic
aeroraptor has joined #linux-amlogic
BlueMatt has joined #linux-amlogic
rtp has joined #linux-amlogic
leah has joined #linux-amlogic
GNUtoo has joined #linux-amlogic
ndufresne5 has joined #linux-amlogic
CounterPillow has joined #linux-amlogic
JerryXiao has joined #linux-amlogic
mturquette has joined #linux-amlogic
narmstrong has joined #linux-amlogic
luka177 has joined #linux-amlogic
wens has joined #linux-amlogic
Stricted has joined #linux-amlogic
Kwiboo has joined #linux-amlogic
Lyude has joined #linux-amlogic
dliviu has joined #linux-amlogic
jelly has joined #linux-amlogic
yang2 has joined #linux-amlogic
iprusov has joined #linux-amlogic
jkl has joined #linux-amlogic
kbingham has joined #linux-amlogic
rellla has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
camus has joined #linux-amlogic
hexdump0815 has joined #linux-amlogic
ungeskriptet has joined #linux-amlogic
samueldr has joined #linux-amlogic
mripard has joined #linux-amlogic
phh has joined #linux-amlogic
ccaione has joined #linux-amlogic
shoragan has joined #linux-amlogic
cottsay has joined #linux-amlogic
montjoie has joined #linux-amlogic
khilman has joined #linux-amlogic
ChanServ has joined #linux-amlogic
jacobk has quit [Max SendQ exceeded]
jacobk has joined #linux-amlogic
ungeskriptet has quit [Ping timeout: 250 seconds]
ungeskriptet has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
f11f12 has joined #linux-amlogic
f11f12 has quit [Remote host closed the connection]
f11f12 has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 258 seconds]
Daanct12 has quit [Ping timeout: 252 seconds]
mripard has quit [Ping timeout: 255 seconds]
mripard has joined #linux-amlogic
luka177 has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
xdarklight has quit [Quit: ZNC - https://znc.in]
xdarklight has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
f11f12 has quit [Quit: Leaving]
Daanct12 has quit [Quit: WeeChat 4.0.4]
naoki has quit [Quit: naoki]
chewitt has joined #linux-amlogic
chewitt_ has joined #linux-amlogic
f_[xmpp] has joined #linux-amlogic
f_ has joined #linux-amlogic
<narmstrong> yes it inits the DDR PLL, not the system PLL
chewitt has quit [Ping timeout: 252 seconds]
<f_> indeed
<narmstrong> but you may have a problem if the system bus is underclocked
<f_> Yeah I also noticed the lack of any debugging info whatsoever
<f_> But then why did my hacked up port work in TF-A with no system pll init?
<f_> Is Amlogic code that magic?
<f_> Or did I actually init the pll but don't remember?
<f_> https://git.vitali64.duckdns.org/misc/trustedfirmware-a.git/tree/?h=wip/gxbb&id=aaf0f79c79c9a0cf331ed1d49efdda93cb659cc0
<f_> This tree compiles and can init the DDR successfully, for sure.
<f_> Ironically PLL init code is much more documented than DDR init code
<narmstrong> well if you kept the bl2_arch_setup() the it called pll init, no ?
<f_> That's upstream TF-A, not Amlogic TF-A
<f_> Amlogic wrongly modified the bl2_arch_setup() function which is actually global and used in all boards
<f_> What you're supposed to do is declare a bl2_plat_arch_setup() function
<f_> https://git.vitali64.duckdns.org/misc/trustedfirmware-a.git/tree/plat/amlogic/gxbb/gxbb_bl2_setup.c?h=wip/gxbb&id=969247f6a22a50aa3b8198c0b1b2cd3108cd1768#n81 and this is how it looked like
<f_> in the tree where DDR init seems to work
<f_> https://git.vitali64.duckdns.org/misc/trustedfirmware-a.git/tree/bl2/aarch64/bl2_arch_setup.c?h=wip/gxbb&id=969247f6a22a50aa3b8198c0b1b2cd3108cd1768#n15 and in upstream TF-A bl2_arch_setup() only does this.
<f_> But I'll see if initialising the system PLL solves anything
<f_> I still had to import NUMEROUS files to get it to compile at all
<f_> One of these files did include pll.c, I think it's just for pll_lock_check()
<f_> Either way even if it still didn't work initialising system PLL should help later.
Danct12 has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
chewitt_ has quit [Ping timeout: 252 seconds]
buzzmarshall has quit [Ping timeout: 255 seconds]
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
chewitt has quit [Quit: Zzz..]
mripard has quit [Quit: mripard]
shoragan has quit [Server closed connection]
shoragan has joined #linux-amlogic
Danct12 has joined #linux-amlogic
Kwiboo has quit [Server closed connection]
Kwiboo has joined #linux-amlogic
<f_> Amlogic really abuses parentheses, for sure!
<f_> and val << 0 / val >> 0
<f_> They also abuse tabs!
<f_> haha
<f_> pll.c exists in newer U-Boot tree
<f_> So that's not what they wanted to hide by hiding BL2 source code
<f_> Pretty funny
<f_> AFAICT they just copied BL2 code and split it into multiple functions
<f_> (and probably added some more)
<f_> lol
<f_> at ddr_pll_test
<f_> static int ddr_pll_test (void) { return 0; }
<f_> printf("gxl config irblaster pinmux well\n");
Daanct12 has joined #linux-amlogic
chewitt has joined #linux-amlogic
Danct12 has quit [Ping timeout: 255 seconds]
vagrantc has joined #linux-amlogic
jacobk has quit [Ping timeout: 255 seconds]
jacobk has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
f11f12 has joined #linux-amlogic
f_ has quit [Ping timeout: 240 seconds]
buzzmarshall has joined #linux-amlogic
jacobk has quit [Ping timeout: 240 seconds]
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
cyrozap_ has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #linux-amlogic
jkl has quit [Quit: Gone.]
f11f12 has quit [Quit: Leaving]
jacobk has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
JohnnyonFlame has quit [Ping timeout: 255 seconds]
jacobk has quit [Ping timeout: 246 seconds]
jacobk has joined #linux-amlogic
hays has joined #linux-amlogic
jacobk has quit [Ping timeout: 240 seconds]
jacobk has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
jacobk has quit [Ping timeout: 255 seconds]
jacobk has joined #linux-amlogic