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