static inline void da850_evm_setup_nor_nand(void) { int ret = 0; if (!HAS_MMC) { ret = davinci_cfg_reg_list(da850_evm_nand_pins); if (ret) pr_warning("da850_evm_init: nand mux setup failed: " "%d\n", ret); ret = davinci_cfg_reg_list(da850_evm_nor_pins); if (ret) pr_warning("da850_evm_init: nor mux setup failed: %d\n", ret); da850_evm_init_nor(); platform_add_devices(da850_evm_devices, ARRAY_SIZE(da850_evm_devices)); } }
static inline void da850_evm_setup_nor_nand(void) { int ret = 0; if (!HAS_MMC) { ret = davinci_cfg_reg_list(da850_evm_nand_pins); if (ret) pr_warn("%s: NAND mux setup failed: %d\n", __func__, ret); ret = davinci_cfg_reg_list(da850_evm_nor_pins); if (ret) pr_warn("%s: NOR mux setup failed: %d\n", __func__, ret); da850_evm_init_nor(); platform_add_devices(da850_evm_devices, ARRAY_SIZE(da850_evm_devices)); if (davinci_aemif_setup(&da850_evm_nandflash_device)) pr_warn("%s: Cannot configure AEMIF.\n", __func__); } }