Skip to content

Commit 99089ae

Browse files
calvinjolinuxPrabhakar Kushwaha
authored andcommitted
armv8: fsl-lsch2: add pfe macros and update ccsr_scfg structure
SoC specific PFE macros are defined and structure ccsr_scfg is updated with members defined for PFE. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
1 parent 7b2f1c3 commit 99089ae

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,21 @@ struct ccsr_gur {
398398
#define SCFG_SNPCNFGCR_SATARDSNP 0x00800000
399399
#define SCFG_SNPCNFGCR_SATAWRSNP 0x00400000
400400

401+
/* RGMIIPCR bit definitions*/
402+
#define SCFG_RGMIIPCR_EN_AUTO (0x00000008)
403+
#define SCFG_RGMIIPCR_SETSP_1000M (0x00000004)
404+
#define SCFG_RGMIIPCR_SETSP_100M (0x00000000)
405+
#define SCFG_RGMIIPCR_SETSP_10M (0x00000002)
406+
#define SCFG_RGMIIPCR_SETFD (0x00000001)
407+
408+
/*PFEASBCR bit definitions */
409+
#define SCFG_PFEASBCR_ARCACHE0 (0x80000000)
410+
#define SCFG_PFEASBCR_AWCACHE0 (0x40000000)
411+
#define SCFG_PFEASBCR_ARCACHE1 (0x20000000)
412+
#define SCFG_PFEASBCR_AWCACHE1 (0x10000000)
413+
#define SCFG_PFEASBCR_ARSNP (0x08000000)
414+
#define SCFG_PFEASBCR_AWSNP (0x04000000)
415+
401416
/* Supplemental Configuration Unit */
402417
struct ccsr_scfg {
403418
u8 res_000[0x100-0x000];
@@ -415,7 +430,12 @@ struct ccsr_scfg {
415430
u8 res_140[0x158-0x140];
416431
u32 altcbar;
417432
u32 qspi_cfg;
418-
u8 res_160[0x180-0x160];
433+
u8 res_160[0x164-0x160];
434+
u32 wr_qos1;
435+
u32 wr_qos2;
436+
u32 rd_qos1;
437+
u32 rd_qos2;
438+
u8 res_174[0x180-0x174];
419439
u32 dmamcr;
420440
u8 res_184[0x188-0x184];
421441
u32 gic_align;
@@ -446,7 +466,21 @@ struct ccsr_scfg {
446466
u32 usb_refclk_selcr1;
447467
u32 usb_refclk_selcr2;
448468
u32 usb_refclk_selcr3;
449-
u8 res_424[0x600-0x424];
469+
u8 res_424[0x434-0x424];
470+
u32 rgmiipcr;
471+
u32 res_438;
472+
u32 rgmiipsr;
473+
u32 pfepfcssr1;
474+
u32 pfeintencr1;
475+
u32 pfepfcssr2;
476+
u32 pfeintencr2;
477+
u32 pfeerrcr;
478+
u32 pfeeerrintencr;
479+
u32 pfeasbcr;
480+
u32 pfebsbcr;
481+
u8 res_460[0x484-0x460];
482+
u32 mdioselcr;
483+
u8 res_468[0x600-0x488];
450484
u32 scratchrw[4];
451485
u8 res_610[0x680-0x610];
452486
u32 corebcr;

0 commit comments

Comments
 (0)