Revision | bb50533839e32f1fe97c0c609ddbca3ef8e7ad1f (tree) |
---|---|
Time | 2019-08-29 22:58:04 |
Author | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
ms7619se fix
@@ -121,6 +121,8 @@ config SANDBOX | ||
121 | 121 | config SH |
122 | 122 | bool "SuperH architecture" |
123 | 123 | select HAVE_PRIVATE_LIBGCC |
124 | + select SUPPORT_OF_CONTROL | |
125 | + select CLK | |
124 | 126 | |
125 | 127 | config X86 |
126 | 128 | bool "x86 architecture" |
@@ -18,6 +18,10 @@ config CPU_SH4A | ||
18 | 18 | bool |
19 | 19 | select CPU_SH4 |
20 | 20 | |
21 | +config CPU_SH7619 | |
22 | + bool | |
23 | + select CPU_SH2 | |
24 | + | |
21 | 25 | config SH_32BIT |
22 | 26 | bool "32bit mode" |
23 | 27 | depends on CPU_SH4A |
@@ -59,6 +63,10 @@ config TARGET_ESPT | ||
59 | 63 | bool "Data Technology ESPT-GIGA board" |
60 | 64 | select CPU_SH4 |
61 | 65 | |
66 | +config TARGET_MS7619SE | |
67 | + bool "SolutionEngine 7619" | |
68 | + select CPU_SH7619 | |
69 | + | |
62 | 70 | config TARGET_MS7722SE |
63 | 71 | bool "SolutionEngine 7722" |
64 | 72 | select CPU_SH4 |
@@ -147,6 +155,7 @@ source "board/renesas/sh7753evb/Kconfig" | ||
147 | 155 | source "board/renesas/sh7757lcr/Kconfig" |
148 | 156 | source "board/renesas/sh7763rdp/Kconfig" |
149 | 157 | source "board/renesas/sh7785lcr/Kconfig" |
158 | +source "board/renesas/ms7619se/Kconfig" | |
150 | 159 | source "board/shmin/Kconfig" |
151 | 160 | |
152 | 161 | endmenu |
@@ -62,7 +62,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) | ||
62 | 62 | return 0; |
63 | 63 | } |
64 | 64 | |
65 | -#if defined(CONFIG_CPU_SH7619) | |
65 | +#if defined(CONFIG_CPU_SH7619) && defined(CONFIG_SH_ETHER) | |
66 | 66 | static void phy_init(void) |
67 | 67 | { |
68 | 68 | int i; |
@@ -75,12 +75,10 @@ static void phy_init(void) | ||
75 | 75 | udelay(200000); |
76 | 76 | } |
77 | 77 | #endif |
78 | + | |
78 | 79 | int cpu_eth_init(bd_t *bis) |
79 | 80 | { |
80 | -#ifdef CONFIG_CPU_SH7619 | |
81 | +#if defined(CONFIG_CPU_SH7619) && defined(CONFIG_SH_ETHER) | |
81 | 82 | phy_init(); |
82 | 83 | #endif |
83 | -#ifdef CONFIG_SH_ETHER | |
84 | - sh_eth_initialize(bis); | |
85 | -#endif | |
86 | 84 | } |
@@ -25,6 +25,7 @@ ENTRY(_start) | ||
25 | 25 | |
26 | 26 | SECTIONS |
27 | 27 | { |
28 | + . = CONFIG_SYS_TEXT_BASE; | |
28 | 29 | reloc_dst = .; |
29 | 30 | |
30 | 31 | PROVIDE (_ftext = .); |
@@ -85,4 +86,5 @@ SECTIONS | ||
85 | 86 | } >ram |
86 | 87 | PROVIDE (bss_end = .); |
87 | 88 | PROVIDE (__bss_end = .); |
89 | + PROVIDE (_end = .); | |
88 | 90 | } |
@@ -0,0 +1,16 @@ | ||
1 | +# | |
2 | +# SPDX-License-Identifier: GPL-2.0+ | |
3 | +# | |
4 | + | |
5 | +dtb-$(CONFIG_TARGET_MS7619SE) += ms7619se.dtb | |
6 | + | |
7 | +targets += $(dtb-y) | |
8 | + | |
9 | +# Add any required device tree compiler flags here | |
10 | +DTC_FLAGS += | |
11 | + | |
12 | +PHONY += dtbs | |
13 | +dtbs: $(addprefix $(obj)/, $(dtb-y)) | |
14 | + @: | |
15 | + | |
16 | +clean-files := *.dtb |
@@ -0,0 +1,91 @@ | ||
1 | + /dts-v1/; | |
2 | + / { | |
3 | + compatible = "renesas,se7619"; | |
4 | + #address-cells = <1>; | |
5 | + #size-cells = <1>; | |
6 | + interrupt-parent = <&shintc>; | |
7 | + | |
8 | + chosen { | |
9 | + bootargs = "console=ttySC2,38400"; | |
10 | + stdout-path = &sci0; | |
11 | + }; | |
12 | + aliases { | |
13 | + serial0 = &sci0; | |
14 | + serial1 = &sci1; | |
15 | + serial2 = &sci2; | |
16 | + }; | |
17 | + | |
18 | + oclk: oscillator { | |
19 | + #clock-cells = <0>; | |
20 | + compatible = "fixed-clock"; | |
21 | + clock-frequency = <31250000>; | |
22 | + clock-output-names = "osc"; | |
23 | + }; | |
24 | + pllclk: pllclk { | |
25 | + compatible = "renesas,sh7619-pll-clock"; | |
26 | + clocks = <&oclk>; | |
27 | + #clock-cells = <0>; | |
28 | + reg = <0xf815ff80 2>, <0xf815ff84 4>; | |
29 | + }; | |
30 | + iclk: iclk { | |
31 | + compatible = "fixed-factor-clock"; | |
32 | + clocks = <&pllclk>; | |
33 | + #clock-cells = <0>; | |
34 | + clock-div = <1>; | |
35 | + clock-mult = <1>; | |
36 | + }; | |
37 | + pclk: pclk { | |
38 | + compatible = "renesas,sh7619-div-clock"; | |
39 | + clocks = <&pllclk>; | |
40 | + #clock-cells = <0>; | |
41 | + reg = <0xf815ff80 2>; | |
42 | + }; | |
43 | + memory@0c000000 { | |
44 | + device_type = "memory"; | |
45 | + reg = <0x0c000000 0x2000000>; | |
46 | + }; | |
47 | + | |
48 | + cpus { | |
49 | + cpu@0 { | |
50 | + compatible = "renesas,superh"; | |
51 | + clock-frequency = <125000000>; | |
52 | + }; | |
53 | + }; | |
54 | + | |
55 | + shintc: interrupt-controller@0 { | |
56 | + compatible = "renesas,sh-intc"; | |
57 | + #interrupt-cells = <2>; | |
58 | + interrupt-controller; | |
59 | + }; | |
60 | + | |
61 | + cmt0: timer@f84a0070 { | |
62 | + compatible = "renesas,cmt-16"; | |
63 | + reg = <0xf84a0070 16>; | |
64 | + interrupts = <86 0>, <87 0>; | |
65 | + clocks = <&pclk>; | |
66 | + clock-names = "fck"; | |
67 | + renesas,channels-mask = <0x03>; | |
68 | + }; | |
69 | + | |
70 | + sci0: serial@f8400000 { | |
71 | + compatible = "renesas,scif"; | |
72 | + reg = <0xf8400000 0x100>; | |
73 | + interrupts = <88 0>; | |
74 | + clocks = <&pclk>; | |
75 | + clock-names = "sci_ick"; | |
76 | + }; | |
77 | + sci1: serial@f8410000 { | |
78 | + compatible = "renesas,scif"; | |
79 | + reg = <0xf8410000 0x100>; | |
80 | + interrupts = <92 0>; | |
81 | + clocks = <&pclk>; | |
82 | + clock-names = "sci_ick"; | |
83 | + }; | |
84 | + sci2: serial@f8420000 { | |
85 | + compatible = "renesas,scif"; | |
86 | + reg = <0xf8420000 0x100>; | |
87 | + interrupts = <96 0>; | |
88 | + clocks = <&pclk>; | |
89 | + clock-names = "sci_ick"; | |
90 | + }; | |
91 | + }; | |
\ No newline at end of file |
@@ -0,0 +1 @@ | ||
1 | +#include <asm-generic/gpio.h> |
@@ -13,9 +13,9 @@ | ||
13 | 13 | .global _start |
14 | 14 | _start: |
15 | 15 | #ifdef CONFIG_CPU_SH2 |
16 | - .long 0x00000010 /* Ppower ON reset PC*/ | |
16 | + .long 0xA0000010 /* Ppower ON reset PC*/ | |
17 | 17 | .long 0x00000000 |
18 | - .long 0x00000010 /* Manual reset PC */ | |
18 | + .long 0xA0000010 /* Manual reset PC */ | |
19 | 19 | .long 0x00000000 |
20 | 20 | #endif |
21 | 21 | mov.l ._lowlevel_init, r0 |
@@ -35,19 +35,35 @@ _start: | ||
35 | 35 | cmp/hs r6, r4 |
36 | 36 | bf 2b |
37 | 37 | |
38 | + mov.l ._end, r4 | |
39 | + mov.l @(4, r5), r6 | |
40 | + add r4, r6 | |
41 | + | |
42 | +3: mov.l @r5+, r1 | |
43 | + mov.l r1, @r4 | |
44 | + add #4, r4 | |
45 | + cmp/hs r6, r4 | |
46 | + bf 3b | |
47 | + | |
38 | 48 | mov.l ._bss_start, r4 |
39 | 49 | mov.l ._bss_end, r5 |
40 | 50 | mov #0, r1 |
41 | 51 | |
42 | -3: mov.l r1, @r4 /* bss clear */ | |
52 | +4: mov.l r1, @r4 /* bss clear */ | |
43 | 53 | add #4, r4 |
44 | 54 | cmp/hs r5, r4 |
45 | - bf 3b | |
55 | + bf 4b | |
46 | 56 | |
47 | - mov.l ._gd_init, r13 /* global data */ | |
48 | - mov.l ._stack_init, r15 /* stack */ | |
57 | + mov.l .board_init_f_alloc_reserve ,r0 | |
58 | + jsr @r0 | |
59 | + mov.l .base, r4 | |
60 | + | |
61 | + mov r0, r15 | |
62 | + mov.l .board_init_f_init_reserve ,r0 | |
63 | + jsr @r0 | |
64 | + mov r15, r4 | |
49 | 65 | |
50 | - mov.l ._sh_generic_init, r0 | |
66 | + mov.l .board_init_f, r0 | |
51 | 67 | jsr @r0 |
52 | 68 | mov #0, r4 |
53 | 69 |
@@ -59,8 +75,10 @@ loop: | ||
59 | 75 | ._lowlevel_init: .long (lowlevel_init - (100b + 4)) |
60 | 76 | ._reloc_dst: .long _start |
61 | 77 | ._reloc_dst_end: .long reloc_dst_end |
78 | +._end: .long _end | |
62 | 79 | ._bss_start: .long bss_start |
63 | 80 | ._bss_end: .long bss_end |
64 | -._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE) | |
65 | -._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) | |
66 | -._sh_generic_init: .long board_init_f | |
81 | +.base: .long _start - 0x1000 | |
82 | +.board_init_f: .long board_init_f | |
83 | +.board_init_f_alloc_reserve: .long board_init_f_alloc_reserve | |
84 | +.board_init_f_init_reserve: .long board_init_f_init_reserve |
@@ -58,10 +58,7 @@ static unsigned long get_usec (void) | ||
58 | 58 | else |
59 | 59 | cmcnt = (CMT_TIMER_RESET - cmcnt) + data; |
60 | 60 | |
61 | - if ((cmt0_timer + cmcnt) > CMT_MAX_COUNTER) | |
62 | - cmt0_timer = ((cmt0_timer + cmcnt) - CMT_MAX_COUNTER); | |
63 | - else | |
64 | - cmt0_timer += cmcnt; | |
61 | + cmt0_timer += cmcnt; | |
65 | 62 | |
66 | 63 | cmcnt = data; |
67 | 64 | return cmt0_timer; |
@@ -0,0 +1,12 @@ | ||
1 | +if TARGET_MS7619SE | |
2 | + | |
3 | +config SYS_BOARD | |
4 | + default "ms7619se" | |
5 | + | |
6 | +config SYS_VENDOR | |
7 | + default "renesas" | |
8 | + | |
9 | +config SYS_CONFIG_NAME | |
10 | + default "ms7619se" | |
11 | + | |
12 | +endif |
@@ -7,4 +7,4 @@ | ||
7 | 7 | # |
8 | 8 | |
9 | 9 | obj-y := ms7619se.o |
10 | -obj-y += lowlevel_init.o | |
10 | +extra-y += lowlevel_init.o |
@@ -110,14 +110,6 @@ int board_init(void) | ||
110 | 110 | return 0; |
111 | 111 | } |
112 | 112 | |
113 | -int dram_init(void) | |
114 | -{ | |
115 | - gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; | |
116 | - gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; | |
117 | - printf("DRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024)); | |
118 | - return 0; | |
119 | -} | |
120 | - | |
121 | 113 | void led_set_state(unsigned short value) |
122 | 114 | { |
123 | 115 | } |
@@ -4,79 +4,8 @@ | ||
4 | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
5 | 5 | ######################################################################### |
6 | 6 | |
7 | -<<<<<<< HEAD | |
8 | -# Set shell to bash if possible, otherwise fall back to sh | |
9 | -SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ | |
10 | - else if [ -x /bin/bash ]; then echo /bin/bash; \ | |
11 | - else echo sh; fi; fi) | |
12 | - | |
13 | -export SHELL | |
14 | - | |
15 | -ifeq ($(CURDIR),$(SRCTREE)) | |
16 | -dir := | |
17 | -else | |
18 | -dir := $(subst $(SRCTREE)/,,$(CURDIR)) | |
19 | -endif | |
20 | -ifeq ($(CPU),sh2a) | |
21 | -CONFIG_STANDALONE_LOAD_ADDR += -m2a-nofpu | |
22 | -endif | |
23 | - | |
24 | -ifneq ($(OBJTREE),$(SRCTREE)) | |
25 | -# Create object files for SPL in a separate directory | |
26 | -ifeq ($(CONFIG_SPL_BUILD),y) | |
27 | -ifeq ($(CONFIG_TPL_BUILD),y) | |
28 | -obj := $(if $(dir),$(TPLTREE)/$(dir)/,$(TPLTREE)/) | |
29 | -else | |
30 | -obj := $(if $(dir),$(SPLTREE)/$(dir)/,$(SPLTREE)/) | |
31 | -endif | |
32 | -else | |
33 | -obj := $(if $(dir),$(OBJTREE)/$(dir)/,$(OBJTREE)/) | |
34 | -endif | |
35 | -src := $(if $(dir),$(SRCTREE)/$(dir)/,$(SRCTREE)/) | |
36 | - | |
37 | -$(shell mkdir -p $(obj)) | |
38 | -else | |
39 | -# Create object files for SPL in a separate directory | |
40 | -ifeq ($(CONFIG_SPL_BUILD),y) | |
41 | -ifeq ($(CONFIG_TPL_BUILD),y) | |
42 | -obj := $(if $(dir),$(TPLTREE)/$(dir)/,$(TPLTREE)/) | |
43 | -else | |
44 | -obj := $(if $(dir),$(SPLTREE)/$(dir)/,$(SPLTREE)/) | |
45 | - | |
46 | -endif | |
47 | -$(shell mkdir -p $(obj)) | |
48 | -else | |
49 | -obj := | |
50 | -endif | |
51 | -src := | |
52 | -endif | |
53 | - | |
54 | -# clean the slate ... | |
55 | -PLATFORM_RELFLAGS = | |
56 | -PLATFORM_CPPFLAGS = | |
57 | -PLATFORM_LDFLAGS = | |
58 | - | |
59 | -######################################################################### | |
60 | - | |
61 | -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ | |
62 | - $(HOSTCPPFLAGS) | |
63 | -HOSTSTRIP = strip | |
64 | - | |
65 | -# | |
66 | -# Mac OS X / Darwin's C preprocessor is Apple specific. It | |
67 | -# generates numerous errors and warnings. We want to bypass it | |
68 | -# and use GNU C's cpp. To do this we pass the -traditional-cpp | |
69 | -# option to the compiler. Note that the -traditional-cpp flag | |
70 | -# DOES NOT have the same semantics as GNU C's flag, all it does | |
71 | -# is invoke the GNU preprocessor in stock ANSI/ISO C fashion. | |
72 | -# | |
73 | -# Apple's linker is similar, thanks to the new 2 stage linking | |
74 | -# multiple symbol definitions are treated as errors, hence the | |
75 | -# -multiply_defined suppress option to turn off this error. | |
76 | -======= | |
77 | 7 | # This file is included from ./Makefile and spl/Makefile. |
78 | 8 | # Clean the state to avoid the same flags added twice. |
79 | ->>>>>>> v2019.01 | |
80 | 9 | # |
81 | 10 | # (Tegra needs different flags for SPL. |
82 | 11 | # That's the reason why this file must be included from spl/Makefile too. |
@@ -376,7 +376,7 @@ static void sh_eth_mac_regs_config(struct sh_eth_dev *eth, unsigned char *mac) | ||
376 | 376 | |
377 | 377 | /* Configure e-dmac registers */ |
378 | 378 | #if defined(CONFIG_CPU_SH7619) |
379 | - sh_eth_write(port_info, (sh_eth_read(port)info, EDMR) & ~EMDR_DESC_R) | | |
379 | + sh_eth_write(port_info, (sh_eth_read(port_info, EDMR) & ~EMDR_DESC_R) | | |
380 | 380 | EMDR_DESC, EDMR); |
381 | 381 | #else |
382 | 382 | sh_eth_write(port_info, (sh_eth_read(port_info, EDMR) & ~EMDR_DESC_R) | |
@@ -59,7 +59,7 @@ struct tx_desc_s { | ||
59 | 59 | u32 td1; |
60 | 60 | u32 td2; /* Buffer start */ |
61 | 61 | u8 padding[TX_DESC_PADDING]; /* aligned cache line size */ |
62 | -} __attribute__((packed)); | |
62 | +}; | |
63 | 63 | |
64 | 64 | /* There is no limitation in the number of rx descriptors */ |
65 | 65 | #define NUM_RX_DESC 8 |
@@ -76,7 +76,7 @@ struct rx_desc_s { | ||
76 | 76 | volatile u32 rd1; |
77 | 77 | u32 rd2; /* Buffer start */ |
78 | 78 | u8 padding[TX_DESC_PADDING]; /* aligned cache line size */ |
79 | -} __attribute__((packed)); | |
79 | +}; | |
80 | 80 | |
81 | 81 | struct sh_eth_info { |
82 | 82 | struct tx_desc_s *tx_desc_alloc; |
@@ -228,6 +228,60 @@ static const u16 sh_eth_offset_gigabit[SH_ETH_MAX_REGISTER_OFFSET] = { | ||
228 | 228 | [RMII_MII] = 0x0790, |
229 | 229 | }; |
230 | 230 | |
231 | +static const u16 sh_eth_offset_rz[SH_ETH_MAX_REGISTER_OFFSET] = { | |
232 | + [EDSR] = 0x0000, | |
233 | + [EDMR] = 0x0400, | |
234 | + [EDTRR] = 0x0408, | |
235 | + [EDRRR] = 0x0410, | |
236 | + [EESR] = 0x0428, | |
237 | + [EESIPR] = 0x0430, | |
238 | + [TDLAR] = 0x0010, | |
239 | + [TDFAR] = 0x0014, | |
240 | + [TDFXR] = 0x0018, | |
241 | + [TDFFR] = 0x001c, | |
242 | + [RDLAR] = 0x0030, | |
243 | + [RDFAR] = 0x0034, | |
244 | + [RDFXR] = 0x0038, | |
245 | + [RDFFR] = 0x003c, | |
246 | + [TRSCER] = 0x0438, | |
247 | + [RMFCR] = 0x0440, | |
248 | + [TFTR] = 0x0448, | |
249 | + [FDR] = 0x0450, | |
250 | + [RMCR] = 0x0458, | |
251 | + [RPADIR] = 0x0460, | |
252 | + [FCFTR] = 0x0468, | |
253 | + [CSMR] = 0x04E4, | |
254 | + | |
255 | + [ECMR] = 0x0500, | |
256 | + [ECSR] = 0x0510, | |
257 | + [ECSIPR] = 0x0518, | |
258 | + [PIR] = 0x0520, | |
259 | + [PSR] = 0x0528, | |
260 | + [PIPR] = 0x052c, | |
261 | + [RFLR] = 0x0508, | |
262 | + [APR] = 0x0554, | |
263 | + [MPR] = 0x0558, | |
264 | + [PFTCR] = 0x055c, | |
265 | + [PFRCR] = 0x0560, | |
266 | + [TPAUSER] = 0x0564, | |
267 | + [GECMR] = 0x05b0, | |
268 | + [BCULR] = 0x05b4, | |
269 | + [MAHR] = 0x05c0, | |
270 | + [MALR] = 0x05c8, | |
271 | + [TROCR] = 0x0700, | |
272 | + [CDCR] = 0x0708, | |
273 | + [LCCR] = 0x0710, | |
274 | + [CEFCR] = 0x0740, | |
275 | + [FRECR] = 0x0748, | |
276 | + [TSFRCR] = 0x0750, | |
277 | + [TLFRCR] = 0x0758, | |
278 | + [RFCR] = 0x0760, | |
279 | + [CERCR] = 0x0768, | |
280 | + [CEECR] = 0x0770, | |
281 | + [MAFCR] = 0x0778, | |
282 | + [RMII_MII] = 0x0790, | |
283 | +}; | |
284 | + | |
231 | 285 | static const u16 sh_eth_offset_fast_sh4[SH_ETH_MAX_REGISTER_OFFSET] = { |
232 | 286 | [ECMR] = 0x0100, |
233 | 287 | [RFLR] = 0x0108, |
@@ -281,50 +335,6 @@ static const u16 sh_eth_offset_fast_sh4[SH_ETH_MAX_REGISTER_OFFSET] = { | ||
281 | 335 | [TDFAR] = 0x00d8, |
282 | 336 | }; |
283 | 337 | |
284 | -static const u16 sh_eth_offset_7619[SH_ETH_MAX_REGISTER_OFFSET] = { | |
285 | - [ECMR] = 0x0160, | |
286 | - [RFLR] = 0x0178, | |
287 | - [ECSR] = 0x0164, | |
288 | - [ECSIPR] = 0x0168, | |
289 | - [PIR] = 0x016C, | |
290 | - [PSR] = 0x017C, | |
291 | - [IPGR] = 0x01B4, | |
292 | - [APR] = 0x01B8, | |
293 | - [MPR] = 0x01BC, | |
294 | - [TPAUSER] = 0x01C4, | |
295 | - [MAHR] = 0x0170, | |
296 | - [MALR] = 0x0174, | |
297 | - [TROCR] = 0x01B0, | |
298 | - [CDCR] = 0x01B4, | |
299 | - [LCCR] = 0x01B8, | |
300 | - [CNDCR] = 0x01BC, | |
301 | - [CEFCR] = 0x0194, | |
302 | - [FRECR] = 0x0198, | |
303 | - [TSFRCR] = 0x019C, | |
304 | - [TLFRCR] = 0x01A0, | |
305 | - [RFCR] = 0x01A4, | |
306 | - [MAFCR] = 0x01A8, | |
307 | - | |
308 | - [EDMR] = 0x0000, | |
309 | - [EDTRR] = 0x0004, | |
310 | - [EDRRR] = 0x0008, | |
311 | - [TDLAR] = 0x000C, | |
312 | - [RDLAR] = 0x0010, | |
313 | - [EESR] = 0x0014, | |
314 | - [EESIPR] = 0x0018, | |
315 | - [TRSCER] = 0x001C, | |
316 | - [RMFCR] = 0x0020, | |
317 | - [TFTR] = 0x0024, | |
318 | - [FDR] = 0x0028, | |
319 | - [RMCR] = 0x002C, | |
320 | - [FCFTR] = 0x0034, | |
321 | - [TRIMD] = 0x003C, | |
322 | - [RBWAR] = 0x0040, | |
323 | - [RDFAR] = 0x0044, | |
324 | - [TBRAR] = 0x004C, | |
325 | - [TDFAR] = 0x0050, | |
326 | -}; | |
327 | - | |
328 | 338 | /* Register Address */ |
329 | 339 | #if defined(CONFIG_CPU_SH7763) || defined(CONFIG_CPU_SH7734) |
330 | 340 | #define SH_ETH_TYPE_GETHER |
@@ -339,9 +349,6 @@ static const u16 sh_eth_offset_7619[SH_ETH_MAX_REGISTER_OFFSET] = { | ||
339 | 349 | #define SH_ETH_TYPE_ETHER |
340 | 350 | #define BASE_IO_ADDR 0xfef00000 |
341 | 351 | #endif |
342 | -#elif defined(CONFIG_CPU_SH7724) | |
343 | -#define SH_ETH_TYPE_ETHER | |
344 | -#define BASE_IO_ADDR 0xA4600000 | |
345 | 352 | #elif defined(CONFIG_R8A7740) |
346 | 353 | #define SH_ETH_TYPE_GETHER |
347 | 354 | #define BASE_IO_ADDR 0xE9A00000 |
@@ -351,9 +358,6 @@ static const u16 sh_eth_offset_7619[SH_ETH_MAX_REGISTER_OFFSET] = { | ||
351 | 358 | #elif defined(CONFIG_R7S72100) |
352 | 359 | #define SH_ETH_TYPE_RZ |
353 | 360 | #define BASE_IO_ADDR 0xE8203000 |
354 | -#elif defined(CONFIG_CPU_SH7619) | |
355 | -#define SH_ETH_TYPE_ETHER | |
356 | -#define BASE_IO_ADDR 0xFB000000 | |
357 | 361 | #endif |
358 | 362 | |
359 | 363 | /* |
@@ -643,11 +647,7 @@ enum RPADIR_BIT { | ||
643 | 647 | |
644 | 648 | /* FDR */ |
645 | 649 | enum FIFO_SIZE_BIT { |
646 | -#if defined(CONFIG_CPU_SH7619) | |
647 | - FIFO_SIZE_T = 0x00000100, FIFO_SIZE_R = 0x00000001, | |
648 | -#else | |
649 | 650 | FIFO_SIZE_T = 0x00000700, FIFO_SIZE_R = 0x00000007, |
650 | -#endif | |
651 | 651 | }; |
652 | 652 | |
653 | 653 | static inline unsigned long sh_eth_reg_addr(struct sh_eth_info *port, |
@@ -655,10 +655,10 @@ static inline unsigned long sh_eth_reg_addr(struct sh_eth_info *port, | ||
655 | 655 | { |
656 | 656 | #if defined(SH_ETH_TYPE_GETHER) || defined(SH_ETH_TYPE_RZ) |
657 | 657 | const u16 *reg_offset = sh_eth_offset_gigabit; |
658 | -#elif defined(CONFIG_CPU_SH7619) | |
659 | - const u16 *reg_offset = sh_eth_offset_7619; | |
660 | 658 | #elif defined(SH_ETH_TYPE_ETHER) |
661 | 659 | const u16 *reg_offset = sh_eth_offset_fast_sh4; |
660 | +#elif defined(SH_ETH_TYPE_RZ) | |
661 | + const u16 *reg_offset = sh_eth_offset_rz; | |
662 | 662 | #else |
663 | 663 | #error |
664 | 664 | #endif |
@@ -668,19 +668,11 @@ static inline unsigned long sh_eth_reg_addr(struct sh_eth_info *port, | ||
668 | 668 | static inline void sh_eth_write(struct sh_eth_info *port, unsigned long data, |
669 | 669 | int enum_index) |
670 | 670 | { |
671 | -<<<<<<< HEAD | |
672 | - __raw_writel(data, sh_eth_reg_addr(eth, enum_index)); | |
673 | -======= | |
674 | 671 | outl(data, sh_eth_reg_addr(port, enum_index)); |
675 | ->>>>>>> v2019.01 | |
676 | 672 | } |
677 | 673 | |
678 | 674 | static inline unsigned long sh_eth_read(struct sh_eth_info *port, |
679 | 675 | int enum_index) |
680 | 676 | { |
681 | -<<<<<<< HEAD | |
682 | - return __raw_readl(sh_eth_reg_addr(eth, enum_index)); | |
683 | -======= | |
684 | 677 | return inl(sh_eth_reg_addr(port, enum_index)); |
685 | ->>>>>>> v2019.01 | |
686 | 678 | } |
@@ -1,5 +1,5 @@ | ||
1 | 1 | /* |
2 | - * Configuation settings for the Renesas Technology MS7206SE01 | |
2 | + * Configuation settings for the Renesas Technology MS7619SE | |
3 | 3 | * |
4 | 4 | * Copyright (C) 2013 Yoshinori Sato <ysato@users.sourceforge.jp> |
5 | 5 | * |
@@ -27,20 +27,6 @@ | ||
27 | 27 | |
28 | 28 | /*#define DEBUG*/ |
29 | 29 | #define CONFIG_SH 1 |
30 | -#define CONFIG_SH2 1 | |
31 | -#define CONFIG_CPU_SH7619 1 | |
32 | -#define CONFIG_MS7619SE 1 | |
33 | - | |
34 | -#define CONFIG_CMD_FLASH | |
35 | -#define CONFIG_CMD_SAVEENV | |
36 | -#define CONFIG_CMD_SDRAM | |
37 | -#define CONFIG_CMD_MEMORY | |
38 | -#define CONFIG_CMD_CACHE | |
39 | -#define CONFIG_CMD_LOADS | |
40 | -#define CONFIG_CMD_LOADB | |
41 | -#define CONFIG_CMD_NET | |
42 | -#define CONFIG_CMD_MEMTEST | |
43 | - | |
44 | 30 | #define CONFIG_BAUDRATE 38400 |
45 | 31 | #define CONFIG_BOOTARGS "console=ttySC2,38400" |
46 | 32 | #define CONFIG_LOADADDR 0x0C800000 |
@@ -49,14 +35,13 @@ | ||
49 | 35 | #undef CONFIG_SHOW_BOOT_PROGRESS |
50 | 36 | |
51 | 37 | #define CONFIG_BOARD_LATE_INIT |
38 | +#define CONFIG_LMB | |
52 | 39 | |
53 | 40 | /* MEMORY */ |
54 | 41 | #define MS7619SE_SDRAM_BASE 0x0C000000 |
55 | 42 | #define MS7619SE_FLASH_BASE_1 0xA0000000 /* Non cache */ |
56 | 43 | #define MS7619SE_FLASH_BANK_SIZE (16 * 1024 * 1024) |
57 | 44 | |
58 | -#define CONFIG_SYS_TEXT_BASE 0x0C7C0000 | |
59 | -#define CONFIG_SYS_LONGHELP /* undef to save memory */ | |
60 | 45 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ |
61 | 46 | #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ |
62 | 47 | #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ |
@@ -83,7 +68,6 @@ | ||
83 | 68 | #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) |
84 | 69 | |
85 | 70 | /* FLASH */ |
86 | -#define CONFIG_FLASH_CFI_DRIVER | |
87 | 71 | #define CONFIG_SYS_FLASH_CFI |
88 | 72 | #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT |
89 | 73 | #undef CONFIG_SYS_FLASH_QUIET_TEST |
@@ -102,11 +86,11 @@ | ||
102 | 86 | |
103 | 87 | /* Board Clock */ |
104 | 88 | #define CONFIG_SYS_CLK_FREQ 31250000 |
105 | -#define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ | |
106 | 89 | #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ |
107 | 90 | #define CMT_CLK_DIVIDER 32 /* 8 (default), 32, 128 or 512 */ |
108 | 91 | #define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) |
109 | 92 | |
93 | +#if 0 | |
110 | 94 | #define CONFIG_SH_ETHER 1 |
111 | 95 | #define CONFIG_SH_ETHER_USE_PORT 0 |
112 | 96 | #define CONFIG_SH_ETHER_PHY_ADDR 1 |
@@ -116,6 +100,5 @@ | ||
116 | 100 | #define CONFIG_BITBANGMII |
117 | 101 | #define CONFIG_BITBANGMII_MULTI |
118 | 102 | #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII |
119 | -#define CONFIG_PHY_BROKEN_ERCAP | |
120 | - | |
103 | +#endif | |
121 | 104 | #endif /* __MS7619SE_H */ |