Skip to content

Commit

Permalink
ARM: at91: ddr: remove CONFIG_SOC_SAMA7 dependency
Browse files Browse the repository at this point in the history
[ Upstream commit dc30057 ]

Remove CONFIG_SOC_SAMA7 dependency to avoid having #ifdef preprocessor
directives in driver code (arch/arm/mach-at91/pm.c). This prepares the
code for next commits.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20220113144900.906370-2-claudiu.beznea@microchip.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
claudiubeznea authored and gregkh committed Sep 15, 2022
1 parent 154e72a commit e04b256
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/soc/at91/sama7-ddr.h
Expand Up @@ -11,8 +11,6 @@
#ifndef __SAMA7_DDR_H__
#define __SAMA7_DDR_H__

#ifdef CONFIG_SOC_SAMA7

/* DDR3PHY */
#define DDR3PHY_PIR (0x04) /* DDR3PHY PHY Initialization Register */
#define DDR3PHY_PIR_DLLBYP (1 << 17) /* DLL Bypass */
Expand Down Expand Up @@ -83,6 +81,4 @@
#define UDDRC_PCTRL_3 (0x6A0) /* UDDRC Port 3 Control Register */
#define UDDRC_PCTRL_4 (0x750) /* UDDRC Port 4 Control Register */

#endif /* CONFIG_SOC_SAMA7 */

#endif /* __SAMA7_DDR_H__ */

0 comments on commit e04b256

Please sign in to comment.