arm: dra762: Add support for device package identification
DRA762 comes in two packages: - ABZ: Pin compatible package with DRA742 with DDR@1333MHz - ACD: High performance(OPP_PLUS) package with new IPs Both the above packages uses the same IDCODE hence needs to differentiate using package information in DIE_ID_2. Add support for the same. Also update clock, ddr, emif information. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
@@ -66,6 +66,9 @@
|
||||
#define DRA722_CONTROL_ID_CODE_ES2_0 0x1B9BC02F
|
||||
#define DRA722_CONTROL_ID_CODE_ES2_1 0x2B9BC02F
|
||||
|
||||
#define DRA762_ABZ_PACKAGE 0x2
|
||||
#define DRA762_ACD_PACKAGE 0x3
|
||||
|
||||
/* UART */
|
||||
#define UART1_BASE (OMAP54XX_L4_PER_BASE + 0x6a000)
|
||||
#define UART2_BASE (OMAP54XX_L4_PER_BASE + 0x6c000)
|
||||
|
||||
@@ -62,6 +62,7 @@ u32 omap_sdram_size(void);
|
||||
u32 cortex_rev(void);
|
||||
void save_omap_boot_params(void);
|
||||
void init_omap_revision(void);
|
||||
void init_package_revision(void);
|
||||
void do_io_settings(void);
|
||||
void sri2c_init(void);
|
||||
int omap_vc_bypass_send_value(u8 sa, u8 reg_addr, u8 reg_data);
|
||||
|
||||
@@ -743,6 +743,18 @@ static inline u8 is_dra76x(void)
|
||||
extern u32 *const omap_si_rev;
|
||||
return (*omap_si_rev & 0xFFF00000) == DRA76X;
|
||||
}
|
||||
|
||||
static inline u8 is_dra76x_abz(void)
|
||||
{
|
||||
extern u32 *const omap_si_rev;
|
||||
return (*omap_si_rev & 0xF) == 2;
|
||||
}
|
||||
|
||||
static inline u8 is_dra76x_acd(void)
|
||||
{
|
||||
extern u32 *const omap_si_rev;
|
||||
return (*omap_si_rev & 0xF) == 3;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -778,6 +790,8 @@ static inline u8 is_dra76x(void)
|
||||
#define DRA722_ES2_0 0x07220200
|
||||
#define DRA722_ES2_1 0x07220210
|
||||
|
||||
#define DRA762_ABZ_ES1_0 0x07620102
|
||||
#define DRA762_ACD_ES1_0 0x07620103
|
||||
/*
|
||||
* silicon device type
|
||||
* Moving to common from cpu.h, since it is shared by various omap devices
|
||||
|
||||
Reference in New Issue
Block a user