Skip to content

Commit

Permalink
nand: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Aug 24, 2024
1 parent d46a1f9 commit 64da012
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/bb/nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ static void nand_cmd_pageprog_async(int bufidx, uint32_t addr, bool ecc)
NAND_CMD_PAGEPROG_B;
}

static void nand_cmd_pageprog(int bufidx, uint32_t addr, bool ecc)
{
nand_cmd_pageprog_async(bufidx, addr, ecc);
nand_cmd_wait();
}

static void nand_cmd_erase(uint32_t addr)
{
*PI_BB_NAND_ADDR = addr;
Expand Down Expand Up @@ -163,15 +157,6 @@ static uint8_t io_read8(uint32_t addr)
return (data >> ((~addr & 3) * 8)) & 0xFF;
}

static void io_write8(uint32_t addr, uint8_t data)
{
uint32_t mask = 0xFF << ((~addr & 3) * 8);
uint32_t shift = (~addr & 3) * 8;
uint32_t old_data = io_read(addr & ~3);
uint32_t new_data = (old_data & ~mask) | ((uint32_t)data << shift);
io_write(addr & ~3, new_data);
}

void nand_init(void)
{
assertf(sys_bbplayer(), "NAND is only present on iQue Player");
Expand Down

0 comments on commit 64da012

Please sign in to comment.