[U-Boot] Changing UPM Table

Hi all,
I've changed upm table for some tests with my NAND flash.
In the normal table we have:
Offset Transaction ------ -----------
0 read data 8 write command 16 write address 24 write data ...
But now this offsets changed, write command and write address I can change throught this struct:
static struct fsl_upm_nand fun = { .upm = { .array = upm_array, .io_addr = (void *)CFG_NAND_BASE, }, .width = 1, .upm_cmd_offset = 8, /// change here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .upm_addr_offset = 16, /// change here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .dev_ready = dev_ready, .wait_pattern = 1, .chip_delay = 50, };
But read data and write data I didnt found where it is seted, if is.
So when I use functions like in_8() or out_8(), u-boot knows that an out_8(), for example, should start at offset 24 (write data) in upm.
My question is: how u-boot knows it? Can I change this?
Cheers,
-- Alemao
participants (1)
-
Alemao