mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01:00
ARM: DRA7xx: Add CPSW support to DRA7xx EVM
Adding support for CPSW Ethernet support found in DRA7xx EVM Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
This commit is contained in:
@@ -99,6 +99,8 @@ struct watchdog {
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __KERNEL_STRICT_NAMES */
|
||||
|
||||
#define BIT(x) (1 << (x))
|
||||
|
||||
#define WD_UNLOCK1 0xAAAA
|
||||
#define WD_UNLOCK2 0x5555
|
||||
|
||||
@@ -158,4 +160,8 @@ struct watchdog {
|
||||
#define PRM_RSTST (PRM_DEVICE_BASE + 0x4)
|
||||
#define PRM_RSTST_WARM_RESET_MASK 0x7FEA
|
||||
|
||||
/* DRA7XX CPSW Config space */
|
||||
#define CPSW_BASE 0x48484000
|
||||
#define CPSW_MDIO_BASE 0x48485000
|
||||
|
||||
#endif /* _CPU_H */
|
||||
|
||||
@@ -192,6 +192,27 @@ struct s32ktimer {
|
||||
#define OMAP5_ABB_LDOVBBMPU_MUX_CTRL_MASK (0x1 << 10)
|
||||
#define OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK (0x1f << 0)
|
||||
|
||||
/* IO Delay module defines */
|
||||
#define CFG_IO_DELAY_BASE 0x4844A000
|
||||
#define CFG_IO_DELAY_LOCK (CFG_IO_DELAY_BASE + 0x02C)
|
||||
|
||||
/* CPSW IO Delay registers*/
|
||||
#define CFG_RGMII0_TXCTL (CFG_IO_DELAY_BASE + 0x74C)
|
||||
#define CFG_RGMII0_TXD0 (CFG_IO_DELAY_BASE + 0x758)
|
||||
#define CFG_RGMII0_TXD1 (CFG_IO_DELAY_BASE + 0x764)
|
||||
#define CFG_RGMII0_TXD2 (CFG_IO_DELAY_BASE + 0x770)
|
||||
#define CFG_RGMII0_TXD3 (CFG_IO_DELAY_BASE + 0x77C)
|
||||
#define CFG_VIN2A_D13 (CFG_IO_DELAY_BASE + 0xA7C)
|
||||
#define CFG_VIN2A_D17 (CFG_IO_DELAY_BASE + 0xAAC)
|
||||
#define CFG_VIN2A_D16 (CFG_IO_DELAY_BASE + 0xAA0)
|
||||
#define CFG_VIN2A_D15 (CFG_IO_DELAY_BASE + 0xA94)
|
||||
#define CFG_VIN2A_D14 (CFG_IO_DELAY_BASE + 0xA88)
|
||||
|
||||
#define CFG_IO_DELAY_UNLOCK_KEY 0x0000AAAA
|
||||
#define CFG_IO_DELAY_LOCK_KEY 0x0000AAAB
|
||||
#define CFG_IO_DELAY_ACCESS_PATTERN 0x00029000
|
||||
#define CFG_IO_DELAY_LOCK_MASK 0x400
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
struct srcomp_params {
|
||||
s8 divide_factor;
|
||||
@@ -208,5 +229,10 @@ struct ctrl_ioregs {
|
||||
u32 ctrl_emif_sdram_config_ext;
|
||||
u32 ctrl_ddr_ctrl_ext_0;
|
||||
};
|
||||
|
||||
struct io_delay {
|
||||
u32 addr;
|
||||
u32 dly;
|
||||
};
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif
|
||||
|
||||
@@ -348,6 +348,10 @@ struct prcm_regs {
|
||||
|
||||
struct omap_sys_ctrl_regs {
|
||||
u32 control_status;
|
||||
u32 control_core_mac_id_0_lo;
|
||||
u32 control_core_mac_id_0_hi;
|
||||
u32 control_core_mac_id_1_lo;
|
||||
u32 control_core_mac_id_1_hi;
|
||||
u32 control_std_fuse_opp_vdd_mpu_2;
|
||||
u32 control_core_mmr_lock1;
|
||||
u32 control_core_mmr_lock2;
|
||||
|
||||
Reference in New Issue
Block a user