I have a custom board based on AM3352.
it's has two piece of nand ( k9f2g08 )
has chip select cs0 and cs1
i'm kernel that is pin mux config and function (evm_nand_init) add omap_nand_init(CS1)
but congnition only cs1 and cs0 pass
it's boot log
[ 0.168947] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.169203] NET: Registered protocol family 1
[ 0.169479] RPC: Registered named UNIX socket transport module.
[ 0.169494] RPC: Registered udp transport module.
[ 0.169503] RPC: Registered tcp transport module.
[ 0.169513] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.169742] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.169957] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.169985] Registering NAND on CS1
[ 0.170506] Registering NAND on CS1
[ 0.170519] platform omap2-nand.0: Cannot request GPMC CS
......
[ 0.861171] omap2-nand driver initializing
[ 0.865823] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
[ 0.875052] Creating 1 MTD partitions on "omap2-nand.0":
[ 0.880621] 0x000000000000-0x000010000000 : "data"
it's kernel code function's evm_nand_init
static void evm_nand_init(int evm_id, int profile)
{
struct omap_nand_platform_data *pdata , *pdata2;
struct gpmc_devices_info gpmc_device[2] = {
{ NULL, 0 },
{ NULL, 0 },
};
setup_pin_mux(nand_pin_mux);
pdata = omap_nan d_init(am335x_nand_partitions,
ARRAY_SIZE(am335x_nand_partitions), 0, 0,
&am335x_nand_timings);
if (!pdata)
return;
pdata->ecc_opt =OMAP_ECC_BCH8_CODE_HW;
pdata->elm_used = true;
gpmc_device[0].pdata = pdata;
gpmc_device[0].flag = GPMC_DEVICE_NAND;
#if 1
pdata2 = omap_nand_init(am335x_nand2_partitions,
ARRAY_SIZE(am335x_nand2_partitions), 1, 0,
&am335x_nand_timings);
if (!pdata2)
return;
pdata2->ecc_opt =OMAP_ECC_BCH8_CODE_HW;
pdata2->elm_used = true;
gpmc_device[1].pdata = pdata2;
gpmc_device[1].flag = GPMC_DEVICE_NAND;
#endif
omap_init_gpmc(gpmc_device, sizeof(gpmc_device));
omap_init_elm();
}
it's configuration same timing and different mtd config
it 's wrong .
Thank you
Kind Regards,