blob: b5d23210b1ac3e3965dc7360201776771f636943 [file] [log] [blame]
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09001/*
Masahiro Yamadafb092032017-02-14 01:24:26 +09002 * Copyright (C) 2014 Panasonic Corporation
3 * Copyright (C) 2015-2017 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09005 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <spl.h>
Masahiro Yamada663a23f2015-05-29 17:30:00 +090011#include <linux/io.h>
Masahiro Yamadafb092032017-02-14 01:24:26 +090012#include <linux/kernel.h>
Masahiro Yamadaefdf3402016-01-09 01:51:13 +090013
Masahiro Yamadaefdf3402016-01-09 01:51:13 +090014#include "boot-device.h"
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090015
Masahiro Yamadafb092032017-02-14 01:24:26 +090016const struct uniphier_boot_device uniphier_ld4_boot_device_table[] = {
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090017 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, EraseSize 128KB, Addr 4)"},
18 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, EraseSize 128KB, Addr 5)"},
19 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, EraseSize 128KB, Addr 5)"},
20 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, EraseSize 256KB, Addr 5)"},
21 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, EraseSize 256KB, Addr 5)"},
22 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, EraseSize 512KB, Addr 5)"},
23 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, EraseSize 512KB, Addr 5)"},
24 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 24, EraseSize 1MB, Addr 5)"},
25 {BOOT_DEVICE_NAND, "NAND (Mirror 4, ECC 24, EraseSize 1MB, Addr 5)"},
26 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, EraseSize 128KB, Addr 5)"},
27 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, EraseSize 128KB, Addr 5)"},
28 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, EraseSize 256KB, Addr 5)"},
29 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, EraseSize 256KB, Addr 5)"},
30 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, EraseSize 512KB, Addr 5)"},
31 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, EraseSize 512KB, Addr 5)"},
32 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 24, EraseSize 512KB, Addr 5)"},
33 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 4)"},
34 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"},
35 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"},
36 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 24, ONFI, Addr 5)"},
37 {BOOT_DEVICE_NAND, "NAND (Mirror 4, ECC 24, ONFI, Addr 5)"},
38 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 5)"},
39 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 5)"},
40 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 24, ONFI, Addr 5)"},
Masahiro Yamadafd9256d2016-05-24 21:13:58 +090041 {BOOT_DEVICE_MMC1, "eMMC (3.3V)"},
42 {BOOT_DEVICE_MMC1, "eMMC (1.8V)"},
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090043 {BOOT_DEVICE_NONE, "Reserved"},
44 {BOOT_DEVICE_NONE, "Reserved"},
45 {BOOT_DEVICE_NONE, "Reserved"},
46 {BOOT_DEVICE_NONE, "Reserved"},
47 {BOOT_DEVICE_NONE, "Reserved"},
Masahiro Yamadafd9256d2016-05-24 21:13:58 +090048 {BOOT_DEVICE_NOR, "NOR (XECS0)"},
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090049};
50
Masahiro Yamadafb092032017-02-14 01:24:26 +090051const unsigned uniphier_ld4_boot_device_count =
52 ARRAY_SIZE(uniphier_ld4_boot_device_table);