Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n6010: fix wrong initial pll page #15

Open
wants to merge 1 commit into
base: socfpga_v2023.04
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions board/intel/agilex-n6010/socfpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void spl_board_init(void)
#define PLL_SPI_BITS 16

#define PLL_SPI_PAGE_REG 0x7f
#define PLL_SPI_PAGE_INVALID 0xff
#define PLL_SPI_FREQ_OFFSET_REG 0x0b
#define PLL_SPI_FREQ_OFFSET_CNT 4
#define PLL_SPI_PAGE(addr) ((addr) >> 7)
Expand Down Expand Up @@ -141,7 +142,7 @@ static int zl_pll_write_one(struct spi_slave *slave, u16 addr, u8 val, u8 *page)

static int zl_pll_detect(struct spi_slave *slave)
{
u8 page = 0;
u8 page = PLL_SPI_PAGE_INVALID;
int i, ret;

union {
Expand Down Expand Up @@ -175,7 +176,7 @@ static int zl_pll_detect(struct spi_slave *slave)
static int zl_pll_write(struct spi_slave *slave)
{
PLLStructItem_t *item = PLLStructItemList;
u8 page = 0;
u8 page = PLL_SPI_PAGE_INVALID;
int ret, i;

/* write embedded config register values to PLL */
Expand Down