Commit c5330ae8c8169fa9e81e2f8f5db4a9388d0a89d6
Committed by
Stefan Roese
1 parent
81192b7966
Exists in
smarc_8mq_lf_v2020.04
and in
18 other branches
arm64: mvebu: Rename the db-88f3720 to armada-37xx platform
Modify the file names and deifinitions relater to Marvell db-77f3720 board support. Convert these names to more generic armada-37xx platform for future addition of more boards based on the same SoC family. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Cc: Stefan Roese <sr@denx.de> Cc: Igal Liberman <igall@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de>
Showing 10 changed files with 282 additions and 282 deletions Side-by-side Diff
- arch/arm/mach-mvebu/Kconfig
- board/Marvell/mvebu_armada-37xx/MAINTAINERS
- board/Marvell/mvebu_armada-37xx/Makefile
- board/Marvell/mvebu_armada-37xx/board.c
- board/Marvell/mvebu_db-88f3720/MAINTAINERS
- board/Marvell/mvebu_db-88f3720/Makefile
- board/Marvell/mvebu_db-88f3720/board.c
- configs/mvebu_db-88f3720_defconfig
- include/configs/mvebu_armada-37xx.h
- include/configs/mvebu_db-88f3720.h
arch/arm/mach-mvebu/Kconfig
... | ... | @@ -74,8 +74,8 @@ |
74 | 74 | bool "Support ClearFog" |
75 | 75 | select 88F6820 |
76 | 76 | |
77 | -config TARGET_MVEBU_DB_88F3720 | |
78 | - bool "Support DB-88F3720 Armada 3720" | |
77 | +config TARGET_MVEBU_ARMADA_37XX | |
78 | + bool "Support Armada 37xx platforms" | |
79 | 79 | select ARMADA_3700 |
80 | 80 | |
81 | 81 | config TARGET_DB_88F6720 |
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | |
117 | 117 | config SYS_BOARD |
118 | 118 | default "clearfog" if TARGET_CLEARFOG |
119 | - default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 | |
119 | + default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX | |
120 | 120 | default "db-88f6720" if TARGET_DB_88F6720 |
121 | 121 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
122 | 122 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
... | ... | @@ -128,7 +128,7 @@ |
128 | 128 | |
129 | 129 | config SYS_CONFIG_NAME |
130 | 130 | default "clearfog" if TARGET_CLEARFOG |
131 | - default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 | |
131 | + default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX | |
132 | 132 | default "db-88f6720" if TARGET_DB_88F6720 |
133 | 133 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
134 | 134 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
... | ... | @@ -140,7 +140,7 @@ |
140 | 140 | |
141 | 141 | config SYS_VENDOR |
142 | 142 | default "Marvell" if TARGET_DB_MV784MP_GP |
143 | - default "Marvell" if TARGET_MVEBU_DB_88F3720 | |
143 | + default "Marvell" if TARGET_MVEBU_ARMADA_37XX | |
144 | 144 | default "Marvell" if TARGET_DB_88F6720 |
145 | 145 | default "Marvell" if TARGET_DB_88F6820_GP |
146 | 146 | default "Marvell" if TARGET_DB_88F6820_AMC |
board/Marvell/mvebu_armada-37xx/MAINTAINERS
board/Marvell/mvebu_armada-37xx/Makefile
board/Marvell/mvebu_armada-37xx/board.c
1 | +/* | |
2 | + * Copyright (C) 2016 Stefan Roese <sr@denx.de> | |
3 | + * | |
4 | + * SPDX-License-Identifier: GPL-2.0+ | |
5 | + */ | |
6 | + | |
7 | +#include <common.h> | |
8 | +#include <i2c.h> | |
9 | +#include <asm/io.h> | |
10 | +#include <asm/arch/cpu.h> | |
11 | +#include <asm/arch/soc.h> | |
12 | + | |
13 | +DECLARE_GLOBAL_DATA_PTR; | |
14 | + | |
15 | +/* IO expander I2C device */ | |
16 | +#define I2C_IO_EXP_ADDR 0x22 | |
17 | +#define I2C_IO_CFG_REG_0 0x6 | |
18 | +#define I2C_IO_DATA_OUT_REG_0 0x2 | |
19 | +#define I2C_IO_REG_0_SATA_OFF 2 | |
20 | +#define I2C_IO_REG_0_USB_H_OFF 1 | |
21 | + | |
22 | +int board_early_init_f(void) | |
23 | +{ | |
24 | + /* Nothing to do (yet), perhaps later some pin-muxing etc */ | |
25 | + | |
26 | + return 0; | |
27 | +} | |
28 | + | |
29 | +int board_init(void) | |
30 | +{ | |
31 | + /* adress of boot parameters */ | |
32 | + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; | |
33 | + | |
34 | + return 0; | |
35 | +} | |
36 | + | |
37 | +/* Board specific AHCI / SATA enable code */ | |
38 | +int board_ahci_enable(void) | |
39 | +{ | |
40 | + struct udevice *dev; | |
41 | + int ret; | |
42 | + u8 buf[8]; | |
43 | + | |
44 | + /* Configure IO exander PCA9555: 7bit address 0x22 */ | |
45 | + ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev); | |
46 | + if (ret) { | |
47 | + printf("Cannot find PCA9555: %d\n", ret); | |
48 | + return 0; | |
49 | + } | |
50 | + | |
51 | + ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1); | |
52 | + if (ret) { | |
53 | + printf("Failed to read IO expander value via I2C\n"); | |
54 | + return -EIO; | |
55 | + } | |
56 | + | |
57 | + /* | |
58 | + * Enable SATA power via IO expander connected via I2C by setting | |
59 | + * the corresponding bit to output mode to enable power for SATA | |
60 | + */ | |
61 | + buf[0] &= ~(1 << I2C_IO_REG_0_SATA_OFF); | |
62 | + ret = dm_i2c_write(dev, I2C_IO_CFG_REG_0, buf, 1); | |
63 | + if (ret) { | |
64 | + printf("Failed to set IO expander via I2C\n"); | |
65 | + return -EIO; | |
66 | + } | |
67 | + | |
68 | + return 0; | |
69 | +} | |
70 | + | |
71 | +/* Board specific xHCI enable code */ | |
72 | +int board_xhci_enable(void) | |
73 | +{ | |
74 | + struct udevice *dev; | |
75 | + int ret; | |
76 | + u8 buf[8]; | |
77 | + | |
78 | + /* Configure IO exander PCA9555: 7bit address 0x22 */ | |
79 | + ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev); | |
80 | + if (ret) { | |
81 | + printf("Cannot find PCA9555: %d\n", ret); | |
82 | + return 0; | |
83 | + } | |
84 | + | |
85 | + printf("Enable USB VBUS\n"); | |
86 | + | |
87 | + /* | |
88 | + * Read configuration (direction) and set VBUS pin as output | |
89 | + * (reset pin = output) | |
90 | + */ | |
91 | + ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1); | |
92 | + if (ret) { | |
93 | + printf("Failed to read IO expander value via I2C\n"); | |
94 | + return -EIO; | |
95 | + } | |
96 | + buf[0] &= ~(1 << I2C_IO_REG_0_USB_H_OFF); | |
97 | + ret = dm_i2c_write(dev, I2C_IO_CFG_REG_0, buf, 1); | |
98 | + if (ret) { | |
99 | + printf("Failed to set IO expander via I2C\n"); | |
100 | + return -EIO; | |
101 | + } | |
102 | + | |
103 | + /* Read VBUS output value and disable it */ | |
104 | + ret = dm_i2c_read(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
105 | + if (ret) { | |
106 | + printf("Failed to read IO expander value via I2C\n"); | |
107 | + return -EIO; | |
108 | + } | |
109 | + buf[0] &= ~(1 << I2C_IO_REG_0_USB_H_OFF); | |
110 | + ret = dm_i2c_write(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
111 | + if (ret) { | |
112 | + printf("Failed to set IO expander via I2C\n"); | |
113 | + return -EIO; | |
114 | + } | |
115 | + | |
116 | + /* | |
117 | + * Required delay for configuration to settle - must wait for | |
118 | + * power on port is disabled in case VBUS signal was high, | |
119 | + * required 3 seconds delay to let VBUS signal fully settle down | |
120 | + */ | |
121 | + mdelay(3000); | |
122 | + | |
123 | + /* Enable VBUS power: Set output value of VBUS pin as enabled */ | |
124 | + buf[0] |= (1 << I2C_IO_REG_0_USB_H_OFF); | |
125 | + ret = dm_i2c_write(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
126 | + if (ret) { | |
127 | + printf("Failed to set IO expander via I2C\n"); | |
128 | + return -EIO; | |
129 | + } | |
130 | + | |
131 | + mdelay(500); /* required delay to let output value settle */ | |
132 | + | |
133 | + return 0; | |
134 | +} |
board/Marvell/mvebu_db-88f3720/MAINTAINERS
board/Marvell/mvebu_db-88f3720/Makefile
board/Marvell/mvebu_db-88f3720/board.c
1 | -/* | |
2 | - * Copyright (C) 2016 Stefan Roese <sr@denx.de> | |
3 | - * | |
4 | - * SPDX-License-Identifier: GPL-2.0+ | |
5 | - */ | |
6 | - | |
7 | -#include <common.h> | |
8 | -#include <i2c.h> | |
9 | -#include <asm/io.h> | |
10 | -#include <asm/arch/cpu.h> | |
11 | -#include <asm/arch/soc.h> | |
12 | - | |
13 | -DECLARE_GLOBAL_DATA_PTR; | |
14 | - | |
15 | -/* IO expander I2C device */ | |
16 | -#define I2C_IO_EXP_ADDR 0x22 | |
17 | -#define I2C_IO_CFG_REG_0 0x6 | |
18 | -#define I2C_IO_DATA_OUT_REG_0 0x2 | |
19 | -#define I2C_IO_REG_0_SATA_OFF 2 | |
20 | -#define I2C_IO_REG_0_USB_H_OFF 1 | |
21 | - | |
22 | -int board_early_init_f(void) | |
23 | -{ | |
24 | - /* Nothing to do (yet), perhaps later some pin-muxing etc */ | |
25 | - | |
26 | - return 0; | |
27 | -} | |
28 | - | |
29 | -int board_init(void) | |
30 | -{ | |
31 | - /* adress of boot parameters */ | |
32 | - gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; | |
33 | - | |
34 | - return 0; | |
35 | -} | |
36 | - | |
37 | -/* Board specific AHCI / SATA enable code */ | |
38 | -int board_ahci_enable(void) | |
39 | -{ | |
40 | - struct udevice *dev; | |
41 | - int ret; | |
42 | - u8 buf[8]; | |
43 | - | |
44 | - /* Configure IO exander PCA9555: 7bit address 0x22 */ | |
45 | - ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev); | |
46 | - if (ret) { | |
47 | - printf("Cannot find PCA9555: %d\n", ret); | |
48 | - return 0; | |
49 | - } | |
50 | - | |
51 | - ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1); | |
52 | - if (ret) { | |
53 | - printf("Failed to read IO expander value via I2C\n"); | |
54 | - return -EIO; | |
55 | - } | |
56 | - | |
57 | - /* | |
58 | - * Enable SATA power via IO expander connected via I2C by setting | |
59 | - * the corresponding bit to output mode to enable power for SATA | |
60 | - */ | |
61 | - buf[0] &= ~(1 << I2C_IO_REG_0_SATA_OFF); | |
62 | - ret = dm_i2c_write(dev, I2C_IO_CFG_REG_0, buf, 1); | |
63 | - if (ret) { | |
64 | - printf("Failed to set IO expander via I2C\n"); | |
65 | - return -EIO; | |
66 | - } | |
67 | - | |
68 | - return 0; | |
69 | -} | |
70 | - | |
71 | -/* Board specific xHCI enable code */ | |
72 | -int board_xhci_enable(void) | |
73 | -{ | |
74 | - struct udevice *dev; | |
75 | - int ret; | |
76 | - u8 buf[8]; | |
77 | - | |
78 | - /* Configure IO exander PCA9555: 7bit address 0x22 */ | |
79 | - ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev); | |
80 | - if (ret) { | |
81 | - printf("Cannot find PCA9555: %d\n", ret); | |
82 | - return 0; | |
83 | - } | |
84 | - | |
85 | - printf("Enable USB VBUS\n"); | |
86 | - | |
87 | - /* | |
88 | - * Read configuration (direction) and set VBUS pin as output | |
89 | - * (reset pin = output) | |
90 | - */ | |
91 | - ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1); | |
92 | - if (ret) { | |
93 | - printf("Failed to read IO expander value via I2C\n"); | |
94 | - return -EIO; | |
95 | - } | |
96 | - buf[0] &= ~(1 << I2C_IO_REG_0_USB_H_OFF); | |
97 | - ret = dm_i2c_write(dev, I2C_IO_CFG_REG_0, buf, 1); | |
98 | - if (ret) { | |
99 | - printf("Failed to set IO expander via I2C\n"); | |
100 | - return -EIO; | |
101 | - } | |
102 | - | |
103 | - /* Read VBUS output value and disable it */ | |
104 | - ret = dm_i2c_read(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
105 | - if (ret) { | |
106 | - printf("Failed to read IO expander value via I2C\n"); | |
107 | - return -EIO; | |
108 | - } | |
109 | - buf[0] &= ~(1 << I2C_IO_REG_0_USB_H_OFF); | |
110 | - ret = dm_i2c_write(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
111 | - if (ret) { | |
112 | - printf("Failed to set IO expander via I2C\n"); | |
113 | - return -EIO; | |
114 | - } | |
115 | - | |
116 | - /* | |
117 | - * Required delay for configuration to settle - must wait for | |
118 | - * power on port is disabled in case VBUS signal was high, | |
119 | - * required 3 seconds delay to let VBUS signal fully settle down | |
120 | - */ | |
121 | - mdelay(3000); | |
122 | - | |
123 | - /* Enable VBUS power: Set output value of VBUS pin as enabled */ | |
124 | - buf[0] |= (1 << I2C_IO_REG_0_USB_H_OFF); | |
125 | - ret = dm_i2c_write(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); | |
126 | - if (ret) { | |
127 | - printf("Failed to set IO expander via I2C\n"); | |
128 | - return -EIO; | |
129 | - } | |
130 | - | |
131 | - mdelay(500); /* required delay to let output value settle */ | |
132 | - | |
133 | - return 0; | |
134 | -} |
configs/mvebu_db-88f3720_defconfig
include/configs/mvebu_armada-37xx.h
1 | +/* | |
2 | + * Copyright (C) 2016 Stefan Roese <sr@denx.de> | |
3 | + * | |
4 | + * SPDX-License-Identifier: GPL-2.0+ | |
5 | + */ | |
6 | + | |
7 | +#ifndef _CONFIG_MVEBU_ARMADA_37XX_H | |
8 | +#define _CONFIG_MVEBU_ARMADA_37XX_H | |
9 | + | |
10 | +/* | |
11 | + * High Level Configuration Options (easy to change) | |
12 | + */ | |
13 | +#define CONFIG_DISPLAY_BOARDINFO_LATE | |
14 | + | |
15 | +#define CONFIG_SYS_TEXT_BASE 0x00000000 | |
16 | + | |
17 | +/* additions for new ARM relocation support */ | |
18 | +#define CONFIG_SYS_SDRAM_BASE 0x00000000 | |
19 | + | |
20 | +#define CONFIG_NR_DRAM_BANKS 1 | |
21 | + | |
22 | +/* auto boot */ | |
23 | +#define CONFIG_PREBOOT | |
24 | + | |
25 | +#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \ | |
26 | + 115200, 230400, 460800, 921600 } | |
27 | + | |
28 | +/* | |
29 | + * For booting Linux, the board info and command line data | |
30 | + * have to be in the first 8 MB of memory, since this is | |
31 | + * the maximum mapped by the Linux kernel during initialization. | |
32 | + */ | |
33 | +#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ | |
34 | +#define CONFIG_INITRD_TAG /* enable INITRD tag */ | |
35 | +#define CONFIG_SETUP_MEMORY_TAGS /* enable memory tag */ | |
36 | + | |
37 | +#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */ | |
38 | +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \ | |
39 | + +sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buff */ | |
40 | + | |
41 | +/* | |
42 | + * Size of malloc() pool | |
43 | + */ | |
44 | +#define CONFIG_SYS_MALLOC_LEN (4 << 20) /* 4MiB for malloc() */ | |
45 | + | |
46 | +/* | |
47 | + * Other required minimal configurations | |
48 | + */ | |
49 | +#define CONFIG_SYS_LONGHELP | |
50 | +#define CONFIG_AUTO_COMPLETE | |
51 | +#define CONFIG_CMDLINE_EDITING | |
52 | +#define CONFIG_ARCH_CPU_INIT /* call arch_cpu_init() */ | |
53 | +#define CONFIG_SYS_LOAD_ADDR 0x00800000 /* default load adr- 8M */ | |
54 | +#define CONFIG_SYS_MEMTEST_START 0x00800000 /* 8M */ | |
55 | +#define CONFIG_SYS_MEMTEST_END 0x00ffffff /*(_16M -1) */ | |
56 | +#define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */ | |
57 | +#define CONFIG_SYS_MAXARGS 32 /* max number of command args */ | |
58 | + | |
59 | +#define CONFIG_SYS_ALT_MEMTEST | |
60 | + | |
61 | +/* End of 16M scrubbed by training in bootrom */ | |
62 | +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0xFF0000) | |
63 | + | |
64 | +/* | |
65 | + * I2C | |
66 | + */ | |
67 | +#define CONFIG_I2C_MV | |
68 | +#define CONFIG_SYS_I2C_SLAVE 0x0 | |
69 | + | |
70 | +/* | |
71 | + * SPI Flash configuration | |
72 | + */ | |
73 | +#define CONFIG_ENV_SPI_BUS 0 | |
74 | +#define CONFIG_ENV_SPI_CS 0 | |
75 | + | |
76 | +/* SPI NOR flash default params, used by sf commands */ | |
77 | +#define CONFIG_SF_DEFAULT_SPEED 1000000 | |
78 | +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 | |
79 | +#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE | |
80 | + | |
81 | +/* Environment in SPI NOR flash */ | |
82 | +#define CONFIG_ENV_IS_IN_SPI_FLASH | |
83 | +#define CONFIG_ENV_OFFSET 0x180000 /* as Marvell U-Boot version */ | |
84 | +#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */ | |
85 | +#define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */ | |
86 | + | |
87 | +/* | |
88 | + * Ethernet Driver configuration | |
89 | + */ | |
90 | +#define CONFIG_MVNETA /* Enable Marvell Gbe Controller Driver */ | |
91 | +#define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ | |
92 | +#define CONFIG_PHY_GIGE /* GbE speed/duplex detect */ | |
93 | +#define CONFIG_ARP_TIMEOUT 200 | |
94 | +#define CONFIG_NET_RETRY_COUNT 50 | |
95 | + | |
96 | +/* USB 2.0 */ | |
97 | +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3 | |
98 | + | |
99 | +/* USB 3.0 */ | |
100 | +#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 3 | |
101 | + | |
102 | +#define CONFIG_USB_MAX_CONTROLLER_COUNT (CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS + \ | |
103 | + CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS) | |
104 | + | |
105 | +/* USB ethernet */ | |
106 | +#define CONFIG_USB_HOST_ETHER | |
107 | +#define CONFIG_USB_ETHER_ASIX | |
108 | +#define CONFIG_USB_ETHER_MCS7830 | |
109 | +#define CONFIG_USB_ETHER_RTL8152 | |
110 | +#define CONFIG_USB_ETHER_SMSC95XX | |
111 | + | |
112 | +/* | |
113 | + * SATA/SCSI/AHCI configuration | |
114 | + */ | |
115 | +#define CONFIG_SCSI | |
116 | +#define CONFIG_SCSI_AHCI | |
117 | +#define CONFIG_SCSI_AHCI_PLAT | |
118 | +#define CONFIG_LIBATA | |
119 | +#define CONFIG_LBA48 | |
120 | +#define CONFIG_SYS_64BIT_LBA | |
121 | + | |
122 | +#define CONFIG_SYS_SCSI_MAX_SCSI_ID 2 | |
123 | +#define CONFIG_SYS_SCSI_MAX_LUN 1 | |
124 | +#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ | |
125 | + CONFIG_SYS_SCSI_MAX_LUN) | |
126 | + | |
127 | +#define CONFIG_SUPPORT_VFAT | |
128 | + | |
129 | +#endif /* _CONFIG_MVEBU_ARMADA_37XX_H */ |
include/configs/mvebu_db-88f3720.h
1 | -/* | |
2 | - * Copyright (C) 2016 Stefan Roese <sr@denx.de> | |
3 | - * | |
4 | - * SPDX-License-Identifier: GPL-2.0+ | |
5 | - */ | |
6 | - | |
7 | -#ifndef _CONFIG_MVEBU_DB_88F3720_H | |
8 | -#define _CONFIG_MVEBU_DB_88F3720_H | |
9 | - | |
10 | -/* | |
11 | - * High Level Configuration Options (easy to change) | |
12 | - */ | |
13 | -#define CONFIG_DISPLAY_BOARDINFO_LATE | |
14 | - | |
15 | -#define CONFIG_SYS_TEXT_BASE 0x00000000 | |
16 | - | |
17 | -/* additions for new ARM relocation support */ | |
18 | -#define CONFIG_SYS_SDRAM_BASE 0x00000000 | |
19 | - | |
20 | -#define CONFIG_NR_DRAM_BANKS 1 | |
21 | - | |
22 | -/* auto boot */ | |
23 | -#define CONFIG_PREBOOT | |
24 | - | |
25 | -#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \ | |
26 | - 115200, 230400, 460800, 921600 } | |
27 | - | |
28 | -/* | |
29 | - * For booting Linux, the board info and command line data | |
30 | - * have to be in the first 8 MB of memory, since this is | |
31 | - * the maximum mapped by the Linux kernel during initialization. | |
32 | - */ | |
33 | -#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ | |
34 | -#define CONFIG_INITRD_TAG /* enable INITRD tag */ | |
35 | -#define CONFIG_SETUP_MEMORY_TAGS /* enable memory tag */ | |
36 | - | |
37 | -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */ | |
38 | -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \ | |
39 | - +sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buff */ | |
40 | - | |
41 | -/* | |
42 | - * Size of malloc() pool | |
43 | - */ | |
44 | -#define CONFIG_SYS_MALLOC_LEN (4 << 20) /* 4MiB for malloc() */ | |
45 | - | |
46 | -/* | |
47 | - * Other required minimal configurations | |
48 | - */ | |
49 | -#define CONFIG_SYS_LONGHELP | |
50 | -#define CONFIG_AUTO_COMPLETE | |
51 | -#define CONFIG_CMDLINE_EDITING | |
52 | -#define CONFIG_ARCH_CPU_INIT /* call arch_cpu_init() */ | |
53 | -#define CONFIG_SYS_LOAD_ADDR 0x00800000 /* default load adr- 8M */ | |
54 | -#define CONFIG_SYS_MEMTEST_START 0x00800000 /* 8M */ | |
55 | -#define CONFIG_SYS_MEMTEST_END 0x00ffffff /*(_16M -1) */ | |
56 | -#define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */ | |
57 | -#define CONFIG_SYS_MAXARGS 32 /* max number of command args */ | |
58 | - | |
59 | -#define CONFIG_SYS_ALT_MEMTEST | |
60 | - | |
61 | -/* End of 16M scrubbed by training in bootrom */ | |
62 | -#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0xFF0000) | |
63 | - | |
64 | -/* | |
65 | - * I2C | |
66 | - */ | |
67 | -#define CONFIG_I2C_MV | |
68 | -#define CONFIG_SYS_I2C_SLAVE 0x0 | |
69 | - | |
70 | -/* | |
71 | - * SPI Flash configuration | |
72 | - */ | |
73 | -#define CONFIG_ENV_SPI_BUS 0 | |
74 | -#define CONFIG_ENV_SPI_CS 0 | |
75 | - | |
76 | -/* SPI NOR flash default params, used by sf commands */ | |
77 | -#define CONFIG_SF_DEFAULT_SPEED 1000000 | |
78 | -#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 | |
79 | -#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE | |
80 | - | |
81 | -/* Environment in SPI NOR flash */ | |
82 | -#define CONFIG_ENV_IS_IN_SPI_FLASH | |
83 | -#define CONFIG_ENV_OFFSET 0x180000 /* as Marvell U-Boot version */ | |
84 | -#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */ | |
85 | -#define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */ | |
86 | - | |
87 | -/* | |
88 | - * Ethernet Driver configuration | |
89 | - */ | |
90 | -#define CONFIG_MVNETA /* Enable Marvell Gbe Controller Driver */ | |
91 | -#define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ | |
92 | -#define CONFIG_PHY_GIGE /* GbE speed/duplex detect */ | |
93 | -#define CONFIG_ARP_TIMEOUT 200 | |
94 | -#define CONFIG_NET_RETRY_COUNT 50 | |
95 | - | |
96 | -/* USB 2.0 */ | |
97 | -#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3 | |
98 | - | |
99 | -/* USB 3.0 */ | |
100 | -#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 3 | |
101 | - | |
102 | -#define CONFIG_USB_MAX_CONTROLLER_COUNT (CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS + \ | |
103 | - CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS) | |
104 | - | |
105 | -/* USB ethernet */ | |
106 | -#define CONFIG_USB_HOST_ETHER | |
107 | -#define CONFIG_USB_ETHER_ASIX | |
108 | -#define CONFIG_USB_ETHER_MCS7830 | |
109 | -#define CONFIG_USB_ETHER_RTL8152 | |
110 | -#define CONFIG_USB_ETHER_SMSC95XX | |
111 | - | |
112 | -/* | |
113 | - * SATA/SCSI/AHCI configuration | |
114 | - */ | |
115 | -#define CONFIG_SCSI | |
116 | -#define CONFIG_SCSI_AHCI | |
117 | -#define CONFIG_SCSI_AHCI_PLAT | |
118 | -#define CONFIG_LIBATA | |
119 | -#define CONFIG_LBA48 | |
120 | -#define CONFIG_SYS_64BIT_LBA | |
121 | - | |
122 | -#define CONFIG_SYS_SCSI_MAX_SCSI_ID 2 | |
123 | -#define CONFIG_SYS_SCSI_MAX_LUN 1 | |
124 | -#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ | |
125 | - CONFIG_SYS_SCSI_MAX_LUN) | |
126 | - | |
127 | -#define CONFIG_SUPPORT_VFAT | |
128 | - | |
129 | -#endif /* _CONFIG_MVEBU_DB_88F3720_H */ |