Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

CPLD with Skylake CPU via eSPI interface

Hi,

I own a project and there is a Altera CPLD attached to Skylake CPU via eSPI, Im wondering port a embedded Linux to access CPLD.

Im sure there is a master CPLD driver build-in Linux kernel, should I write a customize eSPI slave driver for accessing this specific CPLD?

I trace the source code of linux kernel, there is a C file - spi-altera.c, did it support all Altera product and using eSPI interface?

Thanks.

--Dirk

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    Im sure there is a master CPLD driver build-in Linux kernel, should I write a customize eSPI slave driver for accessing this specific CPLD?

    --- Quote End ---

    Most likely, yes.

    --- Quote Start ---

    I trace the source code of linux kernel, there is a C file - spi-altera.c, did it support all Altera product and using eSPI interface?

    --- Quote End ---

    That driver is for interfacing to the Altera SPI IP block (e.g. from a NIOS or ARM), which is not what you are doing.