Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com> |
| 3 | * |
| 4 | * Register mappings for Loongson 1 |
| 5 | * |
Ralf Baechle | 7034228 | 2013-01-22 12:59:30 +0100 | [diff] [blame] | 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 8 | * Free Software Foundation; either version 2 of the License, or (at your |
| 9 | * option) any later version. |
| 10 | */ |
| 11 | |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 12 | #ifndef __ASM_MACH_LOONGSON32_LOONGSON1_H |
| 13 | #define __ASM_MACH_LOONGSON32_LOONGSON1_H |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 14 | |
Yang Ling | 12e3280 | 2016-05-19 12:29:30 +0800 | [diff] [blame] | 15 | #if defined(CONFIG_LOONGSON1_LS1B) |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 16 | #define DEFAULT_MEMSIZE 256 /* If no memsize provided */ |
Yang Ling | 12e3280 | 2016-05-19 12:29:30 +0800 | [diff] [blame] | 17 | #elif defined(CONFIG_LOONGSON1_LS1C) |
| 18 | #define DEFAULT_MEMSIZE 32 |
| 19 | #endif |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 20 | |
| 21 | /* Loongson 1 Register Bases */ |
Kelvin Cheung | f29ad10 | 2014-10-10 11:40:01 +0800 | [diff] [blame] | 22 | #define LS1X_MUX_BASE 0x1fd00420 |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 23 | #define LS1X_INTC_BASE 0x1fd01040 |
Kelvin Cheung | 9ec88b6 | 2016-04-06 20:34:54 +0800 | [diff] [blame] | 24 | #define LS1X_GPIO0_BASE 0x1fd010c0 |
| 25 | #define LS1X_GPIO1_BASE 0x1fd010c4 |
| 26 | #define LS1X_DMAC_BASE 0x1fd01160 |
Yang Ling | 12e3280 | 2016-05-19 12:29:30 +0800 | [diff] [blame] | 27 | #define LS1X_CBUS_BASE 0x1fd011c0 |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 28 | #define LS1X_EHCI_BASE 0x1fe00000 |
| 29 | #define LS1X_OHCI_BASE 0x1fe08000 |
| 30 | #define LS1X_GMAC0_BASE 0x1fe10000 |
| 31 | #define LS1X_GMAC1_BASE 0x1fe20000 |
| 32 | |
| 33 | #define LS1X_UART0_BASE 0x1fe40000 |
| 34 | #define LS1X_UART1_BASE 0x1fe44000 |
| 35 | #define LS1X_UART2_BASE 0x1fe48000 |
| 36 | #define LS1X_UART3_BASE 0x1fe4c000 |
| 37 | #define LS1X_CAN0_BASE 0x1fe50000 |
| 38 | #define LS1X_CAN1_BASE 0x1fe54000 |
| 39 | #define LS1X_I2C0_BASE 0x1fe58000 |
| 40 | #define LS1X_I2C1_BASE 0x1fe68000 |
| 41 | #define LS1X_I2C2_BASE 0x1fe70000 |
Kelvin Cheung | f29ad10 | 2014-10-10 11:40:01 +0800 | [diff] [blame] | 42 | #define LS1X_PWM0_BASE 0x1fe5c000 |
| 43 | #define LS1X_PWM1_BASE 0x1fe5c010 |
| 44 | #define LS1X_PWM2_BASE 0x1fe5c020 |
| 45 | #define LS1X_PWM3_BASE 0x1fe5c030 |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 46 | #define LS1X_WDT_BASE 0x1fe5c060 |
| 47 | #define LS1X_RTC_BASE 0x1fe64000 |
| 48 | #define LS1X_AC97_BASE 0x1fe74000 |
| 49 | #define LS1X_NAND_BASE 0x1fe78000 |
| 50 | #define LS1X_CLK_BASE 0x1fe78030 |
| 51 | |
| 52 | #include <regs-clk.h> |
Kelvin Cheung | f29ad10 | 2014-10-10 11:40:01 +0800 | [diff] [blame] | 53 | #include <regs-mux.h> |
| 54 | #include <regs-pwm.h> |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 55 | #include <regs-wdt.h> |
| 56 | |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 57 | #endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */ |