mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 03:53:31 +00:00
4b7f29ff14
Add npcm8xx A2 cpu version check and add 4G RAM support Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
141 lines
3.3 KiB
C
141 lines
3.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* System Global Control Register definitions
|
|
* Copyright (c) 2022 Nuvoton Technology Corp.
|
|
*/
|
|
|
|
#ifndef _NPCM_GCR_H_
|
|
#define _NPCM_GCR_H_
|
|
|
|
#define NPCM_GCR_BA 0xF0800000
|
|
|
|
/* On-Chip ARBEL NPCM8XX VERSIONS */
|
|
#define ARBEL_Z1 0x00A35850
|
|
#define ARBEL_A1 0x04a35850
|
|
#define ARBEL_A2 0x08a35850
|
|
#define ARBEL_NPCM845 0x00000000
|
|
#define ARBEL_NPCM830 0x00300395
|
|
#define ARBEL_NPCM810 0x00000220
|
|
|
|
#define MFSEL4_ESPISEL BIT(8)
|
|
#define MFSEL1_LPCSEL BIT(26)
|
|
#define INTCR2_WDC BIT(21)
|
|
|
|
struct npcm_gcr {
|
|
unsigned int pdid;
|
|
unsigned int pwron;
|
|
unsigned int swstrps;
|
|
unsigned int rsvd1[2];
|
|
unsigned int miscpe;
|
|
unsigned int spldcnt;
|
|
unsigned int rsvd2[1];
|
|
unsigned int flockr2;
|
|
unsigned int flockr3;
|
|
unsigned int rsvd3[3];
|
|
unsigned int a35_mode;
|
|
unsigned int spswc;
|
|
unsigned int intcr;
|
|
unsigned int intsr;
|
|
unsigned int obscr1;
|
|
unsigned int obsdr1;
|
|
unsigned int rsvd4[1];
|
|
unsigned int hifcr;
|
|
unsigned int rsvd5[3];
|
|
unsigned int intcr2;
|
|
unsigned int rsvd6[1];
|
|
unsigned int srcnt;
|
|
unsigned int ressr;
|
|
unsigned int rlockr1;
|
|
unsigned int flockr1;
|
|
unsigned int dscnt;
|
|
unsigned int mdlr;
|
|
unsigned int scrpad_c;
|
|
unsigned int scrpad_b;
|
|
unsigned int rsvd7[4];
|
|
unsigned int daclvlr;
|
|
unsigned int intcr3;
|
|
unsigned int pcirctl;
|
|
unsigned int rsvd8[2];
|
|
unsigned int vsintr;
|
|
unsigned int rsvd9[1];
|
|
unsigned int sd2sur1;
|
|
unsigned int sd2sur2;
|
|
unsigned int sd2irv3;
|
|
unsigned int intcr4;
|
|
unsigned int obscr2;
|
|
unsigned int obsdr2;
|
|
unsigned int rsvd10[5];
|
|
unsigned int i2csegsel;
|
|
unsigned int i2csegctl;
|
|
unsigned int vsrcr;
|
|
unsigned int mlockr;
|
|
unsigned int rsvd11[8];
|
|
unsigned int etsr;
|
|
unsigned int dft1r;
|
|
unsigned int dft2r;
|
|
unsigned int dft3r;
|
|
unsigned int edffsr;
|
|
unsigned int rsvd12[1];
|
|
unsigned int intcrpce3;
|
|
unsigned int intcrpce2;
|
|
unsigned int intcrpce0;
|
|
unsigned int intcrpce1;
|
|
unsigned int dactest;
|
|
unsigned int scrpad;
|
|
unsigned int usb1phyctl;
|
|
unsigned int usb2phyctl;
|
|
unsigned int usb3phyctl;
|
|
unsigned int intsr2;
|
|
unsigned int intcrpce2b;
|
|
unsigned int intcrpce0b;
|
|
unsigned int intcrpce1b;
|
|
unsigned int intcrpce3b;
|
|
unsigned int rsvd13[4];
|
|
unsigned int intcrpce2c;
|
|
unsigned int intcrpce0c;
|
|
unsigned int intcrpce1c;
|
|
unsigned int intcrpce3c;
|
|
unsigned int rsvd14[40];
|
|
unsigned int sd2irv4;
|
|
unsigned int sd2irv5;
|
|
unsigned int sd2irv6;
|
|
unsigned int sd2irv7;
|
|
unsigned int sd2irv8;
|
|
unsigned int sd2irv9;
|
|
unsigned int sd2irv10;
|
|
unsigned int sd2irv11;
|
|
unsigned int rsvd15[8];
|
|
unsigned int mfsel1;
|
|
unsigned int mfsel2;
|
|
unsigned int mfsel3;
|
|
unsigned int mfsel4;
|
|
unsigned int mfsel5;
|
|
unsigned int mfsel6;
|
|
unsigned int mfsel7;
|
|
unsigned int rsvd16[1];
|
|
unsigned int mfsel_lk1;
|
|
unsigned int mfsel_lk2;
|
|
unsigned int mfsel_lk3;
|
|
unsigned int mfsel_lk4;
|
|
unsigned int mfsel_lk5;
|
|
unsigned int mfsel_lk6;
|
|
unsigned int mfsel_lk7;
|
|
unsigned int rsvd17[1];
|
|
unsigned int mfsel_set1;
|
|
unsigned int mfsel_set2;
|
|
unsigned int mfsel_set3;
|
|
unsigned int mfsel_set4;
|
|
unsigned int mfsel_set5;
|
|
unsigned int mfsel_set6;
|
|
unsigned int mfsel_set7;
|
|
unsigned int rsvd18[1];
|
|
unsigned int mfsel_clr1;
|
|
unsigned int mfsel_clr2;
|
|
unsigned int mfsel_clr3;
|
|
unsigned int mfsel_clr4;
|
|
unsigned int mfsel_clr5;
|
|
unsigned int mfsel_clr6;
|
|
unsigned int mfsel_clr7;
|
|
};
|
|
|
|
#endif
|