Skip to contentSkip to conversation

reset: make reset controller driver initialize early

RFC Dinh Nguyen 3 participants 3 messages Sep 10, 2018 – Sep 11, 2018

lore
Share & tools
lore
#0 lore raw

Hi Philipp,

I need to make the reset controller on the SoCFPGA platform initialize early. I have one solution which is similar to what reset-sunxi is doing, making the "altr,rst-mgr" initialize early in a separate reset-socfpga.c but using the reset-simple operations.

I'm guessing SoCFPGA may not be the only platform that needs the reset driver early, would it make sense to have a solution in reset-simple that is capable of an early init?

Dinh

#1 lore raw

Hi Dinh,

Quoted 4 lines · Dinh Nguyen

Hi Philipp,

I need to make the reset controller on the SoCFPGA platform initialize early.

What does early mean in this context?

Quoted 3 lines

I have one solution which is similar to what reset-sunxi is doing, making the "altr,rst-mgr" initialize early in a separate reset-socfpga.c but using the reset-simple operations.

That's what I would have gone for as well.

Quoted 3 lines

I'm guessing SoCFPGA may not be the only platform that needs the reset driver early, would it make sense to have a solution in reset-simple that is capable of an early init?

I suppose you could share sunxi_reset_init if you pass it a struct reset_simple_devdata as an argument.

regards
Philipp

#2 lore raw
Quoted 1 line · Philipp Zabel

Hi Dinh,

Hi all,

Quoted 7 lines · Dinh Nguyen
Quoted 4 lines

Hi Philipp,

I need to make the reset controller on the SoCFPGA platform initialize early.

What does early mean in this context?

Means before timer, since timer needs to be un-reset by Linux before it can be used.

Quoted 16 lines
Quoted 3 lines

I have one solution which is similar to what reset-sunxi is doing, making the "altr,rst-mgr" initialize early in a separate reset-socfpga.c but using the reset-simple operations.

That's what I would have gone for as well.

Quoted 3 lines

I'm guessing SoCFPGA may not be the only platform that needs the reset driver early, would it make sense to have a solution in reset-simple that is capable of an early init?

I suppose you could share sunxi_reset_init if you pass it a struct reset_simple_devdata as an argument.

regards
Philipp

Signature · 2 lines
Best regards,
Marek Vasut