Re: Interrupt questions
Vincent DEFERT <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <[email protected]> |
Page 290 is for SPI, I'm using I2C starting page 305.
To enable the clock, I do:
sc->clk = fdtbus_clock_get_index(phandle, 0);
if (sc->clk == NULL || clk_enable(sc->clk) != 0) {
aprint_error_dev(self, "couldn't enable clock\n");
return;
}
Following your suggestion, I submit my code for review and help in a
separate email.
On 25/06/2025 18:19, Robert Swindells wrote:
> Vincent DEFERT <[email protected]> wrote:
>> What is PIO mode?
> Pages 290/1 of the Datasheet.
>
> It describes using the RXDATA and TXDATA registers to read and write
> data instead of using DMA.
>
> There are interrupt status bits for the fifos as well as for DMA.
>
>> For the clock, I see in meson-gxbb.dts that i2c_A's clock is CLKID_I2C,
>> and in gxbb-clkc.h that CLKID_I2C is 22, but I have no clue what it means.
>> At least, it appears to be in the correct domain (not the Always On domain).
> How are you enabling the clocks for this device in your driver?