Tony Dinh | c0f94df | 2023-08-25 20:33:29 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Copyright (C) 2015-2023 Tony Dinh <mibodhi@gmail.com> |
| 4 | # |
| 5 | # Extracted from Zyxel GPL source for u-boot-1.1.4_NSA325v2 |
| 6 | # |
| 7 | # Boot Media configurations |
| 8 | BOOT_FROM nand |
| 9 | NAND_ECC_MODE default |
| 10 | NAND_PAGE_SIZE 0x0800 |
| 11 | |
| 12 | # SOC registers configuration using bootrom header extension |
| 13 | # Maximum KWBIMAGE_MAX_CONFIG configurations allowed |
| 14 | |
| 15 | # Configure RGMII-0 interface pad voltage to 1.8V |
| 16 | DATA 0xFFD100e0 0x1b1b1b9b |
| 17 | |
| 18 | #Dram initalization |
| 19 | DATA 0xFFD01400 0x4301503E # DDR Configuration register |
| 20 | DATA 0xFFD01404 0xB9843000 # DDR Controller Control Low |
| 21 | DATA 0xFFD01408 0x33137777 # DDR Timing (Low) |
| 22 | DATA 0xFFD0140C 0x16000C55 # DDR Timing (High) |
| 23 | DATA 0xFFD01410 0x04000000 # DDR Address Control |
| 24 | DATA 0xFFD01414 0x00000000 # DDR Open Pages Control |
| 25 | DATA 0xFFD01418 0x00000000 # DDR Operation |
| 26 | DATA 0xFFD0141C 0x00000672 # DDR Mode |
| 27 | DATA 0xFFD01420 0x00000004 # DDR Extended Mode |
| 28 | DATA 0xFFD01424 0x0000F14F # DDR Controller Control High |
| 29 | DATA 0xFFD01428 0x000D6720 # DDR3 ODT Read Timing |
| 30 | DATA 0xFFD0147C 0x0000B571 # DDR2 ODT Write Timing |
| 31 | DATA 0xFFD01504 0x1FFFFFF1 # CS[0]n Size |
| 32 | DATA 0xFFD01508 0x20000000 # CS[1]n Base address to 512Mb |
| 33 | DATA 0xFFD0150C 0x1FFFFFF4 # CS[1]n Size 512Mb Window enabled for CS1 |
| 34 | DATA 0xFFD01514 0x00000000 # CS[2]n Size, window disabled |
| 35 | DATA 0xFFD0151C 0x00000000 # CS[3]n Size, window disabled |
| 36 | DATA 0xFFD01494 0x00120000 # DDR ODT Control (Low) |
| 37 | DATA 0xFFD01498 0x00000000 # DDR ODT Control (High) |
| 38 | DATA 0xFFD0149C 0x0000E803 # CPU ODT Control |
| 39 | |
| 40 | DATA 0xFFD015D0 0x00000630 |
| 41 | DATA 0xFFD015D4 0x00000046 |
| 42 | DATA 0xFFD015D8 0x00000008 |
| 43 | DATA 0xFFD015DC 0x00000000 |
| 44 | DATA 0xFFD015E0 0x00000023 |
| 45 | DATA 0xFFD015E4 0x00203C18 |
| 46 | DATA 0xFFD01620 0x00384800 |
| 47 | DATA 0xFFD01480 0x00000001 |
| 48 | DATA 0xFFD20134 0x66666666 |
| 49 | DATA 0xFFD20138 0x00066666 |
| 50 | |
| 51 | DATA 0xFFD10100 0x00004000 # stop the watchdog |
| 52 | DATA 0xFFD10104 0xFFFFBFFF |
| 53 | |
| 54 | # End of Header extension |
| 55 | DATA 0x0 0x0 |