18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com> 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Register mappings for Loongson 1 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __ASM_MACH_LOONGSON32_LOONGSON1_H 98c2ecf20Sopenharmony_ci#define __ASM_MACH_LOONGSON32_LOONGSON1_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#if defined(CONFIG_LOONGSON1_LS1B) 128c2ecf20Sopenharmony_ci#define DEFAULT_MEMSIZE 64 /* If no memsize provided */ 138c2ecf20Sopenharmony_ci#elif defined(CONFIG_LOONGSON1_LS1C) 148c2ecf20Sopenharmony_ci#define DEFAULT_MEMSIZE 32 158c2ecf20Sopenharmony_ci#endif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* Loongson 1 Register Bases */ 188c2ecf20Sopenharmony_ci#define LS1X_MUX_BASE 0x1fd00420 198c2ecf20Sopenharmony_ci#define LS1X_INTC_BASE 0x1fd01040 208c2ecf20Sopenharmony_ci#define LS1X_GPIO0_BASE 0x1fd010c0 218c2ecf20Sopenharmony_ci#define LS1X_GPIO1_BASE 0x1fd010c4 228c2ecf20Sopenharmony_ci#define LS1X_DMAC_BASE 0x1fd01160 238c2ecf20Sopenharmony_ci#define LS1X_CBUS_BASE 0x1fd011c0 248c2ecf20Sopenharmony_ci#define LS1X_EHCI_BASE 0x1fe00000 258c2ecf20Sopenharmony_ci#define LS1X_OHCI_BASE 0x1fe08000 268c2ecf20Sopenharmony_ci#define LS1X_GMAC0_BASE 0x1fe10000 278c2ecf20Sopenharmony_ci#define LS1X_GMAC1_BASE 0x1fe20000 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#define LS1X_UART0_BASE 0x1fe40000 308c2ecf20Sopenharmony_ci#define LS1X_UART1_BASE 0x1fe44000 318c2ecf20Sopenharmony_ci#define LS1X_UART2_BASE 0x1fe48000 328c2ecf20Sopenharmony_ci#define LS1X_UART3_BASE 0x1fe4c000 338c2ecf20Sopenharmony_ci#define LS1X_CAN0_BASE 0x1fe50000 348c2ecf20Sopenharmony_ci#define LS1X_CAN1_BASE 0x1fe54000 358c2ecf20Sopenharmony_ci#define LS1X_I2C0_BASE 0x1fe58000 368c2ecf20Sopenharmony_ci#define LS1X_I2C1_BASE 0x1fe68000 378c2ecf20Sopenharmony_ci#define LS1X_I2C2_BASE 0x1fe70000 388c2ecf20Sopenharmony_ci#define LS1X_PWM0_BASE 0x1fe5c000 398c2ecf20Sopenharmony_ci#define LS1X_PWM1_BASE 0x1fe5c010 408c2ecf20Sopenharmony_ci#define LS1X_PWM2_BASE 0x1fe5c020 418c2ecf20Sopenharmony_ci#define LS1X_PWM3_BASE 0x1fe5c030 428c2ecf20Sopenharmony_ci#define LS1X_WDT_BASE 0x1fe5c060 438c2ecf20Sopenharmony_ci#define LS1X_RTC_BASE 0x1fe64000 448c2ecf20Sopenharmony_ci#define LS1X_AC97_BASE 0x1fe74000 458c2ecf20Sopenharmony_ci#define LS1X_NAND_BASE 0x1fe78000 468c2ecf20Sopenharmony_ci#define LS1X_CLK_BASE 0x1fe78030 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#include <regs-clk.h> 498c2ecf20Sopenharmony_ci#include <regs-mux.h> 508c2ecf20Sopenharmony_ci#include <regs-pwm.h> 518c2ecf20Sopenharmony_ci#include <regs-rtc.h> 528c2ecf20Sopenharmony_ci#include <regs-wdt.h> 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */ 55