premoboss has quit [Remote host closed the connection]
<mmind00>
amstan: you're probably asleep now, but I have working wifi on pinky and jerry now ... the problem was easier than imagined, as simply the iodomain driver was missing ... see PM/Avs patch from yesterday
<c0d3z3r0>
naobsd: you said rockchip-timer should work for rk3188. that is the arch timer used with rk3288, right?
<naobsd>
c0d3z3r0: arch timer is handled by arch timer driver
<naobsd>
c0d3z3r0: rockchip timer is 64bit timer in RK3188 and rk3288
<c0d3z3r0>
naobsd: ah ok what is that local-/global-timer in rk3188.dtsi? it's not in rk3288.dtsi
FreezingCold has joined #linux-rockchip
naobsd has quit [Quit: naobsd]
<mmind00>
c0d3z3r0: arch-timer and global/local-timer are the timers integrated into the ARM-core (arch-timer from Cortex-A15 onward (A7, A17) and the global/local-timer limited to A9 I think)
<c0d3z3r0>
mmind00: so I have to remove them when adding rockchip-timer?
<mmind00>
c0d3z3r0: first of all you would need to adapt the rockchip timer driver somehow ... it currently only implements a broadcast clockevent device
premoboss has joined #linux-rockchip
<mmind00>
c0d3z3r0: the easier option might be fixing the global
<mmind00>
+ local-timer
<mmind00>
c0d3z3r0: both currently do not check their source clock at all ... but both have a "prescaler" field meant to adapt the interval length it seems: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0407e/JHBCHJID.html
<mmind00>
c0d3z3r0: so essentially, add clk_get and friends and a clock notifier that gets fired when the core-periph clock changes and adapts the prescaler
<mmind00>
c0d3z3r0: ok scrap parts of this ... the global timer actually does clk_get the clock, but does not handle it changing, so essentially needs just the clock notifier redoing the rate calculation [without touching the prescaler]
<c0d3z3r0>
mmind00: ok, I'll see if I get it working :) mh what about drivers/clocksource/rockchip_timer.c ? isn't that already working for rk3288?
<mmind00>
c0d3z3r0: drivers/clocksource/timer-sun5i.c seems to have the same "issue" so you might get inspiration from there (in terms of clk_notifier)
<mmind00>
c0d3z3r0: as I said, rockchip_timer currently only handles a broadcast clockevent timer, what you would need is a global clocksource and additional per-cpu clockevent devices
<mmind00>
c0d3z3r0: and adding new clocksource drivers might get you shouted at ;-)
<mmind00>
c0d3z3r0: cadence_ttc_timer.c might be second nice example there
<c0d3z3r0>
mmind00: thanks :) let's see if I can manage that
else- has quit [Quit: WeeChat 0.4.2]
else- has joined #linux-rockchip
nighty^ has quit [Ping timeout: 272 seconds]
nighty^ has joined #linux-rockchip
markm has quit [Ping timeout: 272 seconds]
markm has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 246 seconds]
FreezingCold has joined #linux-rockchip
nighty^ has quit [Quit: Disappears in a puff of smoke]
naobsd has joined #linux-rockchip
abdul_pt_ has joined #linux-rockchip
abdul_pt_ has left #linux-rockchip [#linux-rockchip]
naobsd has quit [Quit: naobsd]
markm has quit [Read error: Connection reset by peer]