| .. | .. |
|---|
| 481 | 481 | } |
|---|
| 482 | 482 | #endif |
|---|
| 483 | 483 | |
|---|
| 484 | | -#ifdef CONFIG_MTD_BLK |
|---|
| 485 | | -static int initr_mtd_blk(void) |
|---|
| 486 | | -{ |
|---|
| 487 | | -#ifndef CONFIG_USING_KERNEL_DTB |
|---|
| 488 | | - struct blk_desc *dev_desc; |
|---|
| 489 | | - |
|---|
| 490 | | - puts("mtd_blk: "); |
|---|
| 491 | | - dev_desc = rockchip_get_bootdev(); |
|---|
| 492 | | - if (dev_desc) |
|---|
| 493 | | - mtd_blk_map_partitions(dev_desc); |
|---|
| 494 | | -#endif |
|---|
| 495 | | - return 0; |
|---|
| 496 | | -} |
|---|
| 497 | | -#endif |
|---|
| 498 | | - |
|---|
| 499 | 484 | #if !defined(CONFIG_USING_KERNEL_DTB) || !defined(CONFIG_ENV_IS_NOWHERE) |
|---|
| 500 | 485 | /* |
|---|
| 501 | 486 | * Tell if it's OK to load the environment early in boot. |
|---|
| .. | .. |
|---|
| 966 | 951 | #endif |
|---|
| 967 | 952 | #ifdef CONFIG_CMD_ONENAND |
|---|
| 968 | 953 | initr_onenand, |
|---|
| 969 | | -#endif |
|---|
| 970 | | -#ifdef CONFIG_MTD_BLK |
|---|
| 971 | | - initr_mtd_blk, |
|---|
| 972 | 954 | #endif |
|---|
| 973 | 955 | #ifdef CONFIG_MMC |
|---|
| 974 | 956 | initr_mmc, |
|---|