~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/soc/at91/sama7-ddr.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/soc/at91/sama7-ddr.h (Version linux-6.12-rc7) and /include/soc/at91/sama7-ddr.h (Version linux-5.17.15)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * Microchip SAMA7 UDDR Controller and DDR3 PH      3  * Microchip SAMA7 UDDR Controller and DDR3 PHY Controller registers offsets
  4  * and bit definitions.                             4  * and bit definitions.
  5  *                                                  5  *
  6  * Copyright (C) [2020] Microchip Technology I      6  * Copyright (C) [2020] Microchip Technology Inc. and its subsidiaries
  7  *                                                  7  *
  8  * Author: Claudu Beznea <claudiu.beznea@micro      8  * Author: Claudu Beznea <claudiu.beznea@microchip.com>
  9  */                                                 9  */
 10                                                    10 
 11 #ifndef __SAMA7_DDR_H__                            11 #ifndef __SAMA7_DDR_H__
 12 #define __SAMA7_DDR_H__                            12 #define __SAMA7_DDR_H__
 13                                                    13 
                                                   >>  14 #ifdef CONFIG_SOC_SAMA7
                                                   >>  15 
 14 /* DDR3PHY */                                      16 /* DDR3PHY */
 15 #define DDR3PHY_PIR                                17 #define DDR3PHY_PIR                             (0x04)          /* DDR3PHY PHY Initialization Register  */
 16 #define DDR3PHY_PIR_DLLBYP                     !!  18 #define DDR3PHY_PIR_DLLBYP              (1 << 17)       /* DLL Bypass */
 17 #define         DDR3PHY_PIR_ITMSRST                19 #define         DDR3PHY_PIR_ITMSRST             (1 << 4)        /* Interface Timing Module Soft Reset */
 18 #define DDR3PHY_PIR_DLLLOCK                    !!  20 #define DDR3PHY_PIR_DLLLOCK             (1 << 2)        /* DLL Lock */
 19 #define         DDR3PHY_PIR_DLLSRST                21 #define         DDR3PHY_PIR_DLLSRST             (1 << 1)        /* DLL Soft Rest */
 20 #define DDR3PHY_PIR_INIT                       !!  22 #define DDR3PHY_PIR_INIT                (1 << 0)        /* Initialization Trigger */
 21                                                    23 
 22 #define DDR3PHY_PGCR                               24 #define DDR3PHY_PGCR                            (0x08)          /* DDR3PHY PHY General Configuration Register */
 23 #define         DDR3PHY_PGCR_CKDV1                 25 #define         DDR3PHY_PGCR_CKDV1              (1 << 13)       /* CK# Disable Value */
 24 #define         DDR3PHY_PGCR_CKDV0                 26 #define         DDR3PHY_PGCR_CKDV0              (1 << 12)       /* CK Disable Value */
 25                                                    27 
 26 #define DDR3PHY_PGSR                               28 #define DDR3PHY_PGSR                            (0x0C)          /* DDR3PHY PHY General Status Register */
 27 #define         DDR3PHY_PGSR_IDONE                 29 #define         DDR3PHY_PGSR_IDONE              (1 << 0)        /* Initialization Done */
 28                                                    30 
 29 #define DDR3PHY_ACDLLCR                        !!  31 #define DDR3PHY_ACIOCR                          (0x24)          /*  DDR3PHY AC I/O Configuration Register */
 30 #define         DDR3PHY_ACDLLCR_DLLSRST        << 
 31                                                << 
 32 #define DDR3PHY_ACIOCR                         << 
 33 #define         DDR3PHY_ACIOCR_CSPDD_CS0           32 #define         DDR3PHY_ACIOCR_CSPDD_CS0        (1 << 18)       /* CS#[0] Power Down Driver */
 34 #define         DDR3PHY_ACIOCR_CKPDD_CK0           33 #define         DDR3PHY_ACIOCR_CKPDD_CK0        (1 << 8)        /* CK[0] Power Down Driver */
 35 #define         DDR3PHY_ACIORC_ACPDD               34 #define         DDR3PHY_ACIORC_ACPDD            (1 << 3)        /* AC Power Down Driver */
 36                                                    35 
 37 #define DDR3PHY_DXCCR                              36 #define DDR3PHY_DXCCR                           (0x28)          /* DDR3PHY DATX8 Common Configuration Register */
 38 #define         DDR3PHY_DXCCR_DXPDR                37 #define         DDR3PHY_DXCCR_DXPDR             (1 << 3)        /* Data Power Down Receiver */
 39                                                    38 
 40 #define DDR3PHY_DSGCR                              39 #define DDR3PHY_DSGCR                           (0x2C)          /* DDR3PHY DDR System General Configuration Register */
 41 #define         DDR3PHY_DSGCR_ODTPDD_ODT0          40 #define         DDR3PHY_DSGCR_ODTPDD_ODT0       (1 << 20)       /* ODT[0] Power Down Driver */
 42                                                    41 
 43 #define DDR3PHY_ZQ0SR0                             42 #define DDR3PHY_ZQ0SR0                          (0x188)         /* ZQ status register 0 */
 44 #define DDR3PHY_ZQ0SR0_PDO_OFF                 << 
 45 #define DDR3PHY_ZQ0SR0_PUO_OFF                 << 
 46 #define DDR3PHY_ZQ0SR0_PDODT_OFF               << 
 47 #define DDR3PHY_ZQ0SRO_PUODT_OFF               << 
 48                                                << 
 49 #define DDR3PHY_DX0DLLCR                       << 
 50 #define DDR3PHY_DX1DLLCR                       << 
 51 #define         DDR3PHY_DXDLLCR_DLLDIS         << 
 52                                                    43 
 53 /* UDDRC */                                        44 /* UDDRC */
 54 #define UDDRC_STAT                                 45 #define UDDRC_STAT                              (0x04)          /* UDDRC Operating Mode Status Register */
 55 #define         UDDRC_STAT_SELFREF_TYPE_DIS        46 #define         UDDRC_STAT_SELFREF_TYPE_DIS     (0x0 << 4)      /* SDRAM is not in Self-refresh */
 56 #define         UDDRC_STAT_SELFREF_TYPE_PHY        47 #define         UDDRC_STAT_SELFREF_TYPE_PHY     (0x1 << 4)      /* SDRAM is in Self-refresh, which was caused by PHY Master Request */
 57 #define         UDDRC_STAT_SELFREF_TYPE_SW         48 #define         UDDRC_STAT_SELFREF_TYPE_SW      (0x2 << 4)      /* SDRAM is in Self-refresh, which was not caused solely under Automatic Self-refresh control */
 58 #define         UDDRC_STAT_SELFREF_TYPE_AUTO       49 #define         UDDRC_STAT_SELFREF_TYPE_AUTO    (0x3 << 4)      /* SDRAM is in Self-refresh, which was caused by Automatic Self-refresh only */
 59 #define         UDDRC_STAT_SELFREF_TYPE_MSK        50 #define         UDDRC_STAT_SELFREF_TYPE_MSK     (0x3 << 4)      /* Self-refresh type mask */
 60 #define         UDDRC_STAT_OPMODE_INIT             51 #define         UDDRC_STAT_OPMODE_INIT          (0x0 << 0)      /* Init */
 61 #define         UDDRC_STAT_OPMODE_NORMAL           52 #define         UDDRC_STAT_OPMODE_NORMAL        (0x1 << 0)      /* Normal */
 62 #define         UDDRC_STAT_OPMODE_PWRDOWN          53 #define         UDDRC_STAT_OPMODE_PWRDOWN       (0x2 << 0)      /* Power-down */
 63 #define         UDDRC_STAT_OPMODE_SELF_REFRESH     54 #define         UDDRC_STAT_OPMODE_SELF_REFRESH  (0x3 << 0)      /* Self-refresh */
 64 #define         UDDRC_STAT_OPMODE_MSK              55 #define         UDDRC_STAT_OPMODE_MSK           (0x7 << 0)      /* Operating mode mask */
 65                                                    56 
 66 #define UDDRC_PWRCTL                               57 #define UDDRC_PWRCTL                            (0x30)          /* UDDRC Low Power Control Register */
 67 #define         UDDRC_PWRCTL_SELFREF_EN        !!  58 #define         UDDRC_PWRCTRL_SELFREF_SW        (1 << 5)        /* Software self-refresh */
 68 #define         UDDRC_PWRCTL_SELFREF_SW        << 
 69                                                    59 
 70 #define UDDRC_DFIMISC                              60 #define UDDRC_DFIMISC                           (0x1B0)         /* UDDRC DFI Miscellaneous Control Register */
 71 #define         UDDRC_DFIMISC_DFI_INIT_COMPLET     61 #define         UDDRC_DFIMISC_DFI_INIT_COMPLETE_EN (1 << 0)     /* PHY initialization complete enable signal */
 72                                                    62 
 73 #define UDDRC_SWCTRL                               63 #define UDDRC_SWCTRL                            (0x320)         /* UDDRC Software Register Programming Control Enable */
 74 #define         UDDRC_SWCTRL_SW_DONE               64 #define         UDDRC_SWCTRL_SW_DONE            (1 << 0)        /* Enable quasi-dynamic register programming outside reset */
 75                                                    65 
 76 #define UDDRC_SWSTAT                               66 #define UDDRC_SWSTAT                            (0x324)         /* UDDRC Software Register Programming Control Status */
 77 #define         UDDRC_SWSTAT_SW_DONE_ACK           67 #define         UDDRC_SWSTAT_SW_DONE_ACK        (1 << 0)        /* Register programming done */
 78                                                    68 
 79 #define UDDRC_PSTAT                                69 #define UDDRC_PSTAT                             (0x3FC)         /* UDDRC Port Status Register */
 80 #define UDDRC_PSTAT_ALL_PORTS                  !!  70 #define UDDRC_PSTAT_ALL_PORTS           (0x1F001F)      /* Read + writes outstanding transactions on all ports */
 81                                                    71 
 82 #define UDDRC_PCTRL_0                              72 #define UDDRC_PCTRL_0                           (0x490)         /* UDDRC Port 0 Control Register */
 83 #define UDDRC_PCTRL_1                              73 #define UDDRC_PCTRL_1                           (0x540)         /* UDDRC Port 1 Control Register */
 84 #define UDDRC_PCTRL_2                              74 #define UDDRC_PCTRL_2                           (0x5F0)         /* UDDRC Port 2 Control Register */
 85 #define UDDRC_PCTRL_3                              75 #define UDDRC_PCTRL_3                           (0x6A0)         /* UDDRC Port 3 Control Register */
 86 #define UDDRC_PCTRL_4                              76 #define UDDRC_PCTRL_4                           (0x750)         /* UDDRC Port 4 Control Register */
                                                   >>  77 
                                                   >>  78 #endif /* CONFIG_SOC_SAMA7 */
 87                                                    79 
 88 #endif /* __SAMA7_DDR_H__ */                       80 #endif /* __SAMA7_DDR_H__ */
 89                                                    81 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php