Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
0004  *
0005  * Register mappings for Loongson 1
0006  */
0007 
0008 #ifndef __ASM_MACH_LOONGSON32_LOONGSON1_H
0009 #define __ASM_MACH_LOONGSON32_LOONGSON1_H
0010 
0011 #if defined(CONFIG_LOONGSON1_LS1B)
0012 #define DEFAULT_MEMSIZE         64  /* If no memsize provided */
0013 #elif defined(CONFIG_LOONGSON1_LS1C)
0014 #define DEFAULT_MEMSIZE         32
0015 #endif
0016 
0017 /* Loongson 1 Register Bases */
0018 #define LS1X_MUX_BASE           0x1fd00420
0019 #define LS1X_INTC_BASE          0x1fd01040
0020 #define LS1X_GPIO0_BASE         0x1fd010c0
0021 #define LS1X_GPIO1_BASE         0x1fd010c4
0022 #define LS1X_DMAC_BASE          0x1fd01160
0023 #define LS1X_CBUS_BASE          0x1fd011c0
0024 #define LS1X_EHCI_BASE          0x1fe00000
0025 #define LS1X_OHCI_BASE          0x1fe08000
0026 #define LS1X_GMAC0_BASE         0x1fe10000
0027 #define LS1X_GMAC1_BASE         0x1fe20000
0028 
0029 #define LS1X_UART0_BASE         0x1fe40000
0030 #define LS1X_UART1_BASE         0x1fe44000
0031 #define LS1X_UART2_BASE         0x1fe48000
0032 #define LS1X_UART3_BASE         0x1fe4c000
0033 #define LS1X_CAN0_BASE          0x1fe50000
0034 #define LS1X_CAN1_BASE          0x1fe54000
0035 #define LS1X_I2C0_BASE          0x1fe58000
0036 #define LS1X_I2C1_BASE          0x1fe68000
0037 #define LS1X_I2C2_BASE          0x1fe70000
0038 #define LS1X_PWM0_BASE          0x1fe5c000
0039 #define LS1X_PWM1_BASE          0x1fe5c010
0040 #define LS1X_PWM2_BASE          0x1fe5c020
0041 #define LS1X_PWM3_BASE          0x1fe5c030
0042 #define LS1X_WDT_BASE           0x1fe5c060
0043 #define LS1X_RTC_BASE           0x1fe64000
0044 #define LS1X_AC97_BASE          0x1fe74000
0045 #define LS1X_NAND_BASE          0x1fe78000
0046 #define LS1X_CLK_BASE           0x1fe78030
0047 
0048 #include <regs-clk.h>
0049 #include <regs-mux.h>
0050 #include <regs-pwm.h>
0051 #include <regs-rtc.h>
0052 #include <regs-wdt.h>
0053 
0054 #endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */