2 * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
4 * Copyright (C) 2006 Micronas GmbH
6 * SPDX-License-Identifier: GPL-2.0+
16 #ifdef CONFIG_VCT_PREMIUM
17 /* Global start address of all memory mapped registers */
18 #define REG_GLOBAL_START_ADDR 0xbf800000
19 #define TOP_BASE 0x000c8000
21 #include "vcth/reg_ebi.h"
22 #include "vcth/reg_dcgu.h"
23 #include "vcth/reg_wdt.h"
24 #include "vcth/reg_gpio.h"
25 #include "vcth/reg_fwsram.h"
26 #include "vcth/reg_scc.h"
27 #include "vcth/reg_usbh.h"
30 #ifdef CONFIG_VCT_PLATINUM
31 /* Global start address of all memory mapped registers */
32 #define REG_GLOBAL_START_ADDR 0xbf800000
33 #define TOP_BASE 0x000c8000
35 #include "vcth2/reg_ebi.h"
36 #include "vcth/reg_dcgu.h"
37 #include "vcth/reg_wdt.h"
38 #include "vcth/reg_gpio.h"
39 #include "vcth/reg_fwsram.h"
40 #include "vcth/reg_scc.h"
41 #include "vcth/reg_usbh.h"
44 #ifdef CONFIG_VCT_PLATINUMAVC
45 /* Global start address of all memory mapped registers */
46 #define REG_GLOBAL_START_ADDR 0xbdc00000
47 #define TOP_BASE 0x00050000
49 #include "vctv/reg_ebi.h"
50 #include "vctv/reg_dcgu.h"
51 #include "vctv/reg_wdt.h"
52 #include "vctv/reg_gpio.h"
61 #define PRID_COMP_LEGACY 0x000000
62 #define PRID_COMP_MIPS 0x010000
63 #define PRID_IMP_LX4280 0xc200
64 #define PRID_IMP_VGC 0x9000
69 int ebi_initialize(void);
70 int ebi_init_nor_flash(void);
71 int ebi_init_onenand(void);
72 int ebi_init_smc911x(void);
73 u32 smc911x_reg_read(u32 addr);
74 void smc911x_reg_write(u32 addr, u32 data);
75 int top_set_pin(int pin, int func);
76 void vct_pin_mux_initialize(void);
81 static inline void reg_write(u32 addr, u32 data)
83 __raw_writel(data, addr + REG_GLOBAL_START_ADDR);
86 static inline u32 reg_read(u32 addr)
88 return __raw_readl(addr + REG_GLOBAL_START_ADDR);