├── .clang-format ├── .gitmodules ├── LICENSE ├── README.md ├── iar ├── ddf │ ├── H3.ddf │ ├── H5.ddf │ ├── H6.ddf │ ├── H616.ddf │ ├── R40.ddf │ ├── T113-S3.ddf │ └── V3s.ddf ├── sunxi-jtag-94.ewd ├── sunxi-jtag-94.ewp ├── sunxi-jtag.ewd ├── sunxi-jtag.ewp ├── sunxi.icf └── sunxi.mac └── src ├── configs ├── H3.h ├── H5.h ├── H6.h ├── H616.h ├── R40.h ├── T113_S3.h └── V3s.h ├── main_app.c ├── main_init.c ├── mock.h ├── mock ├── asm-generic │ └── int-ll64.h ├── asm │ ├── arch │ │ ├── clock.h │ │ ├── clock_sun50i_h6.h │ │ ├── clock_sun6i.h │ │ ├── cpu.h │ │ ├── cpu_sun4i.h │ │ ├── cpu_sun50i_h6.h │ │ ├── cpu_sunxi_ncat2.h │ │ ├── display.h │ │ ├── dram.h │ │ ├── dram_sun4i.h │ │ ├── dram_sun50i_h6.h │ │ ├── dram_sun50i_h616.h │ │ ├── dram_sunxi_dw.h │ │ ├── gpio.h │ │ ├── gtbus.h │ │ ├── mmc.h │ │ ├── pmic_bus.h │ │ ├── prcm.h │ │ ├── prcm_sun50i.h │ │ ├── prcm_sun6i.h │ │ ├── serial.h │ │ ├── spl.h │ │ ├── sys_proto.h │ │ ├── timer.h │ │ ├── tzpc.h │ │ └── watchdog.h │ ├── cache.h │ ├── global_data.h │ ├── gpio.h │ └── io.h ├── common.h ├── compiler.h ├── config.h ├── cpu_func.h ├── env.h ├── env_internal.h ├── fdt_support.h ├── generated │ └── autoconf.h ├── generic-phy.h ├── hang.h ├── image.h ├── linux │ ├── bitops.h │ ├── byteorder │ │ └── little_endian.h │ ├── compat.h │ ├── compiler.h │ ├── compiler_attributes.h │ ├── kernel.h │ ├── libfdt_env.h │ ├── printk.h │ └── types.h ├── log.h ├── malloc.h ├── mmc.h ├── nand.h ├── net.h ├── phy-sun4i-usb.h ├── spl.h ├── sunxi_gpio.h ├── time.h └── u-boot │ └── crc.h ├── sunxi_dram_app.h ├── sunxi_gpio.c ├── sunxi_jtag.h └── write.c /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "svd"] 2 | path = svd 3 | url = https://github.com/grinux/sunxi-svd.git 4 | [submodule "u-boot"] 5 | path = u-boot 6 | url = https://github.com/u-boot/u-boot.git 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## IAR Embedded Workbench JTAG support for Allwinner SoCs. 2 | 3 | #### Currently tested using uSD to JTAG breakout board on: 4 | - [x] V3s (Lichee Pi Zero) 5 | - [x] H3 (Orange Pi PC) 6 | - [x] H5 (Orange Pi PC2) 7 | - [x] H616 (Orange Pi Zero2) 8 | - [x] H6 (Orange Pi One Plus) 9 | - [x] R40/A40/V40 (Banana Pi BPI-M2 Berry) 10 | - [x] T113-S3 (MangoPi MQ-R) 11 | 12 | IAR allows out-of-the-box to run debugee in SUNXI SRAM by selecting the proper core and using a compatible linker configuration. 13 | To run the code in DRAM it needs to be initialized previously. 14 | 15 | This package allows step-by-step debugging in DRAM by using J-Link or a compatible JTAG emulator. 16 | It was done by porting the U-Boot clock and DRAM initialization code into an IAR macro called sunxi.mac. 17 | Initialization by executing precompiled binary is also supported. 18 | 19 | Steps: 20 | 1. Setup IAR 9.40 for only Cortex-A7, 9.50 and later for both A7 and A53, J-Link, board, USB dongle(optional) 21 | 2. Clone repo git clone --recurse-submodules https://github.com/grinux/sunxi-jtag.git 22 | 3. Open sunxi-jtag.ewp or sunxi-jtag-94.ewp for EWARM 9.40 23 | 4. In sunxi_jtag.h change CFG_SYS_UART to desired console UART. 24 | 5. Build XX-dram-app target. 25 | 6. For Cortex-A53 core (H5 etc) run J-Link GDB server GUI and select Cortex-A53 core, JTAG interface, and GDB port 2331 26 | or run console version with params: -select USB=0 -device Cortex-A53 -endian little -if JTAG -speed auto -noir -LocalhostOnly -nologtofile -port 2331 27 | 7. Start debugging. If IAR asks for memory configuration. Hit "Use factory" button. 28 | 8. If message box popups select desired initialization mode and set it permanently in project options later following message box instructions. 29 | 9. Run. 30 | 10. If the USB dongle is connected "Hello from DRAM" output appears. 31 | 11. Edit linker configuration sunxi.icf to set desired code/dram area size. 32 | 12. Enjoy running applications from DRAM without unwanted tricks. 33 | 34 | The project allows the running of the original U-Boot initialization code, and therefore sunxi.mac has two working modes available to select while first loading: 35 | 36 | 1. Macro initialization(supports only V3s, H3, R40). Initialization is made by JTAG directly accessing necessary registers then the main debugee is loaded. 37 | 2. Binary initialization. Initialization executable loaded by JTAG then run it -> evaluate results -> load main debugee. 38 | 39 | Performance between them is not noticeable. 40 | To use binary mode there are additional steps: 41 | 42 | 13. Select a suitable XX-dram-init target (V3s-dram-init, H3-dram-init, etc) 43 | 14. In sunxi_jtag.h set CFG_SYS_INIT_DEBUG to 1 to enable console output for dram-init target. 44 | 15. Build. File sunXX-YY-dram-init.hex will be generated. 45 | 16. Debug if it is needed. 46 | 17. Change the target back to XX-dram-app. 47 | 18. In Options->Debugger->Extra Options add or change --macro_param init_mode="bin". 48 | This tells sunxi.mac to go into binary mode and load and run the generated hex file before main debuggee. 49 | 19. Start debugging. 50 | 20. Check the debug log to see hex file loaded and executed properly. 51 | 21. Enjoy. 52 | 53 | If you have any trouble write a few words [here](https://github.com/grinux/sunxi-jtag/issues) or make PR 54 | 55 | 56 | GPL-2.0 license inherited from U-Boot. Checkout [this](https://github.com/ARM-software/u-boot/blob/402465214395ed26d6fa72d9b6097c7adbf6a966/Licenses/README#L11) statement about using in proprietary projects. 57 | -------------------------------------------------------------------------------- /iar/ddf/H3.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00000000 0x0000FFFF RW 15 | Memory = SRAM_A2 Memory 0x00044000 0x0004BFFF RW 16 | Memory = SRAM_C Memory 0x00010000 0x0001AFFF RW 17 | Memory = SFR Memory 0x01000000 0x3F507FFF W 18 | Memory = DRAM Memory 0x40000000 0xBfffffff RW 19 | Memory = BROM Memory 0xFFFF0000 0xFFFFFFFF R 20 | 21 | [SfrInclude] 22 | File = ..\..\svd\H3.svd 23 | -------------------------------------------------------------------------------- /iar/ddf/H5.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00010000 0x00017FFF RW 15 | Memory = SRAM_A2 Memory 0x00044000 0x00053FFF RW 16 | Memory = SRAM_C Memory 0x00018000 0x00033FFF RW 17 | Memory = SFR Memory 0x01000000 0x01F03BFF W 18 | Memory = DRAM Memory 0x40000000 0xBfffffff RW 19 | Memory = BROM Memory 0x00000000 0x0000FFFF R 20 | 21 | [SfrInclude] 22 | File = ..\..\svd\H5.svd 23 | -------------------------------------------------------------------------------- /iar/ddf/H6.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00020000 0x00027FFF RW 15 | Memory = SRAM_C Memory 0x00028000 0x00045FFF RW 16 | Memory = SRAM_A2 Memory 0x00100000 0x00103FFF RW 17 | Memory = SRAM_A3 Memory 0x00104000 0x00117FFF RW 18 | Memory = SFR Memory 0x01000000 0x09020FFF W 19 | Memory = DRAM Memory 0x40000000 0xffffffff RW 20 | Memory = BROM Memory 0x00000000 0x0000FFFF R 21 | 22 | [SfrInclude] 23 | File = ..\..\svd\H6.svd 24 | -------------------------------------------------------------------------------- /iar/ddf/H616.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00020000 0x00027FFF RW 15 | Memory = SRAM_C Memory 0x00028000 0x00057FFF RW 16 | Memory = SFR Memory 0x01000000 0x09020FFF W 17 | Memory = DRAM Memory 0x40000000 0xBfffffff RW 18 | Memory = BROM Memory 0x00000000 0x0000FFFF R 19 | 20 | [SfrInclude] 21 | File = ..\..\svd\H616.svd 22 | -------------------------------------------------------------------------------- /iar/ddf/R40.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00000000 0x00003FFF RW 15 | Memory = SRAM_A2 Memory 0x00004000 0x00007FFF RW 16 | Memory = SRAM_A3 Memory 0x00008000 0x0000B3FF RW 17 | Memory = SRAM_A4 Memory 0x0000B400 0x0000BFFF RW 18 | Memory = SFR Memory 0x01000000 0x3FFFFFFF W 19 | Memory = DRAM Memory 0x40000000 0xBFFFFFFF RW 20 | Memory = BROM Memory 0xFFFF0000 0xFFFF8FFF R 21 | 22 | [SfrInclude] 23 | File = ..\..\svd\R40.svd 24 | -------------------------------------------------------------------------------- /iar/ddf/T113-S3.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00020000 0x00027FFF RW 15 | Memory = DSP_IRAM Memory 0x00028000 0x00037FFF RW 16 | Memory = DSP_DRAM0 Memory 0x00038000 0x0003FFFF RW 17 | Memory = DSP_DRAM1 Memory 0x00040000 0x00047FFF RW 18 | Memory = SFR Memory 0x01700000 0x09020FFF W 19 | Memory = DRAM Memory 0x40000000 0xBfffffff RW 20 | Memory = BROM Memory 0x00000000 0x00008FFF R 21 | 22 | [SfrInclude] 23 | File = ..\..\svd\T113-S3.svd 24 | -------------------------------------------------------------------------------- /iar/ddf/V3s.ddf: -------------------------------------------------------------------------------- 1 | 2 | ;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ;; 4 | ;; Used to define address zones within the ARM address space (Memory). 5 | ;; 6 | ;; Name may be almost anything 7 | ;; AdrSpace must be Memory 8 | ;; StartAdr start of memory block 9 | ;; EndAdr end of memory block 10 | ;; AccType type of access, read-only (R), read-write (RW) or SFR (W) 11 | 12 | [Memory] 13 | ;; Name AdrSpace StartAdr EndAdr AccType Width 14 | Memory = SRAM_A1 Memory 0x00000000 0x00003FFF RW 15 | Memory = SRAM_C Memory 0x00004000 0x0000EFFF RW 16 | Memory = SFR Memory 0x0000F000 0x3FFFFFFF W 17 | Memory = DRAM Memory 0x40000000 0x43ffffff RW 18 | Memory = BROM Memory 0xFFFF0000 0xFFFF7FFF R 19 | 20 | [SfrInclude] 21 | File = ..\..\svd\V3s.svd 22 | -------------------------------------------------------------------------------- /iar/sunxi.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_1.xml" */ 4 | /*-Specials-*/ 5 | if (isdefinedsymbol(DDR)) 6 | { 7 | /* 32Mb code */ 8 | define symbol __ICFEDIT_region_IROM1_start__ = 0x40000000; 9 | define symbol __ICFEDIT_region_IROM1_end__ = 0x41F3FFFF; 10 | /* 32Mb data */ 11 | define symbol __ICFEDIT_region_IRAM1_start__ = 0x41F40000; 12 | define symbol __ICFEDIT_region_IRAM1_end__ = 0x43E80000; 13 | } 14 | else 15 | { 16 | if (isdefinedsymbol(SOC_ID)) 17 | { 18 | if (SOC_ID == 5) 19 | 20 | { 21 | /* 32Kb ROM */ 22 | define symbol __ICFEDIT_region_IROM1_start__ = 0x00010000; 23 | define symbol __ICFEDIT_region_IROM1_end__ = 0x00017FFF; 24 | /* 112Kb RAM */ 25 | define symbol __ICFEDIT_region_IRAM1_start__ = 0x00018000; 26 | define symbol __ICFEDIT_region_IRAM1_end__ = 0x00033FFF; 27 | } 28 | else if (SOC_ID == 616 || SOC_ID == 6 || SOC_ID == 113) 29 | { 30 | /* 36Kb ROM */ 31 | define symbol __ICFEDIT_region_IROM1_start__ = 0x00020000; 32 | define symbol __ICFEDIT_region_IROM1_end__ = 0x00028FFF; 33 | /* 126Kb RAM */ 34 | define symbol __ICFEDIT_region_IRAM1_start__ = 0x00029000; 35 | define symbol __ICFEDIT_region_IRAM1_end__ = 0x00047FFF; 36 | } 37 | } 38 | else /* V3s, H3, R40 SRAM */ 39 | { 40 | /* 28Kb ROM */ 41 | define symbol __ICFEDIT_region_IROM1_start__ = 0x00000000; 42 | define symbol __ICFEDIT_region_IROM1_end__ = 0x00006FFF; 43 | /* 20Kb RAM */ 44 | define symbol __ICFEDIT_region_IRAM1_start__ = 0x00007000; 45 | define symbol __ICFEDIT_region_IRAM1_end__ = 0x0000BFFF; 46 | } 47 | } 48 | 49 | define symbol __ICFEDIT_intvec_start__ = __ICFEDIT_region_IROM1_start__ + 0x0; 50 | 51 | define symbol __ICFEDIT_region_IROM2_start__ = 0x0; 52 | define symbol __ICFEDIT_region_IROM2_end__ = 0x0; 53 | define symbol __ICFEDIT_region_EROM1_start__ = 0x0; 54 | define symbol __ICFEDIT_region_EROM1_end__ = 0x0; 55 | define symbol __ICFEDIT_region_EROM2_start__ = 0x0; 56 | define symbol __ICFEDIT_region_EROM2_end__ = 0x0; 57 | define symbol __ICFEDIT_region_EROM3_start__ = 0x0; 58 | define symbol __ICFEDIT_region_EROM3_end__ = 0x0; 59 | define symbol __ICFEDIT_region_IRAM2_start__ = 0x0; 60 | define symbol __ICFEDIT_region_IRAM2_end__ = 0x0; 61 | define symbol __ICFEDIT_region_ERAM1_start__ = 0x0; 62 | define symbol __ICFEDIT_region_ERAM1_end__ = 0x0; 63 | define symbol __ICFEDIT_region_ERAM2_start__ = 0x0; 64 | define symbol __ICFEDIT_region_ERAM2_end__ = 0x0; 65 | define symbol __ICFEDIT_region_ERAM3_start__ = 0x0; 66 | define symbol __ICFEDIT_region_ERAM3_end__ = 0x0; 67 | 68 | /*-Sizes-*/ 69 | define symbol __ICFEDIT_size_cstack__ = 0x2000; 70 | define symbol __ICFEDIT_size_svcstack__ = 0x100; 71 | define symbol __ICFEDIT_size_hypstack__ = 0x100; 72 | define symbol __ICFEDIT_size_irqstack__ = 0x100; 73 | define symbol __ICFEDIT_size_fiqstack__ = 0x100; 74 | define symbol __ICFEDIT_size_undstack__ = 0x100; 75 | define symbol __ICFEDIT_size_abtstack__ = 0x100; 76 | define symbol __ICFEDIT_size_heap__ = 0x8000; 77 | /**** End of ICF editor section. ###ICF###*/ 78 | 79 | define symbol __DRAM_INIT_DONE__ = __ICFEDIT_region_IROM1_start__ + 0x40; 80 | define symbol __DRAM_INIT_RESULTS__ = __ICFEDIT_region_IROM1_start__ + 0x44; 81 | 82 | define memory mem with size = 4G; 83 | define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM1_end__] 84 | | mem:[from __ICFEDIT_region_IROM2_start__ to __ICFEDIT_region_IROM2_end__]; 85 | define region EROM_region = mem:[from __ICFEDIT_region_EROM1_start__ to __ICFEDIT_region_EROM1_end__] 86 | | mem:[from __ICFEDIT_region_EROM2_start__ to __ICFEDIT_region_EROM2_end__] 87 | | mem:[from __ICFEDIT_region_EROM3_start__ to __ICFEDIT_region_EROM3_end__]; 88 | define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM1_end__] 89 | | mem:[from __ICFEDIT_region_IRAM2_start__ to __ICFEDIT_region_IRAM2_end__]; 90 | define region ERAM_region = mem:[from __ICFEDIT_region_ERAM1_start__ to __ICFEDIT_region_ERAM1_end__] 91 | | mem:[from __ICFEDIT_region_ERAM2_start__ to __ICFEDIT_region_ERAM2_end__] 92 | | mem:[from __ICFEDIT_region_ERAM3_start__ to __ICFEDIT_region_ERAM3_end__]; 93 | 94 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 95 | define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; 96 | define block HYP_STACK with alignment = 8, size = __ICFEDIT_size_hypstack__ { }; 97 | define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; 98 | define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { }; 99 | define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { }; 100 | define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { }; 101 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 102 | 103 | do not initialize { section .noinit }; 104 | initialize by copy { readwrite }; 105 | if (isdefinedsymbol(__USE_DLIB_PERTHREAD)) 106 | { 107 | // Required in a multi-threaded application 108 | initialize by copy with packing = none { section __DLIB_PERTHREAD }; 109 | } 110 | 111 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 112 | place at address mem:__DRAM_INIT_DONE__ {section DRAM_INIT_DONE}; 113 | place at address mem:__DRAM_INIT_RESULTS__ {section DRAM_INIT_RESULTS}; 114 | 115 | place in IROM_region { readonly }; 116 | place in EROM_region { readonly section application_specific_ro }; 117 | place in IRAM_region { readwrite, 118 | block CSTACK, block SVC_STACK, block HYP_STACK, 119 | block IRQ_STACK, block FIQ_STACK, block UND_STACK, 120 | block ABT_STACK, block HEAP }; 121 | place in ERAM_region { readwrite section application_specific_rw }; -------------------------------------------------------------------------------- /src/configs/H3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_ENV_SUPPORT 1 8 | #define CONFIG_DISPLAY_BOARDINFO 1 9 | #define CONFIG_CRC32 1 10 | #define CONFIG_CMD_BOOTM 1 11 | #define CONFIG_ENV_FAT_FILE "uboot.env" 12 | #define CONFIG_CMD_EXT4 1 13 | #define CONFIG_SMBIOS 1 14 | #define CONFIG_TOOLS_FIT_PRINT 1 15 | #define CONFIG_SYS_ARM_MMU 1 16 | #define CONFIG_SYS_THUMB_BUILD 1 17 | #define CONFIG_SYS_MAXARGS 16 18 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 19 | #define CONFIG_VIDEO_BPP8 1 20 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 21 | #define CONFIG_LOGLEVEL 4 22 | #define CONFIG_CMD_USB 1 23 | #define CONFIG_SYS_MALLOC_LEN 0x4020000 24 | #define CONFIG_OF_BOARD_SETUP 1 25 | #define CONFIG_ZLIB 1 26 | #define CONFIG_SPL_SIZE_LIMIT 0x0 27 | #define CONFIG_EFI_DT_FIXUP 1 28 | #define CONFIG_ARP_TIMEOUT 5000 29 | #define CONFIG_LIB_ELF 1 30 | #define CONFIG_OF_LIBFDT 1 31 | #define CONFIG_CMD_EDITENV 1 32 | #define CONFIG_BOOTDEV_ETH 1 33 | #define CONFIG_SPL_USE_ARCH_MEMSET 1 34 | #define CONFIG_PINCONF_RECURSIVE 1 35 | #define CONFIG_PREBOOT "usb start" 36 | #define CONFIG_SUNXI_DRAM_DDR3_1333 1 37 | #define CONFIG_SYSRESET_CMD_RESET 1 38 | #define CONFIG_SPL_FRAMEWORK 1 39 | #define CONFIG_LMB_USE_MAX_REGIONS 1 40 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 41 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x15 42 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 43 | #define CONFIG_USE_ARCH_MEMCPY 1 44 | #define CONFIG_BLK 1 45 | #define CONFIG_SYS_SRAM_SIZE 0x0 46 | #define CONFIG_USB 1 47 | #define CONFIG_ARM_ASM_UNIFIED 1 48 | #define CONFIG_OF_LIBFDT_OVERLAY 1 49 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 50 | #define CONFIG_USB_HUB_DEBOUNCE_TIMEOUT 1000 51 | #define CONFIG_OF_SEPARATE 1 52 | #define CONFIG_CONSOLE_MUX 1 53 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 54 | #define CONFIG_DISPLAY 1 55 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 56 | #define CONFIG_GZIP 1 57 | #define CONFIG_NR_DRAM_BANKS 1 58 | #define CONFIG_SHA1 1 59 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x0 60 | #define CONFIG_DM_REGULATOR 1 61 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 62 | #define CONFIG_WDT_SUNXI 1 63 | #define CONFIG_ARMV7_SECURE_MAX_SIZE 0x3c00 64 | #define CONFIG_HASH 1 65 | #define CONFIG_CMD_CONSOLE 1 66 | #define CONFIG_CMD_BOOTD 1 67 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 68 | #define CONFIG_SYS_NS16550 1 69 | #define CONFIG_MMC_SUNXI 1 70 | #define CONFIG_SYS_CLK_FREQ 1008000000 71 | #define CONFIG_SDP_LOADADDR 0x0 72 | #define CONFIG_DEFAULT_FDT_FILE "" 73 | #define CONFIG_SPL_SYS_MALLOC_F 1 74 | #define CONFIG_OF_TRANSLATE 1 75 | #define CONFIG_USB1_VBUS_PIN "" 76 | #define CONFIG_SYS_MONITOR_LEN 786432 77 | #define CONFIG_USB0_VBUS_DET "" 78 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 79 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 80 | #define CONFIG_USB2_VBUS_PIN "" 81 | #define CONFIG_USE_PREBOOT 1 82 | #define CONFIG_SPL_SPRINTF 1 83 | #define CONFIG_HAVE_PRIVATE_LIBGCC 1 84 | #define CONFIG_BOOTM_PLAN9 1 85 | #define CONFIG_SYS_MMC_ENV_PART 0 86 | #define CONFIG_CMD_BDI 1 87 | #define CONFIG_VIDEO_ANSI 1 88 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 89 | #define CONFIG_ARM 1 90 | #define CONFIG_CREATE_ARCH_SYMLINK 1 91 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 92 | #define CONFIG_SPL_SYS_THUMB_BUILD 1 93 | #define CONFIG_DM_SEQ_ALIAS 1 94 | #define CONFIG_SYS_RX_ETH_BUFFER 4 95 | #define CONFIG_PRE_CONSOLE_BUFFER 1 96 | #define CONFIG_USB_STORAGE 1 97 | #define CONFIG_GMAC_TX_DELAY 0 98 | #define CONFIG_OF_REAL 1 99 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 100 | #define CONFIG_SYS_I2C_SPEED 100000 101 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 102 | #define CONFIG_CMD_SLEEP 1 103 | #define CONFIG_EFI_LOADER 1 104 | #define CONFIG_CMD_PING 1 105 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 106 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 107 | #define CONFIG_PRE_CON_BUF_SZ 4096 108 | #define CONFIG_OF_LIST "sun8i-h3-orangepi-pc" 109 | #define CONFIG_CMD_SAVEENV 1 110 | #define CONFIG_ARCH_SUPPORTS_LTO 1 111 | #define CONFIG_SUNXI_DRAM_DW_32BIT 1 112 | #define CONFIG_SYSRESET 1 113 | #define CONFIG_CLK 1 114 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 115 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 116 | #define CONFIG_BINMAN 1 117 | #define CONFIG_SYS_STDIO_DEREGISTER 1 118 | #define CONFIG_SPL_MAX_SIZE 0x5fa0 119 | #define CONFIG_DM_REGULATOR_FIXED 1 120 | #define CONFIG_USB_EHCI_HCD 1 121 | #define CONFIG_SYS_CPU "armv7" 122 | #define CONFIG_ARMV7_SECURE_BASE 0x00044000 123 | #define CONFIG_FIT_FULL_CHECK 1 124 | #define CONFIG_NETDEVICES 1 125 | #define CONFIG_PHY_RESET_DELAY 0 126 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV 1 127 | #define CONFIG_SPL_POWER 1 128 | #define CONFIG_PHY_SUN4I_USB 1 129 | #define CONFIG_TOOLS_FIT 1 130 | #define CONFIG_BOOTP_PXE 1 131 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 132 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 133 | #define CONFIG_CMD_BOOTFLOW 1 134 | #define CONFIG_POWER 1 135 | #define CONFIG_DM_MMC 1 136 | #define CONFIG_CC_HAS_ASM_INLINE 1 137 | #define CONFIG_USE_PRIVATE_LIBGCC 1 138 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 139 | #define CONFIG_BUILD_TARGET "" 140 | #define CONFIG_SUNXI_DRAM_DW 1 141 | #define CONFIG_EFI_LOADER_HII 1 142 | #define CONFIG_DM_SERIAL 1 143 | #define CONFIG_USB_EHCI_GENERIC 1 144 | #define CONFIG_USB_KEYBOARD_FN_KEYS 1 145 | #define CONFIG_ETH 1 146 | #define CONFIG_DM_I2C 1 147 | #define CONFIG_PXE_UTILS 1 148 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 149 | #define CONFIG_USB0_ID_DET "" 150 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 151 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 152 | #define CONFIG_REGEX 1 153 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 154 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 155 | #define CONFIG_DOS_PARTITION 1 156 | #define CONFIG_PINCONF 1 157 | #define CONFIG_PHY_ADDR 1 158 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 159 | #define CONFIG_CMD_ENV_EXISTS 1 160 | #define CONFIG_USB_OHCI_HCD 1 161 | #define CONFIG_IMX_DCD_ADDR 0x00910000 162 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 163 | #define CONFIG_BOOT_DEFAULTS 1 164 | #define CONFIG_SPL_STACK 0x8000 165 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 166 | #define CONFIG_TEXT_BASE 0x4a000000 167 | #define CONFIG_ENV_SIZE 0x10000 168 | #define CONFIG_STACK_SIZE 0x1000000 169 | #define CONFIG_FIT_PRINT 1 170 | #define CONFIG_IDENT_STRING " Allwinner Technology" 171 | #define CONFIG_CLK_SUN8I_H3 1 172 | #define CONFIG_SYS_MMC_ENV_DEV 0 173 | #define CONFIG_BOOTP_DNS 1 174 | #define CONFIG_CMDLINE_EDITING 1 175 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 176 | #define CONFIG_CMD_SETEXPR 1 177 | #define CONFIG_BOOTM_EFI 1 178 | #define CONFIG_VIDEO 1 179 | #define CONFIG_BOOTMETH_EFILOADER 1 180 | #define CONFIG_DM_DEVICE_REMOVE 1 181 | #define CONFIG_SYS_UBOOT_START 0x4a000000 182 | #define CONFIG_PLATFORM_ELFENTRY "_start" 183 | #define CONFIG_VIDEO_LOGO 1 184 | #define CONFIG_TOOLS_MD5 1 185 | #define CONFIG_CLK_SUNXI 1 186 | #define CONFIG_TOOLS_SHA1 1 187 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 188 | #define CONFIG_SYS_CACHELINE_SIZE 64 189 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 190 | #define CONFIG_CMD_EXPORTENV 1 191 | #define CONFIG_CMD_MMC 1 192 | #define CONFIG_DM_EVENT 1 193 | #define CONFIG_DM_DEV_READ_INLINE 1 194 | #define CONFIG_PINCTRL 1 195 | #define CONFIG_PINCTRL_SUN8I_H3 1 196 | #define CONFIG_BACKLIGHT 1 197 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 198 | #define CONFIG_CMD_RANDOM 1 199 | #define CONFIG_WDT 1 200 | #define CONFIG_USB_GADGET 1 201 | #define CONFIG_SYS_BOOTM_LEN 0x800000 202 | #define CONFIG_ARCH_SUNXI 1 203 | #define CONFIG_BOOTM_VXWORKS 1 204 | #define CONFIG_BOOTM_LINUX 1 205 | #define CONFIG_DM_REGULATOR_COMMON 1 206 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 256 207 | #define CONFIG_CMD_DHCP 1 208 | #define CONFIG_FS_FAT 1 209 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 210 | #define CONFIG_BOOTP_HOSTNAME 1 211 | #define CONFIG_DM_ETH 1 212 | #define CONFIG_BINMAN_FDT 1 213 | #define CONFIG_EFI_PARTITION 1 214 | #define CONFIG_CMD_PART 1 215 | #define CONFIG_AUTO_COMPLETE 1 216 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 217 | #define CONFIG_SPL_SERIAL_PRESENT 1 218 | #define CONFIG_SIMPLE_BUS 1 219 | #define CONFIG_VIDEO_LOGO_MAX_SIZE 0x100000 220 | #define CONFIG_PINCTRL_SUNXI 1 221 | #define CONFIG_CLANG_VERSION 0 222 | #define CONFIG_SYS_NS16550_REG_SIZE -4 223 | #define CONFIG_CMD_CYCLIC 1 224 | #define CONFIG_CMD_CRC32 1 225 | #define CONFIG_SPL_GPIO 1 226 | #define CONFIG_PHY_GIGE 1 227 | #define CONFIG_PRINTF 1 228 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 229 | #define CONFIG_I2C 1 230 | #define CONFIG_VIDEO_BMP_RLE8 1 231 | #define CONFIG_BOOTP_BOOTPATH 1 232 | #define CONFIG_SYS_BOARD "sunxi" 233 | #define CONFIG_CMD_I2C 1 234 | #define CONFIG_BOOTM_NETBSD 1 235 | #define CONFIG_RESET_SUNXI 1 236 | #define CONFIG_NET_RETRY_COUNT 5 237 | #define CONFIG_TOOLS_CRC32 1 238 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 239 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 240 | #define CONFIG_CONSOLE_NORMAL 1 241 | #define CONFIG_SYS_CONFIG_NAME "sun8i" 242 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 243 | #define CONFIG_SUN6I_PRCM 1 244 | #define CONFIG_CMD_BOOTP 1 245 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 246 | #define CONFIG_CRC8 1 247 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 248 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 249 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 250 | #define CONFIG_DM_GPIO 1 251 | #define CONFIG_WATCHDOG 1 252 | #define CONFIG_MMC_QUIRKS 1 253 | #define CONFIG_SIMPLE_PANEL 1 254 | #define CONFIG_ARMV7_VIRT 1 255 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 256 | #define CONFIG_TOOLS_SHA256 1 257 | #define CONFIG_USE_ARCH_MEMSET 1 258 | #define CONFIG_I2C_EDID 1 259 | #define CONFIG_EXPO 1 260 | #define CONFIG_NET 1 261 | #define CONFIG_SHA256 1 262 | #define CONFIG_PINMUX 1 263 | #define CONFIG_DM_RESET 1 264 | #define CONFIG_DM_WARN 1 265 | #define CONFIG_BOOTP_SUBNETMASK 1 266 | #define CONFIG_SPL_USE_TINY_PRINTF 1 267 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 268 | #define CONFIG_CMD_VIDCONSOLE 1 269 | #define CONFIG_SUNXI_GPIO 1 270 | #define CONFIG_SYS_CBSIZE 1024 271 | #define CONFIG_SPL_I2C 1 272 | #define CONFIG_USB0_VBUS_PIN "" 273 | #define CONFIG_PARTITION_UUIDS 1 274 | #define CONFIG_HAS_ARMV7_SECURE_BASE 1 275 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 276 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 277 | #define CONFIG_VIDEO_PCI_DEFAULT_FB_SIZE 0x0 278 | #define CONFIG_SYS_ARM_CACHE_CP15 1 279 | #define CONFIG_CMD_GO 1 280 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 281 | #define CONFIG_VIDEO_DE2 1 282 | #define CONFIG_EFI_CAPSULE_MAX 15 283 | #define CONFIG_ENV_SOURCE_FILE "" 284 | #define CONFIG_ISO_PARTITION 1 285 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 286 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 287 | #define CONFIG_SY8106A_VOUT1_VOLT 1200 288 | #define CONFIG_CPU_V7_HAS_VIRT 1 289 | #define CONFIG_EVENT_DYNAMIC 1 290 | #define CONFIG_VIDEO_DW_HDMI 1 291 | #define CONFIG_BOOTDELAY 2 292 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 293 | #define CONFIG_CMD_IMI 1 294 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 295 | #define CONFIG_GPIO 1 296 | #define CONFIG_SYS_HZ 1000 297 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 298 | #define CONFIG_DEVICE_TREE_INCLUDES "" 299 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 300 | #define CONFIG_CMD_FS_GENERIC 1 301 | #define CONFIG_SPL_LEGACY_BLOCK 1 302 | #define CONFIG_SPRINTF 1 303 | #define CONFIG_SUPPORT_OF_CONTROL 1 304 | #define CONFIG_CMD_BLOCK_CACHE 1 305 | #define CONFIG_SPL_ARMV7_SET_CORTEX_SMPEN 1 306 | #define CONFIG_DISTRO_DEFAULTS 1 307 | #define CONFIG_SYS_LONGHELP 1 308 | #define CONFIG_BOOTMETH_VBE 1 309 | #define CONFIG_ENV_MIN_ENTRIES 64 310 | #define CONFIG_CMD_EXT2 1 311 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 312 | #define CONFIG_ARMV7_PSCI_0_1 1 313 | #define CONFIG_CLK_SUN6I_A31_R 1 314 | #define CONFIG_DRAM_ODT_EN 1 315 | #define CONFIG_LAST_STAGE_INIT 1 316 | #define CONFIG_DM_STDIO 1 317 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 318 | #define CONFIG_PREBOOT_DEFINED 1 319 | #define CONFIG_CONSOLE_SCROLL_LINES 1 320 | #define CONFIG_LOCALVERSION "" 321 | #define CONFIG_SERIAL 1 322 | #define CONFIG_SPL_STRTO 1 323 | #define CONFIG_SUPPORT_SPL 1 324 | #define CONFIG_CMDLINE 1 325 | #define CONFIG_DTOC 1 326 | #define CONFIG_SY8106A_POWER 1 327 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 328 | #define CONFIG_SPL_BANNER_PRINT 1 329 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 330 | #define CONFIG_CMD_LOADB 1 331 | #define CONFIG_CMD_RUN 1 332 | #define CONFIG_CMD_PINMUX 1 333 | #define CONFIG_USB_KEYBOARD 1 334 | #define CONFIG_SUN8I_EMAC 1 335 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 336 | #define CONFIG_SYS_PROMPT "=> " 337 | #define CONFIG_LINKER_LIST_ALIGN 4 338 | #define CONFIG_CMD_MEMORY 1 339 | #define CONFIG_HUSH_PARSER 1 340 | #define CONFIG_SUNXI_DRAM_DDR3 1 341 | #define CONFIG_CMD_BOOTZ 1 342 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 343 | #define CONFIG_SPL_MMC 1 344 | #define CONFIG_BOARD_LATE_INIT 1 345 | #define CONFIG_CMD_XIMG 1 346 | #define CONFIG_CMD_ECHO 1 347 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 348 | #define CONFIG_SPL 1 349 | #define CONFIG_TOOLS_FIT_VERBOSE 1 350 | #define CONFIG_USB_OHCI_NEW 1 351 | #define CONFIG_PHYLIB 1 352 | #define CONFIG_MMC_WRITE 1 353 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 354 | #define CONFIG_LOCALVERSION_AUTO 1 355 | #define CONFIG_COUNTER_FREQUENCY 24000000 356 | #define CONFIG_DRAM_CLK 624 357 | #define CONFIG_PHY_ADDR_ENABLE 1 358 | #define CONFIG_ARMV7_PSCI 1 359 | #define CONFIG_SYS_SRAM_BASE 0x0 360 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 361 | #define CONFIG_SPL_LEGACY_IMAGE_FORMAT 1 362 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 363 | #define CONFIG_MMC_HW_PARTITIONING 1 364 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 365 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 366 | #define CONFIG_SYS_ARCH "arm" 367 | #define CONFIG_CYCLIC 1 368 | #define CONFIG_MD5 1 369 | #define CONFIG_SYS_I2C_MVTWSI 1 370 | #define CONFIG_CMD_DM 1 371 | #define CONFIG_PINCTRL_SUN8I_H3_R 1 372 | #define CONFIG_USB_HOST 1 373 | #define CONFIG_SPL_BSS_LIMIT 1 374 | #define CONFIG_LIB_UUID 1 375 | #define CONFIG_ARMV7_LPAE 1 376 | #define CONFIG_SYS_CACHE_SHIFT_6 1 377 | #define CONFIG_SUPPORT_ACPI 1 378 | #define CONFIG_HAS_VBAR 1 379 | #define CONFIG_SPL_SERIAL 1 380 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 381 | #define CONFIG_USE_BOOTCOMMAND 1 382 | #define CONFIG_CPU_V7A 1 383 | #define CONFIG_LMB 1 384 | #define CONFIG_EXPERT 1 385 | #define CONFIG_CMD_EFICONFIG 1 386 | #define CONFIG_BOOTMETH_EXTLINUX 1 387 | #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE 1 388 | #define CONFIG_MMC_VERBOSE 1 389 | #define CONFIG_SYS_SOC "sunxi" 390 | #define CONFIG_BOOTMETH_GLOBAL 1 391 | #define CONFIG_MMC 1 392 | #define CONFIG_BAUDRATE 115200 393 | #define CONFIG_CHARSET 1 394 | #define CONFIG_EVENT 1 395 | #define CONFIG_ARMV7_NONSEC 1 396 | #define CONFIG_SPL_SEPARATE_BSS 1 397 | #define CONFIG_SYS_SPD_BUS_NUM 0 398 | #define CONFIG_ARCH_SUPPORT_PSCI 1 399 | #define CONFIG_CC_IS_GCC 1 400 | #define CONFIG_MISC_INIT_R 1 401 | #define CONFIG_SPL_TARGET "" 402 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 403 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 404 | #define CONFIG_SPL_SHA1 1 405 | #define CONFIG_FAT_WRITE 1 406 | #define CONFIG_VIDEO_BPP16 1 407 | #define CONFIG_PARTITIONS 1 408 | #define CONFIG_CMD_ITEST 1 409 | #define CONFIG_LMB_MAX_REGIONS 16 410 | #define CONFIG_DISPLAY_CPUINFO 1 411 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv7" 412 | #define CONFIG_SYS_I2C_SLAVE 0xfe 413 | #define CONFIG_CMD_GPIO 1 414 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 415 | #define CONFIG_DM_USB 1 416 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 417 | #define CONFIG_PHY 1 418 | #define CONFIG_SERIAL_PRESENT 1 419 | #define CONFIG_OF_CONTROL 1 420 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 421 | #define CONFIG_SYS_WHITE_ON_BLACK 1 422 | #define CONFIG_FS_EXT4 1 423 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" 424 | #define CONFIG_CMD_FDT 1 425 | #define CONFIG_SYS_DEVICE_NULLDEV 1 426 | #define CONFIG_VIDEO_FONT_8X16 1 427 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 428 | #define CONFIG_CMD_LOADS 1 429 | #define CONFIG_VIDEO_DT_SIMPLEFB 1 430 | #define CONFIG_CMD_FAT 1 431 | #define CONFIG_TOOLS_LIBCRYPTO 1 432 | #define CONFIG_SUNXI_DE2 1 433 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 434 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 435 | #define CONFIG_BLOCK_CACHE 1 436 | #define CONFIG_SPL_SHA256 1 437 | #define CONFIG_PYLIBFDT 1 438 | #define CONFIG_CPU_V7_HAS_NONSEC 1 439 | #define CONFIG_TOOLS_OF_LIBFDT 1 440 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 441 | #define CONFIG_SPL_SYS_I2C_LEGACY 1 442 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 443 | #define CONFIG_SYS_XTRACE 1 444 | #define CONFIG_GCC_VERSION 90400 445 | #define CONFIG_HAVE_TEXT_BASE 1 446 | #define CONFIG_CMD_NET 1 447 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 448 | #define CONFIG_MENU 1 449 | #define CONFIG_LIB_RAND 1 450 | #define CONFIG_BOOTSTD 1 451 | #define CONFIG_CONS_INDEX 1 452 | #define CONFIG_DEFAULT_DEVICE_TREE "sun8i-h3-orangepi-pc" 453 | #define CONFIG_SPL_TEXT_BASE 0x00060 454 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 455 | #define CONFIG_NET_TFTP_VARS 1 456 | #define CONFIG_SPL_LOGLEVEL 4 457 | #define CONFIG_CMD_MDIO 1 458 | #define CONFIG_CMD_BOOTEFI 1 459 | #define CONFIG_PANEL 1 460 | #define CONFIG_FIT 1 461 | #define CONFIG_AUTOBOOT 1 462 | #define CONFIG_ENV_MAX_ENTRIES 512 463 | #define CONFIG_VIDEO_BPP32 1 464 | #define CONFIG_FWU_NUM_BANKS 2 465 | #define CONFIG_SPL_PAD_TO 0x8000 466 | #define CONFIG_PINCTRL_FULL 1 467 | #define CONFIG_TOOLS_SHA384 1 468 | #define CONFIG_DM 1 469 | #define CONFIG_BOOTP_GATEWAY 1 470 | #define CONFIG_CMD_MII 1 471 | #define CONFIG_CMD_GPT 1 472 | #define CONFIG_DM_KEYBOARD 1 473 | #define CONFIG_HAS_THUMB2 1 474 | #define CONFIG_BOOTM_RTEMS 1 475 | #define CONFIG_USB_OHCI_GENERIC 1 476 | #define CONFIG_SYSRESET_WATCHDOG 1 477 | #define CONFIG_SYS_MALLOC_F 1 478 | #define CONFIG_CMD_CLS 1 479 | #define CONFIG_ERR_PTR_OFFSET 0x0 480 | #define CONFIG_SPL_PRINTF 1 481 | #define CONFIG_TFTP_WINDOWSIZE 1 482 | #define CONFIG_CMD_TFTPBOOT 1 483 | #define CONFIG_SUPPORT_RAW_INITRD 1 484 | #define CONFIG_SPL_USE_ARCH_MEMCPY 1 485 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 486 | #define CONFIG_CMD_IMPORTENV 1 487 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 488 | #define CONFIG_SYS_FDT_PAD 0x3000 489 | #define CONFIG_VIDEO_LCD_DCLK_PHASE 1 490 | #define CONFIG_DRAM_ZQ 3881979 491 | #define CONFIG_TFTP_BLOCKSIZE 1468 492 | #define CONFIG_STRTO 1 493 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 494 | #define CONFIG_PINCTRL_GENERIC 1 495 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 496 | #define CONFIG_MACH_SUNXI_H3_H5 1 497 | #define CONFIG_SUNXI_GEN_SUN6I 1 498 | #define CONFIG_CMD_ELF 1 499 | #define CONFIG_MACH_SUN8I 1 500 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 0 501 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0x80000000 502 | #define CONFIG_SYS_PBSIZE 1024 503 | #define CONFIG_CMD_PXE 1 504 | #define CONFIG_USB3_VBUS_PIN "" 505 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 506 | #define CONFIG_TOOLS_SHA512 1 507 | #define CONFIG_R_I2C_ENABLE 1 508 | #define CONFIG_MACH_SUN8I_H3 1 509 | #define CONFIG_RANDOM_UUID 1 510 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 511 | #define CONFIG_OF_TAG_MIGRATE 1 512 | #define CONFIG_SAVEENV 1 513 | #define CONFIG_ENV_IS_IN_FAT 1 514 | #define CONFIG_SYS_ARM_ARCH 7 515 | #define CONFIG_CMD_SOURCE 1 516 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 517 | #define CONFIG_CMD_SYSBOOT 1 518 | #define CONFIG_INPUT 1 519 | #define CONFIG_EFI_ECPT 1 520 | #define CONFIG_SPL_STACK_R 1 521 | 522 | #undef CONFIG_SPL_BANNER_PRINT 523 | #undef CONFIG_DM_SERIAL 524 | #undef CONFIG_VIDEO_DT_SIMPLEFB 525 | #ifndef DRAM_APP 526 | #undef CONFIG_SY8106A_POWER /* I2C not supported yet */ 527 | #endif 528 | #include 529 | #include -------------------------------------------------------------------------------- /src/configs/H5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_ENV_SUPPORT 1 8 | #define CONFIG_DISPLAY_BOARDINFO 1 9 | #define CONFIG_CRC32 1 10 | #define CONFIG_CMD_BOOTM 1 11 | #define CONFIG_ENV_FAT_FILE "uboot.env" 12 | #define CONFIG_CMD_EXT4 1 13 | #define CONFIG_SMBIOS 1 14 | #define CONFIG_TOOLS_FIT_PRINT 1 15 | #define CONFIG_SF_DEFAULT_MODE 0x0 16 | #define CONFIG_SYS_MAXARGS 16 17 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 18 | #define CONFIG_VIDEO_BPP8 1 19 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 20 | #define CONFIG_IMAGE_SPARSE_FILLBUF_SIZE 0x80000 21 | #define CONFIG_CMD_FASTBOOT 1 22 | #define CONFIG_LOGLEVEL 4 23 | #define CONFIG_CMD_USB 1 24 | #define CONFIG_SYS_MALLOC_LEN 0x4020000 25 | #define CONFIG_OF_BOARD_SETUP 1 26 | #define CONFIG_ZLIB 1 27 | #define CONFIG_SPL_SIZE_LIMIT 0x0 28 | #define CONFIG_EFI_DT_FIXUP 1 29 | #define CONFIG_ARP_TIMEOUT 5000 30 | #define CONFIG_LIB_ELF 1 31 | #define CONFIG_MTDIDS_DEFAULT "" 32 | #define CONFIG_OF_LIBFDT 1 33 | #define CONFIG_CMD_EDITENV 1 34 | #define CONFIG_BOOTDEV_ETH 1 35 | #define CONFIG_LZ4 1 36 | #define CONFIG_PINCONF_RECURSIVE 1 37 | #define CONFIG_PREBOOT "usb start" 38 | #define CONFIG_SUNXI_DRAM_DDR3_1333 1 39 | #define CONFIG_SYSRESET_CMD_RESET 1 40 | #define CONFIG_SPL_FRAMEWORK 1 41 | #define CONFIG_LMB_USE_MAX_REGIONS 1 42 | #define CONFIG_FASTBOOT_FLASH 1 43 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 44 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x16 45 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 46 | #define CONFIG_BLK 1 47 | #define CONFIG_SYS_SRAM_SIZE 0x0 48 | #define CONFIG_USB 1 49 | #define CONFIG_ARM_ASM_UNIFIED 1 50 | #define CONFIG_OF_LIBFDT_OVERLAY 1 51 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 52 | #define CONFIG_PSCI_RESET 1 53 | #define CONFIG_USB_HUB_DEBOUNCE_TIMEOUT 1000 54 | #define CONFIG_OF_SEPARATE 1 55 | #define CONFIG_CONSOLE_MUX 1 56 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 57 | #define CONFIG_DISPLAY 1 58 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 59 | #define CONFIG_GZIP 1 60 | #define CONFIG_NR_DRAM_BANKS 1 61 | #define CONFIG_SHA1 1 62 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x10000 63 | #define CONFIG_FASTBOOT_GPT_NAME "gpt" 64 | #define CONFIG_DM_REGULATOR 1 65 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 66 | #define CONFIG_WDT_SUNXI 1 67 | #define CONFIG_HASH 1 68 | #define CONFIG_CMD_CONSOLE 1 69 | #define CONFIG_CMD_BOOTD 1 70 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 71 | #define CONFIG_SYS_NS16550 1 72 | #define CONFIG_MMC_SUNXI 1 73 | #define CONFIG_SYS_CLK_FREQ 816000000 74 | #define CONFIG_ENV_SPI_BUS 0 75 | #define CONFIG_SDP_LOADADDR 0x0 76 | #define CONFIG_DEFAULT_FDT_FILE "" 77 | #define CONFIG_SPL_SYS_MALLOC_F 1 78 | #define CONFIG_OF_TRANSLATE 1 79 | #define CONFIG_USB1_VBUS_PIN "" 80 | #define CONFIG_SYS_MONITOR_LEN 786432 81 | #define CONFIG_USB0_VBUS_DET "" 82 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 83 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 84 | #define CONFIG_USB2_VBUS_PIN "" 85 | #define CONFIG_USE_PREBOOT 1 86 | #define CONFIG_SPL_SPRINTF 1 87 | #define CONFIG_BOOTM_PLAN9 1 88 | #define CONFIG_SYS_MMC_ENV_PART 0 89 | #define CONFIG_CMD_BDI 1 90 | #define CONFIG_VIDEO_ANSI 1 91 | #define CONFIG_ARM 1 92 | #define CONFIG_CREATE_ARCH_SYMLINK 1 93 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 94 | #define CONFIG_DM_SEQ_ALIAS 1 95 | #define CONFIG_SYS_RX_ETH_BUFFER 4 96 | #define CONFIG_PRE_CONSOLE_BUFFER 1 97 | #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT 1 98 | #define CONFIG_USB_STORAGE 1 99 | #define CONFIG_GMAC_TX_DELAY 0 100 | #define CONFIG_OF_REAL 1 101 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 102 | #define CONFIG_SYS_I2C_SPEED 100000 103 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 104 | #define CONFIG_CMD_SLEEP 1 105 | #define CONFIG_EFI_LOADER 1 106 | #define CONFIG_SPI 1 107 | #define CONFIG_CMD_PING 1 108 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 109 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 110 | #define CONFIG_PRE_CON_BUF_SZ 4096 111 | #define CONFIG_SYS_ARCH_TIMER 1 112 | #define CONFIG_OF_LIST "sun50i-h5-orangepi-pc2" 113 | #define CONFIG_CMD_SAVEENV 1 114 | #define CONFIG_ARCH_SUPPORTS_LTO 1 115 | #define CONFIG_SUNXI_DRAM_DW_32BIT 1 116 | #define CONFIG_SYSRESET 1 117 | #define CONFIG_CMD_BOOTI 1 118 | #define CONFIG_CLK 1 119 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 120 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 121 | #define CONFIG_BINMAN 1 122 | #define CONFIG_SYS_STDIO_DEREGISTER 1 123 | #define CONFIG_SPL_MAX_SIZE 0x7fa0 124 | #define CONFIG_DM_REGULATOR_FIXED 1 125 | #define CONFIG_FASTBOOT_USB_DEV 0 126 | #define CONFIG_USB_EHCI_HCD 1 127 | #define CONFIG_SYS_CPU "armv8" 128 | #define CONFIG_FIT_FULL_CHECK 1 129 | #define CONFIG_NETDEVICES 1 130 | #define CONFIG_PHY_RESET_DELAY 0 131 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV 1 132 | #define CONFIG_SPL_POWER 1 133 | #define CONFIG_PHY_SUN4I_USB 1 134 | #define CONFIG_TOOLS_FIT 1 135 | #define CONFIG_BOOTP_PXE 1 136 | #define CONFIG_FASTBOOT_FLASH_MMC_DEV 0 137 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 138 | #define CONFIG_SPL_LOAD_FIT_ADDRESS 0x0 139 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 140 | #define CONFIG_CMD_BOOTFLOW 1 141 | #define CONFIG_POWER 1 142 | #define CONFIG_DM_MMC 1 143 | #define CONFIG_CC_HAS_ASM_INLINE 1 144 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 145 | #define CONFIG_BUILD_TARGET "" 146 | #define CONFIG_SUNXI_DRAM_DW 1 147 | #define CONFIG_EFI_LOADER_HII 1 148 | #define CONFIG_DM_SERIAL 1 149 | #define CONFIG_USB_EHCI_GENERIC 1 150 | #define CONFIG_USB_KEYBOARD_FN_KEYS 1 151 | #define CONFIG_ETH 1 152 | #define CONFIG_DM_I2C 1 153 | #define CONFIG_ARM_SMCCC 1 154 | #define CONFIG_SPL_LOAD_FIT 1 155 | #define CONFIG_PXE_UTILS 1 156 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 157 | #define CONFIG_USB0_ID_DET "" 158 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 159 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 160 | #define CONFIG_REGEX 1 161 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 162 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 163 | #define CONFIG_DOS_PARTITION 1 164 | #define CONFIG_PINCONF 1 165 | #define CONFIG_PHY_ADDR 1 166 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 167 | #define CONFIG_CMD_ENV_EXISTS 1 168 | #define CONFIG_ENV_OFFSET 0xF0000 169 | #define CONFIG_SPL_FIT_IMAGE_TINY 1 170 | #define CONFIG_USB_OHCI_HCD 1 171 | #define CONFIG_IMX_DCD_ADDR 0x00910000 172 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 173 | #define CONFIG_BOOT_DEFAULTS 1 174 | #define CONFIG_SPL_STACK 0x54000 175 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 176 | #define CONFIG_TEXT_BASE 0x4a000000 177 | #define CONFIG_VPL_LZMA 1 178 | #define CONFIG_CMD_UNLZ4 1 179 | #define CONFIG_ENV_SIZE 0x10000 180 | #define CONFIG_STACK_SIZE 0x1000000 181 | #define CONFIG_FIT_PRINT 1 182 | #define CONFIG_IDENT_STRING " Allwinner Technology" 183 | #define CONFIG_MMC_SUNXI_HAS_NEW_MODE 1 184 | #define CONFIG_CLK_SUN8I_H3 1 185 | #define CONFIG_SYS_MMC_ENV_DEV 0 186 | #define CONFIG_BOOTP_DNS 1 187 | #define CONFIG_CMDLINE_EDITING 1 188 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 189 | #define CONFIG_SUNXI_RVBAR_ALTERNATIVE 0x017000a0 190 | #define CONFIG_CMD_SETEXPR 1 191 | #define CONFIG_CMD_SF 1 192 | #define CONFIG_BOOTM_EFI 1 193 | #define CONFIG_VIDEO 1 194 | #define CONFIG_BOOTMETH_EFILOADER 1 195 | #define CONFIG_DM_DEVICE_REMOVE 1 196 | #define CONFIG_SYS_UBOOT_START 0x4a000000 197 | #define CONFIG_PLATFORM_ELFENTRY "_start" 198 | #define CONFIG_VIDEO_LOGO 1 199 | #define CONFIG_TOOLS_MD5 1 200 | #define CONFIG_CLK_SUNXI 1 201 | #define CONFIG_TOOLS_SHA1 1 202 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 203 | #define CONFIG_SYS_CACHELINE_SIZE 64 204 | #define CONFIG_SPL_HASH 1 205 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 206 | #define CONFIG_CMD_EXPORTENV 1 207 | #define CONFIG_CMD_MMC 1 208 | #define CONFIG_DM_EVENT 1 209 | #define CONFIG_DM_DEV_READ_INLINE 1 210 | #define CONFIG_FASTBOOT_FLASH_MMC 1 211 | #define CONFIG_FDT_64BIT 1 212 | #define CONFIG_PINCTRL 1 213 | #define CONFIG_BACKLIGHT 1 214 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 215 | #define CONFIG_CMD_RANDOM 1 216 | #define CONFIG_WDT 1 217 | #define CONFIG_USB_MUSB_SUNXI 1 218 | #define CONFIG_USB_GADGET 1 219 | #define CONFIG_SYS_BOOTM_LEN 0x4000000 220 | #define CONFIG_USB_ETH_RNDIS 1 221 | #define CONFIG_ARCH_SUNXI 1 222 | #define CONFIG_BOOTM_VXWORKS 1 223 | #define CONFIG_BOOTM_LINUX 1 224 | #define CONFIG_DM_REGULATOR_COMMON 1 225 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 256 226 | #define CONFIG_ENV_SPI_MODE 0x0 227 | #define CONFIG_CMD_DHCP 1 228 | #define CONFIG_FS_FAT 1 229 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 230 | #define CONFIG_BOOTP_HOSTNAME 1 231 | #define CONFIG_DM_ETH 1 232 | #define CONFIG_BINMAN_FDT 1 233 | #define CONFIG_DM_SPI 1 234 | #define CONFIG_USB_MUSB_PIO_ONLY 1 235 | #define CONFIG_EFI_PARTITION 1 236 | #define CONFIG_CMD_PART 1 237 | #define CONFIG_AUTO_COMPLETE 1 238 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 239 | #define CONFIG_SPL_SERIAL_PRESENT 1 240 | #define CONFIG_ENV_ADDR 0x0 241 | #define CONFIG_SIMPLE_BUS 1 242 | #define CONFIG_SF_DEFAULT_BUS 0 243 | #define CONFIG_SPI_MEM 1 244 | #define CONFIG_VIDEO_LOGO_MAX_SIZE 0x100000 245 | #define CONFIG_PINCTRL_SUNXI 1 246 | #define CONFIG_CLANG_VERSION 0 247 | #define CONFIG_SYS_NS16550_REG_SIZE -4 248 | #define CONFIG_CMD_CYCLIC 1 249 | #define CONFIG_CMD_CRC32 1 250 | #define CONFIG_SPL_GPIO 1 251 | #define CONFIG_PHY_GIGE 1 252 | #define CONFIG_PRINTF 1 253 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 254 | #define CONFIG_ENV_IS_IN_SPI_FLASH 1 255 | #define CONFIG_I2C 1 256 | #define CONFIG_VIDEO_BMP_RLE8 1 257 | #define CONFIG_BOOTP_BOOTPATH 1 258 | #define CONFIG_SYS_BOARD "sunxi" 259 | #define CONFIG_CMD_I2C 1 260 | #define CONFIG_BOOTM_NETBSD 1 261 | #define CONFIG_RESET_SUNXI 1 262 | #define CONFIG_NET_RETRY_COUNT 5 263 | #define CONFIG_TOOLS_CRC32 1 264 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 265 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 266 | #define CONFIG_FASTBOOT 1 267 | #define CONFIG_CONSOLE_NORMAL 1 268 | #define CONFIG_SYS_CONFIG_NAME "sun8i" 269 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 270 | #define CONFIG_SUN6I_PRCM 1 271 | #define CONFIG_USB_MUSB_FIXED_CONFIGDATA 1 272 | #define CONFIG_SF_DEFAULT_CS 0 273 | #define CONFIG_CMD_BOOTP 1 274 | #define CONFIG_SPL_SPI_SUNXI 1 275 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 276 | #define CONFIG_CRC8 1 277 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 278 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 279 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 280 | #define CONFIG_DM_GPIO 1 281 | #define CONFIG_USB_GADGET_DUALSPEED 1 282 | #define CONFIG_WATCHDOG 1 283 | #define CONFIG_MMC_QUIRKS 1 284 | #define CONFIG_SIMPLE_PANEL 1 285 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 286 | #define CONFIG_SPI_FLASH 1 287 | #define CONFIG_TOOLS_SHA256 1 288 | #define CONFIG_I2C_EDID 1 289 | #define CONFIG_EXPO 1 290 | #define CONFIG_NET 1 291 | #define CONFIG_SPI_FLASH_UNLOCK_ALL 1 292 | #define CONFIG_SHA256 1 293 | #define CONFIG_PINMUX 1 294 | #define CONFIG_DM_RESET 1 295 | #define CONFIG_DM_WARN 1 296 | #define CONFIG_BOOTP_SUBNETMASK 1 297 | #define CONFIG_SPL_USE_TINY_PRINTF 1 298 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 299 | #define CONFIG_ANDROID_BOOT_IMAGE 1 300 | #define CONFIG_CMD_VIDCONSOLE 1 301 | #define CONFIG_SUNXI_GPIO 1 302 | #define CONFIG_SYS_CBSIZE 1024 303 | #define CONFIG_SPL_OF_LIBFDT 1 304 | #define CONFIG_SPL_I2C 1 305 | #define CONFIG_SPI_FLASH_SMART_HWCAPS 1 306 | #define CONFIG_USB0_VBUS_PIN "" 307 | #define CONFIG_PARTITION_UUIDS 1 308 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 309 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 310 | #define CONFIG_VIDEO_PCI_DEFAULT_FB_SIZE 0x0 311 | #define CONFIG_CMD_GO 1 312 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 313 | #define CONFIG_VIDEO_DE2 1 314 | #define CONFIG_EFI_CAPSULE_MAX 15 315 | #define CONFIG_ENV_SOURCE_FILE "" 316 | #define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:00" 317 | #define CONFIG_ISO_PARTITION 1 318 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 319 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 320 | #define CONFIG_SY8106A_VOUT1_VOLT 1100 321 | #define CONFIG_EVENT_DYNAMIC 1 322 | #define CONFIG_VIDEO_DW_HDMI 1 323 | #define CONFIG_BOOTDELAY 2 324 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 325 | #define CONFIG_CMD_IMI 1 326 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 327 | #define CONFIG_GPIO 1 328 | #define CONFIG_SYS_HZ 1000 329 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 330 | #define CONFIG_DEVICE_TREE_INCLUDES "" 331 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 332 | #define CONFIG_CMD_FS_GENERIC 1 333 | #define CONFIG_SPL_LEGACY_BLOCK 1 334 | #define CONFIG_SPRINTF 1 335 | #define CONFIG_SUPPORT_OF_CONTROL 1 336 | #define CONFIG_DMA_ADDR_T_64BIT 1 337 | #define CONFIG_CMD_BLOCK_CACHE 1 338 | #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x8000 339 | #define CONFIG_CMD_UNZIP 1 340 | #define CONFIG_DISTRO_DEFAULTS 1 341 | #define CONFIG_SYS_LONGHELP 1 342 | #define CONFIG_BOOTMETH_VBE 1 343 | #define CONFIG_ENV_MIN_ENTRIES 64 344 | #define CONFIG_CMD_EXT2 1 345 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 346 | #define CONFIG_CLK_SUN6I_A31_R 1 347 | #define CONFIG_DRAM_ODT_EN 1 348 | #define CONFIG_LAST_STAGE_INIT 1 349 | #define CONFIG_DM_STDIO 1 350 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 351 | #define CONFIG_PREBOOT_DEFINED 1 352 | #define CONFIG_CONSOLE_SCROLL_LINES 1 353 | #define CONFIG_LOCALVERSION "" 354 | #define CONFIG_SERIAL 1 355 | #define CONFIG_SPL_STRTO 1 356 | #define CONFIG_SPI_SUNXI 1 357 | #define CONFIG_USB_GADGET_DOWNLOAD 1 358 | #define CONFIG_SUPPORT_SPL 1 359 | #define CONFIG_CMDLINE 1 360 | #define CONFIG_DTOC 1 361 | #define CONFIG_SY8106A_POWER 1 362 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 363 | #define CONFIG_SPL_BANNER_PRINT 1 364 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 365 | #define CONFIG_USB_ETHER 1 366 | #define CONFIG_ARM64_SUPPORT_AARCH32 1 367 | #define CONFIG_CMD_LOADB 1 368 | #define CONFIG_CMD_RUN 1 369 | #define CONFIG_CMD_PINMUX 1 370 | #define CONFIG_USB_KEYBOARD 1 371 | #define CONFIG_ENV_SPI_CS 0 372 | #define CONFIG_FASTBOOT_BUF_ADDR 0x42000000 373 | #define CONFIG_SUN8I_EMAC 1 374 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 375 | #define CONFIG_SYS_PROMPT "=> " 376 | #define CONFIG_LINKER_LIST_ALIGN 8 377 | #define CONFIG_CMD_MEMORY 1 378 | #define CONFIG_HUSH_PARSER 1 379 | #define CONFIG_SUNXI_DRAM_DDR3 1 380 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 381 | #define CONFIG_SPL_MMC 1 382 | #define CONFIG_USB_MUSB_GADGET 1 383 | #define CONFIG_ARM64_CRC32 1 384 | #define CONFIG_BOARD_LATE_INIT 1 385 | #define CONFIG_FASTBOOT_MBR_NAME "mbr" 386 | #define CONFIG_CMD_XIMG 1 387 | #define CONFIG_CMD_ECHO 1 388 | #define CONFIG_FASTBOOT_BUF_SIZE 0x2000000 389 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 390 | #define CONFIG_SPL 1 391 | #define CONFIG_TOOLS_FIT_VERBOSE 1 392 | #define CONFIG_USB_OHCI_NEW 1 393 | #define CONFIG_PHYLIB 1 394 | #define CONFIG_MMC_WRITE 1 395 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 396 | #define CONFIG_LOCALVERSION_AUTO 1 397 | #define CONFIG_COUNTER_FREQUENCY 24000000 398 | #define CONFIG_DRAM_CLK 672 399 | #define CONFIG_PHY_ADDR_ENABLE 1 400 | #define CONFIG_SYS_SRAM_BASE 0x0 401 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 402 | #define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01" 403 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 404 | #define CONFIG_MMC_HW_PARTITIONING 1 405 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 406 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 407 | #define CONFIG_SYS_ARCH "arm" 408 | #define CONFIG_CYCLIC 1 409 | #define CONFIG_MD5 1 410 | #define CONFIG_SYS_I2C_MVTWSI 1 411 | #define CONFIG_CMD_DM 1 412 | #define CONFIG_PINCTRL_SUN8I_H3_R 1 413 | #define CONFIG_ARM_BOOT_HOOK_RMR 1 414 | #define CONFIG_USB_HOST 1 415 | #define CONFIG_SPL_BSS_LIMIT 1 416 | #define CONFIG_LIB_UUID 1 417 | #define CONFIG_SYS_CACHE_SHIFT_6 1 418 | #define CONFIG_PHYS_64BIT 1 419 | #define CONFIG_STATIC_RELA 1 420 | #define CONFIG_SUPPORT_ACPI 1 421 | #define CONFIG_SPL_SERIAL 1 422 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 423 | #define CONFIG_USE_BOOTCOMMAND 1 424 | #define CONFIG_LMB 1 425 | #define CONFIG_EXPERT 1 426 | #define CONFIG_CMD_EFICONFIG 1 427 | #define CONFIG_BOOTMETH_EXTLINUX 1 428 | #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE 1 429 | #define CONFIG_CMD_LZMADEC 1 430 | #define CONFIG_MMC_VERBOSE 1 431 | #define CONFIG_CAAM_64BIT 1 432 | #define CONFIG_SYS_SOC "sunxi" 433 | #define CONFIG_BOOTMETH_GLOBAL 1 434 | #define CONFIG_MMC 1 435 | #define CONFIG_BAUDRATE 115200 436 | #define CONFIG_CHARSET 1 437 | #define CONFIG_EVENT 1 438 | #define CONFIG_SPL_SEPARATE_BSS 1 439 | #define CONFIG_SYS_SPD_BUS_NUM 0 440 | #define CONFIG_CC_IS_GCC 1 441 | #define CONFIG_MISC_INIT_R 1 442 | #define CONFIG_SPL_TARGET "" 443 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 444 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 445 | #define CONFIG_SPL_SHA1 1 446 | #define CONFIG_FAT_WRITE 1 447 | #define CONFIG_VIDEO_BPP16 1 448 | #define CONFIG_PARTITIONS 1 449 | #define CONFIG_CMD_ITEST 1 450 | #define CONFIG_LMB_MAX_REGIONS 16 451 | #define CONFIG_PINCTRL_SUN50I_H5 1 452 | #define CONFIG_DISPLAY_CPUINFO 1 453 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv8" 454 | #define CONFIG_DM_SPI_FLASH 1 455 | #define CONFIG_EFI_HAVE_RUNTIME_RESET 1 456 | #define CONFIG_SYS_I2C_SLAVE 0xfe 457 | #define CONFIG_CMD_GPIO 1 458 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 459 | #define CONFIG_DM_USB 1 460 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 461 | #define CONFIG_PHY 1 462 | #define CONFIG_SERIAL_PRESENT 1 463 | #define CONFIG_ARM_PSCI_FW 1 464 | #define CONFIG_OF_CONTROL 1 465 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 466 | #define CONFIG_SYS_WHITE_ON_BLACK 1 467 | #define CONFIG_FS_EXT4 1 468 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv8/u-boot-spl.lds" 469 | #define CONFIG_CMD_FDT 1 470 | #define CONFIG_ENV_SECT_SIZE 0x10000 471 | #define CONFIG_SYS_DEVICE_NULLDEV 1 472 | #define CONFIG_VIDEO_FONT_8X16 1 473 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 474 | #define CONFIG_CMD_LOADS 1 475 | #define CONFIG_VIDEO_DT_SIMPLEFB 1 476 | #define CONFIG_CMD_FAT 1 477 | #define CONFIG_MACH_SUN50I_H5 1 478 | #define CONFIG_USB_FUNCTION_FASTBOOT 1 479 | #define CONFIG_SPI_FLASH_MACRONIX 1 480 | #define CONFIG_TOOLS_LIBCRYPTO 1 481 | #define CONFIG_SUNXI_DE2 1 482 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 483 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 484 | #define CONFIG_SUNXI_RVBAR_ADDRESS 0x017000a0 485 | #define CONFIG_BLOCK_CACHE 1 486 | #define CONFIG_SPL_SHA256 1 487 | #define CONFIG_SPL_FIT 1 488 | #define CONFIG_PYLIBFDT 1 489 | #define CONFIG_TOOLS_OF_LIBFDT 1 490 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 491 | #define CONFIG_SPL_SYS_I2C_LEGACY 1 492 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 493 | #define CONFIG_SYS_XTRACE 1 494 | #define CONFIG_GCC_VERSION 110200 495 | #define CONFIG_HAVE_TEXT_BASE 1 496 | #define CONFIG_CMD_NET 1 497 | #define CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK 1 498 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 499 | #define CONFIG_MENU 1 500 | #define CONFIG_LIB_RAND 1 501 | #define CONFIG_BOOTSTD 1 502 | #define CONFIG_CONS_INDEX 1 503 | #define CONFIG_DEFAULT_DEVICE_TREE "sun50i-h5-orangepi-pc2" 504 | #define CONFIG_SPL_TEXT_BASE 0x10060 505 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 506 | #define CONFIG_NET_TFTP_VARS 1 507 | #define CONFIG_FIRMWARE 1 508 | #define CONFIG_SPL_LOGLEVEL 4 509 | #define CONFIG_SPI_FLASH_USE_4K_SECTORS 1 510 | #define CONFIG_CMD_MDIO 1 511 | #define CONFIG_CMD_BOOTEFI 1 512 | #define CONFIG_PANEL 1 513 | #define CONFIG_FIT 1 514 | #define CONFIG_AUTOBOOT 1 515 | #define CONFIG_ENV_MAX_ENTRIES 512 516 | #define CONFIG_VIDEO_BPP32 1 517 | #define CONFIG_FWU_NUM_BANKS 2 518 | #define CONFIG_SPL_PAD_TO 0x8000 519 | #define CONFIG_PINCTRL_FULL 1 520 | #define CONFIG_TOOLS_SHA384 1 521 | #define CONFIG_DM 1 522 | #define CONFIG_BOOTP_GATEWAY 1 523 | #define CONFIG_CMD_MII 1 524 | #define CONFIG_CMD_GPT 1 525 | #define CONFIG_DM_KEYBOARD 1 526 | #define CONFIG_SPL_FIT_SOURCE "" 527 | #define CONFIG_BOOTM_RTEMS 1 528 | #define CONFIG_USB_OHCI_GENERIC 1 529 | #define CONFIG_SYSRESET_WATCHDOG 1 530 | #define CONFIG_ENV_SPI_MAX_HZ 1000000 531 | #define CONFIG_ARM64 1 532 | #define CONFIG_LZMA 1 533 | #define CONFIG_SYS_MALLOC_F 1 534 | #define CONFIG_CMD_CLS 1 535 | #define CONFIG_ERR_PTR_OFFSET 0x0 536 | #define CONFIG_SPL_PRINTF 1 537 | #define CONFIG_TFTP_WINDOWSIZE 1 538 | #define CONFIG_CMD_BIND 1 539 | #define CONFIG_CMD_TFTPBOOT 1 540 | #define CONFIG_SUPPORT_RAW_INITRD 1 541 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 542 | #define CONFIG_CMD_IMPORTENV 1 543 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 544 | #define CONFIG_SYS_FDT_PAD 0x3000 545 | #define CONFIG_VIDEO_LCD_DCLK_PHASE 1 546 | #define CONFIG_DRAM_ZQ 3881977 547 | #define CONFIG_TFTP_BLOCKSIZE 1468 548 | #define CONFIG_STRTO 1 549 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 550 | #define CONFIG_PINCTRL_GENERIC 1 551 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 552 | #define CONFIG_MACH_SUNXI_H3_H5 1 553 | #define CONFIG_SUNXI_GEN_SUN6I 1 554 | #define CONFIG_MTDPARTS_DEFAULT "" 555 | #define CONFIG_CMD_ELF 1 556 | #define CONFIG_MACH_SUN8I 1 557 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 0 558 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0xC0000000 559 | #define CONFIG_SYS_PBSIZE 1024 560 | #define CONFIG_CMD_PXE 1 561 | #define CONFIG_USB3_VBUS_PIN "" 562 | #define CONFIG_IMAGE_SPARSE 1 563 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 564 | #define CONFIG_SF_DEFAULT_SPEED 1000000 565 | #define CONFIG_TOOLS_SHA512 1 566 | #define CONFIG_R_I2C_ENABLE 1 567 | #define CONFIG_RANDOM_UUID 1 568 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 569 | #define CONFIG_OF_TAG_MIGRATE 1 570 | #define CONFIG_SAVEENV 1 571 | #define CONFIG_ENV_IS_IN_FAT 1 572 | #define CONFIG_SYS_ARM_ARCH 8 573 | #define CONFIG_CMD_SOURCE 1 574 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 575 | #define CONFIG_CMD_SYSBOOT 1 576 | #define CONFIG_INPUT 1 577 | #define CONFIG_EFI_ECPT 1 578 | #define CONFIG_SPL_STACK_R 1 579 | 580 | #undef CONFIG_SPL_BANNER_PRINT 581 | #undef CONFIG_DM_SERIAL 582 | #undef CONFIG_USB_ETHER 583 | #undef CONFIG_VIDEO_DT_SIMPLEFB 584 | #undef CONFIG_SPL_LOAD_FIT 585 | #ifndef DRAM_APP 586 | #undef CONFIG_SY8106A_POWER /* I2C not supported yet */ 587 | #endif 588 | #define __LINUX_ARM_ARCH__ 7 589 | #include 590 | #include -------------------------------------------------------------------------------- /src/configs/H6.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_ENV_SUPPORT 1 8 | #define CONFIG_DISPLAY_BOARDINFO 1 9 | #define CONFIG_CRC32 1 10 | #define CONFIG_CMD_BOOTM 1 11 | #define CONFIG_ENV_FAT_FILE "uboot.env" 12 | #define CONFIG_CMD_EXT4 1 13 | #define CONFIG_SMBIOS 1 14 | #define CONFIG_TOOLS_FIT_PRINT 1 15 | #define CONFIG_SYS_MAXARGS 16 16 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 17 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 18 | #define CONFIG_LOGLEVEL 4 19 | #define CONFIG_CMD_USB 1 20 | #define CONFIG_SYS_MALLOC_LEN 0x4020000 21 | #define CONFIG_OF_BOARD_SETUP 1 22 | #define CONFIG_ZLIB 1 23 | #define CONFIG_SPL_SIZE_LIMIT 0x0 24 | #define CONFIG_EFI_DT_FIXUP 1 25 | #define CONFIG_ARP_TIMEOUT 5000 26 | #define CONFIG_LIB_ELF 1 27 | #define CONFIG_OF_LIBFDT 1 28 | #define CONFIG_CMD_EDITENV 1 29 | #define CONFIG_BOOTDEV_ETH 1 30 | #define CONFIG_LZ4 1 31 | #define CONFIG_PINCONF_RECURSIVE 1 32 | #define CONFIG_PREBOOT "usb start" 33 | #define CONFIG_SYSRESET_CMD_RESET 1 34 | #define CONFIG_SPL_FRAMEWORK 1 35 | #define CONFIG_LMB_USE_MAX_REGIONS 1 36 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 37 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x16 38 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 39 | #define CONFIG_BLK 1 40 | #define CONFIG_SYS_SRAM_SIZE 0x0 41 | #define CONFIG_USB 1 42 | #define CONFIG_ARM_ASM_UNIFIED 1 43 | #define CONFIG_OF_LIBFDT_OVERLAY 1 44 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 45 | #define CONFIG_USB_HUB_DEBOUNCE_TIMEOUT 1000 46 | #define CONFIG_OF_SEPARATE 1 47 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 48 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 49 | #define CONFIG_GZIP 1 50 | #define CONFIG_NR_DRAM_BANKS 1 51 | #define CONFIG_SHA1 1 52 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x20000 53 | #define CONFIG_DM_REGULATOR 1 54 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 55 | #define CONFIG_MACH_SUN50I_H6 1 56 | #define CONFIG_WDT_SUNXI 1 57 | #define CONFIG_HASH 1 58 | #define CONFIG_CMD_CONSOLE 1 59 | #define CONFIG_CMD_BOOTD 1 60 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 61 | #define CONFIG_SYS_NS16550 1 62 | #define CONFIG_MMC_SUNXI 1 63 | #define CONFIG_SYS_CLK_FREQ 888000000 64 | #define CONFIG_SDP_LOADADDR 0x0 65 | #define CONFIG_DEFAULT_FDT_FILE "" 66 | #define CONFIG_SPL_SYS_MALLOC_F 1 67 | #define CONFIG_OF_TRANSLATE 1 68 | #define CONFIG_USB1_VBUS_PIN "" 69 | #define CONFIG_SYS_MONITOR_LEN 786432 70 | #define CONFIG_USB0_VBUS_DET "" 71 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 72 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 73 | #define CONFIG_USB2_VBUS_PIN "" 74 | #define CONFIG_USE_PREBOOT 1 75 | #define CONFIG_SPL_SPRINTF 1 76 | #define CONFIG_BOOTM_PLAN9 1 77 | #define CONFIG_SYS_MMC_ENV_PART 0 78 | #define CONFIG_CMD_BDI 1 79 | #define CONFIG_ARM 1 80 | #define CONFIG_CREATE_ARCH_SYMLINK 1 81 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 82 | #define CONFIG_DM_SEQ_ALIAS 1 83 | #define CONFIG_SYS_RX_ETH_BUFFER 4 84 | #define CONFIG_PRE_CONSOLE_BUFFER 1 85 | #define CONFIG_USB_STORAGE 1 86 | #define CONFIG_GMAC_TX_DELAY 0 87 | #define CONFIG_OF_REAL 1 88 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 89 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 90 | #define CONFIG_CMD_SLEEP 1 91 | #define CONFIG_EFI_LOADER 1 92 | #define CONFIG_CMD_PING 1 93 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 94 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 95 | #define CONFIG_PRE_CON_BUF_SZ 4096 96 | #define CONFIG_SYS_ARCH_TIMER 1 97 | #define CONFIG_OF_LIST "sun50i-h6-orangepi-one-plus" 98 | #define CONFIG_CMD_SAVEENV 1 99 | #define CONFIG_ARCH_SUPPORTS_LTO 1 100 | #define CONFIG_SYSRESET 1 101 | #define CONFIG_CMD_BOOTI 1 102 | #define CONFIG_CLK 1 103 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 104 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 105 | #define CONFIG_BINMAN 1 106 | #define CONFIG_SYS_STDIO_DEREGISTER 1 107 | #define CONFIG_SPL_MAX_SIZE 0x7fa0 108 | #define CONFIG_DM_REGULATOR_FIXED 1 109 | #define CONFIG_USB_EHCI_HCD 1 110 | #define CONFIG_SYS_CPU "armv8" 111 | #define CONFIG_FIT_FULL_CHECK 1 112 | #define CONFIG_NETDEVICES 1 113 | #define CONFIG_PHY_RESET_DELAY 0 114 | #define CONFIG_SPL_POWER 1 115 | #define CONFIG_PHY_SUN4I_USB 1 116 | #define CONFIG_TOOLS_FIT 1 117 | #define CONFIG_BOOTP_PXE 1 118 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 119 | #define CONFIG_SPL_LOAD_FIT_ADDRESS 0x0 120 | #define CONFIG_CLK_SUN50I_H6_R 1 121 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 122 | #define CONFIG_CMD_BOOTFLOW 1 123 | #define CONFIG_POWER 1 124 | #define CONFIG_DM_MMC 1 125 | #define CONFIG_CC_HAS_ASM_INLINE 1 126 | #define CONFIG_PINCTRL_SUN50I_H6_R 1 127 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 128 | #define CONFIG_BUILD_TARGET "" 129 | #define CONFIG_EFI_LOADER_HII 1 130 | #define CONFIG_DM_SERIAL 1 131 | #define CONFIG_USB_EHCI_GENERIC 1 132 | #define CONFIG_USB_KEYBOARD_FN_KEYS 1 133 | #define CONFIG_ETH 1 134 | #define CONFIG_DM_I2C 1 135 | #define CONFIG_SUN50I_GEN_H6 1 136 | #define CONFIG_SPL_LOAD_FIT 1 137 | #define CONFIG_PXE_UTILS 1 138 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 139 | #define CONFIG_USB0_ID_DET "" 140 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 141 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 142 | #define CONFIG_REGEX 1 143 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 144 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 145 | #define CONFIG_DOS_PARTITION 1 146 | #define CONFIG_PINCONF 1 147 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 148 | #define CONFIG_CMD_ENV_EXISTS 1 149 | #define CONFIG_SUNXI_NO_PMIC 1 150 | #define CONFIG_SPL_FIT_IMAGE_TINY 1 151 | #define CONFIG_USB_OHCI_HCD 1 152 | #define CONFIG_IMX_DCD_ADDR 0x00910000 153 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 154 | #define CONFIG_BOOT_DEFAULTS 1 155 | #define CONFIG_SPL_STACK 0x118000 156 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 157 | #define CONFIG_TEXT_BASE 0x4a000000 158 | #define CONFIG_VPL_LZMA 1 159 | #define CONFIG_CMD_UNLZ4 1 160 | #define CONFIG_ENV_SIZE 0x10000 161 | #define CONFIG_STACK_SIZE 0x1000000 162 | #define CONFIG_FIT_PRINT 1 163 | #define CONFIG_IDENT_STRING " Allwinner Technology" 164 | #define CONFIG_MMC_SUNXI_HAS_NEW_MODE 1 165 | #define CONFIG_SYS_MMC_ENV_DEV 0 166 | #define CONFIG_BOOTP_DNS 1 167 | #define CONFIG_CMDLINE_EDITING 1 168 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 169 | #define CONFIG_SUNXI_RVBAR_ALTERNATIVE 0x09010040 170 | #define CONFIG_CMD_SETEXPR 1 171 | #define CONFIG_BOOTM_EFI 1 172 | #define CONFIG_BOOTMETH_EFILOADER 1 173 | #define CONFIG_DM_DEVICE_REMOVE 1 174 | #define CONFIG_SYS_UBOOT_START 0x4a000000 175 | #define CONFIG_PLATFORM_ELFENTRY "_start" 176 | #define CONFIG_TOOLS_MD5 1 177 | #define CONFIG_CLK_SUNXI 1 178 | #define CONFIG_TOOLS_SHA1 1 179 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 180 | #define CONFIG_SYS_CACHELINE_SIZE 64 181 | #define CONFIG_SPL_HASH 1 182 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 183 | #define CONFIG_CMD_EXPORTENV 1 184 | #define CONFIG_CMD_MMC 1 185 | #define CONFIG_DM_EVENT 1 186 | #define CONFIG_DM_DEV_READ_INLINE 1 187 | #define CONFIG_FDT_64BIT 1 188 | #define CONFIG_PINCTRL 1 189 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 190 | #define CONFIG_CMD_RANDOM 1 191 | #define CONFIG_WDT 1 192 | #define CONFIG_USB_GADGET 1 193 | #define CONFIG_SYS_BOOTM_LEN 0x4000000 194 | #define CONFIG_ARCH_SUNXI 1 195 | #define CONFIG_BOOTM_VXWORKS 1 196 | #define CONFIG_BOOTM_LINUX 1 197 | #define CONFIG_DM_REGULATOR_COMMON 1 198 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 256 199 | #define CONFIG_CMD_DHCP 1 200 | #define CONFIG_FS_FAT 1 201 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 202 | #define CONFIG_BOOTP_HOSTNAME 1 203 | #define CONFIG_DM_ETH 1 204 | #define CONFIG_BINMAN_FDT 1 205 | #define CONFIG_EFI_PARTITION 1 206 | #define CONFIG_CMD_PART 1 207 | #define CONFIG_AUTO_COMPLETE 1 208 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 209 | #define CONFIG_SPL_SERIAL_PRESENT 1 210 | #define CONFIG_SIMPLE_BUS 1 211 | #define CONFIG_PINCTRL_SUNXI 1 212 | #define CONFIG_CLANG_VERSION 0 213 | #define CONFIG_SYS_NS16550_REG_SIZE -4 214 | #define CONFIG_CMD_CYCLIC 1 215 | #define CONFIG_CMD_CRC32 1 216 | #define CONFIG_SPL_GPIO 1 217 | #define CONFIG_PRINTF 1 218 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 219 | #define CONFIG_I2C 1 220 | #define CONFIG_BOOTP_BOOTPATH 1 221 | #define CONFIG_SYS_BOARD "sunxi" 222 | #define CONFIG_PINCTRL_SUN50I_H6 1 223 | #define CONFIG_BOOTM_NETBSD 1 224 | #define CONFIG_RESET_SUNXI 1 225 | #define CONFIG_NET_RETRY_COUNT 5 226 | #define CONFIG_TOOLS_CRC32 1 227 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 228 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 229 | #define CONFIG_SYS_CONFIG_NAME "sun50i" 230 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 231 | #define CONFIG_CMD_BOOTP 1 232 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 233 | #define CONFIG_CRC8 1 234 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 235 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 236 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 237 | #define CONFIG_DM_GPIO 1 238 | #define CONFIG_WATCHDOG 1 239 | #define CONFIG_MMC_QUIRKS 1 240 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 241 | #define CONFIG_TOOLS_SHA256 1 242 | #define CONFIG_NET 1 243 | #define CONFIG_SHA256 1 244 | #define CONFIG_SUNXI_DRAM_H6_LPDDR3 1 245 | #define CONFIG_PINMUX 1 246 | #define CONFIG_DM_RESET 1 247 | #define CONFIG_DM_WARN 1 248 | #define CONFIG_BOOTP_SUBNETMASK 1 249 | #define CONFIG_SPL_USE_TINY_PRINTF 1 250 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 251 | #define CONFIG_SUNXI_GPIO 1 252 | #define CONFIG_SYS_CBSIZE 1024 253 | #define CONFIG_SPL_OF_LIBFDT 1 254 | #define CONFIG_USB0_VBUS_PIN "" 255 | #define CONFIG_PARTITION_UUIDS 1 256 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 257 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 258 | #define CONFIG_CMD_GO 1 259 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 260 | #define CONFIG_EFI_CAPSULE_MAX 15 261 | #define CONFIG_ENV_SOURCE_FILE "" 262 | #define CONFIG_ISO_PARTITION 1 263 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 264 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 265 | #define CONFIG_EVENT_DYNAMIC 1 266 | #define CONFIG_BOOTDELAY 2 267 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 268 | #define CONFIG_CMD_IMI 1 269 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 270 | #define CONFIG_GPIO 1 271 | #define CONFIG_SYS_HZ 1000 272 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 273 | #define CONFIG_DEVICE_TREE_INCLUDES "" 274 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 275 | #define CONFIG_CMD_FS_GENERIC 1 276 | #define CONFIG_SPL_LEGACY_BLOCK 1 277 | #define CONFIG_SPRINTF 1 278 | #define CONFIG_SUPPORT_OF_CONTROL 1 279 | #define CONFIG_DMA_ADDR_T_64BIT 1 280 | #define CONFIG_CMD_BLOCK_CACHE 1 281 | #define CONFIG_CMD_UNZIP 1 282 | #define CONFIG_DISTRO_DEFAULTS 1 283 | #define CONFIG_SYS_LONGHELP 1 284 | #define CONFIG_BOOTMETH_VBE 1 285 | #define CONFIG_ENV_MIN_ENTRIES 64 286 | #define CONFIG_CMD_EXT2 1 287 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 288 | #define CONFIG_DRAM_ODT_EN 1 289 | #define CONFIG_LAST_STAGE_INIT 1 290 | #define CONFIG_DM_STDIO 1 291 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 292 | #define CONFIG_PREBOOT_DEFINED 1 293 | #define CONFIG_LOCALVERSION "" 294 | #define CONFIG_SERIAL 1 295 | #define CONFIG_SPL_STRTO 1 296 | #define CONFIG_SUPPORT_SPL 1 297 | #define CONFIG_CMDLINE 1 298 | #define CONFIG_DTOC 1 299 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 300 | #define CONFIG_SPL_BANNER_PRINT 1 301 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 302 | #define CONFIG_ARM64_SUPPORT_AARCH32 1 303 | #define CONFIG_CMD_LOADB 1 304 | #define CONFIG_CMD_RUN 1 305 | #define CONFIG_CMD_PINMUX 1 306 | #define CONFIG_USB_KEYBOARD 1 307 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 308 | #define CONFIG_SYS_PROMPT "=> " 309 | #define CONFIG_LINKER_LIST_ALIGN 8 310 | #define CONFIG_CMD_MEMORY 1 311 | #define CONFIG_HUSH_PARSER 1 312 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 313 | #define CONFIG_SPL_MMC 1 314 | #define CONFIG_ARM64_CRC32 1 315 | #define CONFIG_BOARD_LATE_INIT 1 316 | #define CONFIG_CMD_XIMG 1 317 | #define CONFIG_CMD_ECHO 1 318 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 319 | #define CONFIG_SPL 1 320 | #define CONFIG_TOOLS_FIT_VERBOSE 1 321 | #define CONFIG_USB_OHCI_NEW 1 322 | #define CONFIG_MMC_WRITE 1 323 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 324 | #define CONFIG_LOCALVERSION_AUTO 1 325 | #define CONFIG_COUNTER_FREQUENCY 24000000 326 | #define CONFIG_DRAM_CLK 744 327 | #define CONFIG_SYS_SRAM_BASE 0x0 328 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 329 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 330 | #define CONFIG_MMC_HW_PARTITIONING 1 331 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 332 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 333 | #define CONFIG_SYS_ARCH "arm" 334 | #define CONFIG_CYCLIC 1 335 | #define CONFIG_MD5 1 336 | #define CONFIG_CMD_DM 1 337 | #define CONFIG_ARM_BOOT_HOOK_RMR 1 338 | #define CONFIG_USB_HOST 1 339 | #define CONFIG_SPL_BSS_LIMIT 1 340 | #define CONFIG_LIB_UUID 1 341 | #define CONFIG_SYS_CACHE_SHIFT_6 1 342 | #define CONFIG_PHYS_64BIT 1 343 | #define CONFIG_STATIC_RELA 1 344 | #define CONFIG_SUPPORT_ACPI 1 345 | #define CONFIG_SPL_SERIAL 1 346 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 347 | #define CONFIG_USE_BOOTCOMMAND 1 348 | #define CONFIG_LMB 1 349 | #define CONFIG_EXPERT 1 350 | #define CONFIG_CMD_EFICONFIG 1 351 | #define CONFIG_BOOTMETH_EXTLINUX 1 352 | #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE 1 353 | #define CONFIG_CMD_LZMADEC 1 354 | #define CONFIG_MMC_VERBOSE 1 355 | #define CONFIG_CAAM_64BIT 1 356 | #define CONFIG_SYS_SOC "sunxi" 357 | #define CONFIG_BOOTMETH_GLOBAL 1 358 | #define CONFIG_MMC 1 359 | #define CONFIG_BAUDRATE 115200 360 | #define CONFIG_CHARSET 1 361 | #define CONFIG_EVENT 1 362 | #define CONFIG_SPL_SEPARATE_BSS 1 363 | #define CONFIG_CC_IS_GCC 1 364 | #define CONFIG_MISC_INIT_R 1 365 | #define CONFIG_SPL_TARGET "" 366 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 367 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 368 | #define CONFIG_SPL_SHA1 1 369 | #define CONFIG_FAT_WRITE 1 370 | #define CONFIG_PARTITIONS 1 371 | #define CONFIG_CMD_ITEST 1 372 | #define CONFIG_LMB_MAX_REGIONS 16 373 | #define CONFIG_DISPLAY_CPUINFO 1 374 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv8" 375 | #define CONFIG_CMD_GPIO 1 376 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 377 | #define CONFIG_DM_USB 1 378 | #define CONFIG_SUNXI_DRAM_LPDDR3 1 379 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 380 | #define CONFIG_PHY 1 381 | #define CONFIG_SERIAL_PRESENT 1 382 | #define CONFIG_OF_CONTROL 1 383 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 384 | #define CONFIG_FS_EXT4 1 385 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv8/u-boot-spl.lds" 386 | #define CONFIG_CMD_FDT 1 387 | #define CONFIG_SYS_DEVICE_NULLDEV 1 388 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 389 | #define CONFIG_CMD_LOADS 1 390 | #define CONFIG_CMD_FAT 1 391 | #define CONFIG_TOOLS_LIBCRYPTO 1 392 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 393 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 394 | #define CONFIG_SUNXI_RVBAR_ADDRESS 0x09010040 395 | #define CONFIG_BLOCK_CACHE 1 396 | #define CONFIG_SPL_SHA256 1 397 | #define CONFIG_SPL_FIT 1 398 | #define CONFIG_PYLIBFDT 1 399 | #define CONFIG_TOOLS_OF_LIBFDT 1 400 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 401 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 402 | #define CONFIG_SYS_XTRACE 1 403 | #define CONFIG_GCC_VERSION 110200 404 | #define CONFIG_HAVE_TEXT_BASE 1 405 | #define CONFIG_CMD_NET 1 406 | #define CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK 1 407 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 408 | #define CONFIG_MENU 1 409 | #define CONFIG_LIB_RAND 1 410 | #define CONFIG_BOOTSTD 1 411 | #define CONFIG_CONS_INDEX 1 412 | #define CONFIG_DEFAULT_DEVICE_TREE "sun50i-h6-orangepi-one-plus" 413 | #define CONFIG_SPL_TEXT_BASE 0x20060 414 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 415 | #define CONFIG_NET_TFTP_VARS 1 416 | #define CONFIG_SPL_LOGLEVEL 4 417 | #define CONFIG_CMD_BOOTEFI 1 418 | #define CONFIG_FIT 1 419 | #define CONFIG_AUTOBOOT 1 420 | #define CONFIG_ENV_MAX_ENTRIES 512 421 | #define CONFIG_CLK_SUN50I_H6 1 422 | #define CONFIG_FWU_NUM_BANKS 2 423 | #define CONFIG_SPL_PAD_TO 0x8000 424 | #define CONFIG_PINCTRL_FULL 1 425 | #define CONFIG_TOOLS_SHA384 1 426 | #define CONFIG_DM 1 427 | #define CONFIG_BOOTP_GATEWAY 1 428 | #define CONFIG_CMD_MII 1 429 | #define CONFIG_CMD_GPT 1 430 | #define CONFIG_DM_KEYBOARD 1 431 | #define CONFIG_SPL_FIT_SOURCE "" 432 | #define CONFIG_BOOTM_RTEMS 1 433 | #define CONFIG_USB_OHCI_GENERIC 1 434 | #define CONFIG_SYSRESET_WATCHDOG 1 435 | #define CONFIG_ARM64 1 436 | #define CONFIG_LZMA 1 437 | #define CONFIG_SYS_MALLOC_F 1 438 | #define CONFIG_ERR_PTR_OFFSET 0x0 439 | #define CONFIG_SPL_PRINTF 1 440 | #define CONFIG_TFTP_WINDOWSIZE 1 441 | #define CONFIG_CMD_TFTPBOOT 1 442 | #define CONFIG_SUPPORT_RAW_INITRD 1 443 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 444 | #define CONFIG_CMD_IMPORTENV 1 445 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 446 | #define CONFIG_SYS_FDT_PAD 0x3000 447 | #define CONFIG_DRAM_ZQ 3881979 448 | #define CONFIG_TFTP_BLOCKSIZE 1468 449 | #define CONFIG_STRTO 1 450 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 451 | #define CONFIG_PINCTRL_GENERIC 1 452 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 453 | #define CONFIG_CMD_ELF 1 454 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0xC0000000 455 | #define CONFIG_SYS_PBSIZE 1024 456 | #define CONFIG_CMD_PXE 1 457 | #define CONFIG_USB3_VBUS_PIN "" 458 | #define CONFIG_DRAM_SUN50I_H6 1 459 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 460 | #define CONFIG_TOOLS_SHA512 1 461 | #define CONFIG_RANDOM_UUID 1 462 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 463 | #define CONFIG_OF_TAG_MIGRATE 1 464 | #define CONFIG_SAVEENV 1 465 | #define CONFIG_ENV_IS_IN_FAT 1 466 | #define CONFIG_SYS_ARM_ARCH 8 467 | #define CONFIG_CMD_SOURCE 1 468 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 469 | #define CONFIG_CMD_SYSBOOT 1 470 | #define CONFIG_INPUT 1 471 | #define CONFIG_EFI_ECPT 1 472 | #define CONFIG_SPL_STACK_R 1 473 | 474 | 475 | #undef CONFIG_SPL_BANNER_PRINT 476 | #undef CONFIG_DM_SERIAL 477 | #undef CONFIG_SPL_LOAD_FIT 478 | #ifndef DRAM_APP 479 | //#undef CONFIG_AXP305_POWER /* I2C not supported yet */ 480 | #endif 481 | #define __LINUX_ARM_ARCH__ 7 482 | #include 483 | #include 484 | -------------------------------------------------------------------------------- /src/configs/H616.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_CMD_POWEROFF 1 8 | #define CONFIG_ENV_SUPPORT 1 9 | #define CONFIG_MACH_SUN50I_H616 1 10 | #define CONFIG_DISPLAY_BOARDINFO 1 11 | #define CONFIG_CRC32 1 12 | #define CONFIG_CMD_BOOTM 1 13 | #define CONFIG_ENV_FAT_FILE "uboot.env" 14 | #define CONFIG_CMD_EXT4 1 15 | #define CONFIG_SMBIOS 1 16 | #define CONFIG_TOOLS_FIT_PRINT 1 17 | #define CONFIG_SF_DEFAULT_MODE 0x0 18 | #define CONFIG_SYS_MAXARGS 16 19 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 20 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 21 | #define CONFIG_IMAGE_SPARSE_FILLBUF_SIZE 0x80000 22 | #define CONFIG_CMD_FASTBOOT 1 23 | #define CONFIG_LOGLEVEL 4 24 | #define CONFIG_CMD_USB 1 25 | #define CONFIG_SYS_MALLOC_LEN 0x4020000 26 | #define CONFIG_OF_BOARD_SETUP 1 27 | #define CONFIG_ZLIB 1 28 | #define CONFIG_SPL_SIZE_LIMIT 0x0 29 | #define CONFIG_EFI_DT_FIXUP 1 30 | #define CONFIG_ARP_TIMEOUT 5000 31 | #define CONFIG_LIB_ELF 1 32 | #define CONFIG_MTDIDS_DEFAULT "" 33 | #define CONFIG_OF_LIBFDT 1 34 | #define CONFIG_CMD_EDITENV 1 35 | #define CONFIG_BOOTDEV_ETH 1 36 | #define CONFIG_LZ4 1 37 | #define CONFIG_PINCONF_RECURSIVE 1 38 | #define CONFIG_PREBOOT "usb start" 39 | #define CONFIG_SYSRESET_CMD_RESET 1 40 | #define CONFIG_SPL_FRAMEWORK 1 41 | #define CONFIG_LMB_USE_MAX_REGIONS 1 42 | #define CONFIG_FASTBOOT_FLASH 1 43 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 44 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x16 45 | #define CONFIG_PINCTRL_SUN50I_H616 1 46 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 47 | #define CONFIG_SYSRESET_CMD_POWEROFF 1 48 | #define CONFIG_BLK 1 49 | #define CONFIG_SYS_SRAM_SIZE 0x0 50 | #define CONFIG_USB 1 51 | #define CONFIG_ARM_ASM_UNIFIED 1 52 | #define CONFIG_OF_LIBFDT_OVERLAY 1 53 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 54 | #define CONFIG_PSCI_RESET 1 55 | #define CONFIG_USB_HUB_DEBOUNCE_TIMEOUT 1000 56 | #define CONFIG_OF_SEPARATE 1 57 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 58 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 59 | #define CONFIG_GZIP 1 60 | #define CONFIG_NR_DRAM_BANKS 1 61 | #define CONFIG_SHA1 1 62 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x20000 63 | #define CONFIG_FASTBOOT_GPT_NAME "gpt" 64 | #define CONFIG_DM_REGULATOR 1 65 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 66 | #define CONFIG_WDT_SUNXI 1 67 | #define CONFIG_HASH 1 68 | #define CONFIG_CMD_CONSOLE 1 69 | #define CONFIG_CMD_BOOTD 1 70 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 71 | #define CONFIG_SYS_NS16550 1 72 | #define CONFIG_MMC_SUNXI 1 73 | #define CONFIG_SYS_CLK_FREQ 1008000000 74 | #define CONFIG_ENV_SPI_BUS 0 75 | #define CONFIG_SDP_LOADADDR 0x0 76 | #define CONFIG_DEFAULT_FDT_FILE "" 77 | #define CONFIG_SPL_SYS_MALLOC_F 1 78 | #define CONFIG_OF_TRANSLATE 1 79 | #define CONFIG_USB1_VBUS_PIN "" 80 | #define CONFIG_SYS_MONITOR_LEN 786432 81 | #define CONFIG_USB0_VBUS_DET "" 82 | #define CONFIG_DRAM_SUN50I_H616_TPR0 0x0 83 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 84 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 85 | #define CONFIG_USB2_VBUS_PIN "" 86 | #define CONFIG_USE_PREBOOT 1 87 | #define CONFIG_SPL_SPRINTF 1 88 | #define CONFIG_BOOTM_PLAN9 1 89 | #define CONFIG_SYS_MMC_ENV_PART 0 90 | #define CONFIG_CMD_BDI 1 91 | #define CONFIG_ARM 1 92 | #define CONFIG_CREATE_ARCH_SYMLINK 1 93 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 94 | #define CONFIG_DM_SEQ_ALIAS 1 95 | #define CONFIG_SYS_RX_ETH_BUFFER 4 96 | #define CONFIG_PRE_CONSOLE_BUFFER 1 97 | #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT 1 98 | #define CONFIG_USB_STORAGE 1 99 | #define CONFIG_GMAC_TX_DELAY 0 100 | #define CONFIG_OF_REAL 1 101 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 102 | #define CONFIG_SYS_I2C_SPEED 400000 103 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 104 | #define CONFIG_CMD_SLEEP 1 105 | #define CONFIG_EFI_LOADER 1 106 | #define CONFIG_SPI 1 107 | #define CONFIG_CMD_PING 1 108 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 109 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 110 | #define CONFIG_PRE_CON_BUF_SZ 4096 111 | #define CONFIG_SYS_ARCH_TIMER 1 112 | #define CONFIG_OF_LIST "sun50i-h616-orangepi-zero2" 113 | #define CONFIG_CMD_SAVEENV 1 114 | #define CONFIG_ARCH_SUPPORTS_LTO 1 115 | #define CONFIG_SYSRESET 1 116 | #define CONFIG_DRAM_SUN50I_H616_TPR11 0x0 117 | #define CONFIG_CMD_BOOTI 1 118 | #define CONFIG_CLK 1 119 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 120 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 121 | #define CONFIG_BINMAN 1 122 | #define CONFIG_SYS_STDIO_DEREGISTER 1 123 | #define CONFIG_SPL_MAX_SIZE 0xbfa0 124 | #define CONFIG_DM_REGULATOR_FIXED 1 125 | #define CONFIG_FASTBOOT_USB_DEV 0 126 | #define CONFIG_USB_EHCI_HCD 1 127 | #define CONFIG_SYS_CPU "armv8" 128 | #define CONFIG_FIT_FULL_CHECK 1 129 | #define CONFIG_NETDEVICES 1 130 | #define CONFIG_PHY_RESET_DELAY 0 131 | #define CONFIG_SPL_POWER 1 132 | #define CONFIG_PHY_SUN4I_USB 1 133 | #define CONFIG_TOOLS_FIT 1 134 | #define CONFIG_BOOTP_PXE 1 135 | #define CONFIG_FASTBOOT_FLASH_MMC_DEV 0 136 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 137 | #define CONFIG_SPL_LOAD_FIT_ADDRESS 0x0 138 | #define CONFIG_CLK_SUN50I_H6_R 1 139 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 140 | #define CONFIG_CMD_BOOTFLOW 1 141 | #define CONFIG_POWER 1 142 | #define CONFIG_DM_MMC 1 143 | #define CONFIG_CC_HAS_ASM_INLINE 1 144 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 145 | #define CONFIG_BUILD_TARGET "" 146 | #define CONFIG_EFI_LOADER_HII 1 147 | #define CONFIG_DM_SERIAL 1 148 | #define CONFIG_USB_EHCI_GENERIC 1 149 | #define CONFIG_USB_KEYBOARD_FN_KEYS 1 150 | #define CONFIG_ETH 1 151 | #define CONFIG_DM_I2C 1 152 | #define CONFIG_ARM_SMCCC 1 153 | #define CONFIG_SUN50I_GEN_H6 1 154 | #define CONFIG_SPL_LOAD_FIT 1 155 | #define CONFIG_PXE_UTILS 1 156 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 157 | #define CONFIG_USB0_ID_DET "" 158 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 159 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 160 | #define CONFIG_REGEX 1 161 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 162 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 163 | #define CONFIG_DOS_PARTITION 1 164 | #define CONFIG_PINCONF 1 165 | #define CONFIG_PHY_ADDR 1 166 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 167 | #define CONFIG_CMD_ENV_EXISTS 1 168 | #define CONFIG_ENV_OFFSET 0xF0000 169 | #define CONFIG_SPL_FIT_IMAGE_TINY 1 170 | #define CONFIG_USB_OHCI_HCD 1 171 | #define CONFIG_IMX_DCD_ADDR 0x00910000 172 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 173 | #define CONFIG_BOOT_DEFAULTS 1 174 | #define CONFIG_SPL_STACK 0x58000 175 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 176 | #define CONFIG_TEXT_BASE 0x4a000000 177 | #define CONFIG_VPL_LZMA 1 178 | #define CONFIG_CMD_UNLZ4 1 179 | #define CONFIG_ENV_SIZE 0x10000 180 | #define CONFIG_STACK_SIZE 0x1000000 181 | #define CONFIG_FIT_PRINT 1 182 | #define CONFIG_IDENT_STRING " Allwinner Technology" 183 | #define CONFIG_MMC_SUNXI_HAS_NEW_MODE 1 184 | #define CONFIG_SYS_MMC_ENV_DEV 0 185 | #define CONFIG_BOOTP_DNS 1 186 | #define CONFIG_CMDLINE_EDITING 1 187 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 188 | #define CONFIG_CLK_SUN50I_H616 1 189 | #define CONFIG_SUNXI_RVBAR_ALTERNATIVE 0x08100040 190 | #define CONFIG_CMD_SETEXPR 1 191 | #define CONFIG_CMD_SF 1 192 | #define CONFIG_BOOTM_EFI 1 193 | #define CONFIG_BOOTMETH_EFILOADER 1 194 | #define CONFIG_DM_DEVICE_REMOVE 1 195 | #define CONFIG_SYS_UBOOT_START 0x4a000000 196 | #define CONFIG_AXP305_POWER 1 197 | #define CONFIG_PLATFORM_ELFENTRY "_start" 198 | #define CONFIG_DRAM_SUN50I_H616 1 199 | #define CONFIG_TOOLS_MD5 1 200 | #define CONFIG_CLK_SUNXI 1 201 | #define CONFIG_TOOLS_SHA1 1 202 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 203 | #define CONFIG_SYS_CACHELINE_SIZE 64 204 | #define CONFIG_SPL_HASH 1 205 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 206 | #define CONFIG_CMD_EXPORTENV 1 207 | #define CONFIG_CMD_MMC 1 208 | #define CONFIG_DM_EVENT 1 209 | #define CONFIG_DM_DEV_READ_INLINE 1 210 | #define CONFIG_FASTBOOT_FLASH_MMC 1 211 | #define CONFIG_FDT_64BIT 1 212 | #define CONFIG_PINCTRL 1 213 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 214 | #define CONFIG_CMD_RANDOM 1 215 | #define CONFIG_WDT 1 216 | #define CONFIG_USB_MUSB_SUNXI 1 217 | #define CONFIG_USB_GADGET 1 218 | #define CONFIG_SYS_BOOTM_LEN 0x4000000 219 | #define CONFIG_USB_ETH_RNDIS 1 220 | #define CONFIG_ARCH_SUNXI 1 221 | #define CONFIG_BOOTM_VXWORKS 1 222 | #define CONFIG_BOOTM_LINUX 1 223 | #define CONFIG_DM_REGULATOR_COMMON 1 224 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 256 225 | #define CONFIG_ENV_SPI_MODE 0x0 226 | #define CONFIG_CMD_DHCP 1 227 | #define CONFIG_FS_FAT 1 228 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 229 | #define CONFIG_BOOTP_HOSTNAME 1 230 | #define CONFIG_DM_ETH 1 231 | #define CONFIG_BINMAN_FDT 1 232 | #define CONFIG_DM_SPI 1 233 | #define CONFIG_USB_MUSB_PIO_ONLY 1 234 | #define CONFIG_EFI_PARTITION 1 235 | #define CONFIG_CMD_PART 1 236 | #define CONFIG_AUTO_COMPLETE 1 237 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 238 | #define CONFIG_SPL_SERIAL_PRESENT 1 239 | #define CONFIG_ENV_ADDR 0x0 240 | #define CONFIG_SIMPLE_BUS 1 241 | #define CONFIG_SF_DEFAULT_BUS 0 242 | #define CONFIG_SPI_MEM 1 243 | #define CONFIG_PINCTRL_SUNXI 1 244 | #define CONFIG_CLANG_VERSION 0 245 | #define CONFIG_SYS_NS16550_REG_SIZE -4 246 | #define CONFIG_CMD_CYCLIC 1 247 | #define CONFIG_CMD_CRC32 1 248 | #define CONFIG_SPL_GPIO 1 249 | #define CONFIG_PHY_GIGE 1 250 | #define CONFIG_PRINTF 1 251 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 252 | #define CONFIG_ENV_IS_IN_SPI_FLASH 1 253 | #define CONFIG_I2C 1 254 | #define CONFIG_BOOTP_BOOTPATH 1 255 | #define CONFIG_SYS_BOARD "sunxi" 256 | #define CONFIG_CMD_I2C 1 257 | #define CONFIG_BOOTM_NETBSD 1 258 | #define CONFIG_RESET_SUNXI 1 259 | #define CONFIG_NET_RETRY_COUNT 5 260 | #define CONFIG_TOOLS_CRC32 1 261 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 262 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 263 | #define CONFIG_FASTBOOT 1 264 | #define CONFIG_SYS_CONFIG_NAME "sun50i" 265 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 266 | #define CONFIG_USB_MUSB_FIXED_CONFIGDATA 1 267 | #define CONFIG_SF_DEFAULT_CS 0 268 | #define CONFIG_CMD_BOOTP 1 269 | #define CONFIG_SPL_SPI_SUNXI 1 270 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 271 | #define CONFIG_CRC8 1 272 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 273 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 274 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 275 | #define CONFIG_DM_GPIO 1 276 | #define CONFIG_USB_GADGET_DUALSPEED 1 277 | #define CONFIG_WATCHDOG 1 278 | #define CONFIG_MMC_QUIRKS 1 279 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 280 | #define CONFIG_SPI_FLASH 1 281 | #define CONFIG_TOOLS_SHA256 1 282 | #define CONFIG_NET 1 283 | #define CONFIG_SPI_FLASH_UNLOCK_ALL 1 284 | #define CONFIG_SHA256 1 285 | #define CONFIG_PINMUX 1 286 | #define CONFIG_DM_RESET 1 287 | #define CONFIG_DRAM_SUN50I_H616_TPR12 0x0 288 | #define CONFIG_DRAM_SUN50I_H616_DX_DRI 0x0e0e0e0e 289 | #define CONFIG_DM_WARN 1 290 | #define CONFIG_BOOTP_SUBNETMASK 1 291 | #define CONFIG_SPL_USE_TINY_PRINTF 1 292 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 293 | #define CONFIG_ANDROID_BOOT_IMAGE 1 294 | #define CONFIG_SUNXI_GPIO 1 295 | #define CONFIG_SYS_CBSIZE 1024 296 | #define CONFIG_SPL_OF_LIBFDT 1 297 | #define CONFIG_SPL_I2C 1 298 | #define CONFIG_SPI_FLASH_SMART_HWCAPS 1 299 | #define CONFIG_USB0_VBUS_PIN "" 300 | #define CONFIG_PARTITION_UUIDS 1 301 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 302 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 303 | #define CONFIG_CMD_GO 1 304 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 305 | #define CONFIG_EFI_CAPSULE_MAX 15 306 | #define CONFIG_ENV_SOURCE_FILE "" 307 | #define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:00" 308 | #define CONFIG_ISO_PARTITION 1 309 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 310 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 311 | #define CONFIG_EVENT_DYNAMIC 1 312 | #define CONFIG_BOOTDELAY 2 313 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 314 | #define CONFIG_CMD_IMI 1 315 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 316 | #define CONFIG_GPIO 1 317 | #define CONFIG_SYS_HZ 1000 318 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 319 | #define CONFIG_DEVICE_TREE_INCLUDES "" 320 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 321 | #define CONFIG_CMD_FS_GENERIC 1 322 | #define CONFIG_SPL_LEGACY_BLOCK 1 323 | #define CONFIG_SPRINTF 1 324 | #define CONFIG_SUPPORT_OF_CONTROL 1 325 | #define CONFIG_DMA_ADDR_T_64BIT 1 326 | #define CONFIG_CMD_BLOCK_CACHE 1 327 | #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x8000 328 | #define CONFIG_CMD_UNZIP 1 329 | #define CONFIG_DISTRO_DEFAULTS 1 330 | #define CONFIG_SYS_LONGHELP 1 331 | #define CONFIG_BOOTMETH_VBE 1 332 | #define CONFIG_ENV_MIN_ENTRIES 64 333 | #define CONFIG_CMD_EXT2 1 334 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 335 | #define CONFIG_LAST_STAGE_INIT 1 336 | #define CONFIG_DM_STDIO 1 337 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 338 | #define CONFIG_PREBOOT_DEFINED 1 339 | #define CONFIG_LOCALVERSION "" 340 | #define CONFIG_SERIAL 1 341 | #define CONFIG_SPL_STRTO 1 342 | #define CONFIG_SPI_SUNXI 1 343 | #define CONFIG_USB_GADGET_DOWNLOAD 1 344 | #define CONFIG_SUPPORT_SPL 1 345 | #define CONFIG_CMDLINE 1 346 | #define CONFIG_DTOC 1 347 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 348 | #define CONFIG_SPL_BANNER_PRINT 1 349 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 350 | #define CONFIG_USB_ETHER 1 351 | #define CONFIG_ARM64_SUPPORT_AARCH32 1 352 | #define CONFIG_CMD_LOADB 1 353 | #define CONFIG_CMD_RUN 1 354 | #define CONFIG_CMD_PINMUX 1 355 | #define CONFIG_USB_KEYBOARD 1 356 | #define CONFIG_ENV_SPI_CS 0 357 | #define CONFIG_FASTBOOT_BUF_ADDR 0x42000000 358 | #define CONFIG_SUN8I_EMAC 1 359 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 360 | #define CONFIG_SYS_PROMPT "=> " 361 | #define CONFIG_LINKER_LIST_ALIGN 8 362 | #define CONFIG_CMD_MEMORY 1 363 | #define CONFIG_HUSH_PARSER 1 364 | #define CONFIG_SUNXI_DRAM_DDR3 1 365 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 366 | #define CONFIG_SPL_MMC 1 367 | #define CONFIG_USB_MUSB_GADGET 1 368 | #define CONFIG_ARM64_CRC32 1 369 | #define CONFIG_BOARD_LATE_INIT 1 370 | #define CONFIG_FASTBOOT_MBR_NAME "mbr" 371 | #define CONFIG_CMD_XIMG 1 372 | #define CONFIG_CMD_ECHO 1 373 | #define CONFIG_FASTBOOT_BUF_SIZE 0x2000000 374 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 375 | #define CONFIG_SPL 1 376 | #define CONFIG_TOOLS_FIT_VERBOSE 1 377 | #define CONFIG_USB_OHCI_NEW 1 378 | #define CONFIG_DRAM_SUN50I_H616_DX_ODT 0x08080808 379 | #define CONFIG_PHYLIB 1 380 | #define CONFIG_MMC_WRITE 1 381 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 382 | #define CONFIG_DM_PMIC 1 383 | #define CONFIG_LOCALVERSION_AUTO 1 384 | #define CONFIG_COUNTER_FREQUENCY 24000000 385 | #define CONFIG_DRAM_CLK 720 386 | #define CONFIG_AXP_DCDC4_VOLT 1500 387 | #define CONFIG_PHY_ADDR_ENABLE 1 388 | #define CONFIG_SYS_SRAM_BASE 0x0 389 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 390 | #define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01" 391 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 392 | #define CONFIG_MMC_HW_PARTITIONING 1 393 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 394 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 395 | #define CONFIG_SYS_ARCH "arm" 396 | #define CONFIG_CYCLIC 1 397 | #define CONFIG_MD5 1 398 | #define CONFIG_SYS_I2C_MVTWSI 1 399 | #define CONFIG_CMD_DM 1 400 | #define CONFIG_ARM_BOOT_HOOK_RMR 1 401 | #define CONFIG_USB_HOST 1 402 | #define CONFIG_SPL_BSS_LIMIT 1 403 | #define CONFIG_LIB_UUID 1 404 | #define CONFIG_SYS_CACHE_SHIFT_6 1 405 | #define CONFIG_PHYS_64BIT 1 406 | #define CONFIG_STATIC_RELA 1 407 | #define CONFIG_SUPPORT_ACPI 1 408 | #define CONFIG_DRAM_SUN50I_H616_ODT_EN 0x1 409 | #define CONFIG_SPL_SERIAL 1 410 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 411 | #define CONFIG_USE_BOOTCOMMAND 1 412 | #define CONFIG_LMB 1 413 | #define CONFIG_EXPERT 1 414 | #define CONFIG_CMD_EFICONFIG 1 415 | #define CONFIG_BOOTMETH_EXTLINUX 1 416 | #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE 1 417 | #define CONFIG_CMD_LZMADEC 1 418 | #define CONFIG_MMC_VERBOSE 1 419 | #define CONFIG_CAAM_64BIT 1 420 | #define CONFIG_SYS_SOC "sunxi" 421 | #define CONFIG_BOOTMETH_GLOBAL 1 422 | #define CONFIG_MMC 1 423 | #define CONFIG_BAUDRATE 115200 424 | #define CONFIG_CHARSET 1 425 | #define CONFIG_EVENT 1 426 | #define CONFIG_SPL_SEPARATE_BSS 1 427 | #define CONFIG_SYS_SPD_BUS_NUM 0 428 | #define CONFIG_CC_IS_GCC 1 429 | #define CONFIG_DRAM_SUN50I_H616_TPR2 0x0 430 | #define CONFIG_MISC_INIT_R 1 431 | #define CONFIG_SPL_TARGET "" 432 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 433 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 434 | #define CONFIG_SPL_SHA1 1 435 | #define CONFIG_FAT_WRITE 1 436 | #define CONFIG_PARTITIONS 1 437 | #define CONFIG_CMD_ITEST 1 438 | #define CONFIG_LMB_MAX_REGIONS 16 439 | #define CONFIG_DISPLAY_CPUINFO 1 440 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv8" 441 | #define CONFIG_DM_SPI_FLASH 1 442 | #define CONFIG_EFI_HAVE_RUNTIME_RESET 1 443 | #define CONFIG_SYS_I2C_SLAVE 0x7f 444 | #define CONFIG_CMD_GPIO 1 445 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 446 | #define CONFIG_DM_USB 1 447 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 448 | #define CONFIG_PHY 1 449 | #define CONFIG_SERIAL_PRESENT 1 450 | #define CONFIG_ARM_PSCI_FW 1 451 | #define CONFIG_OF_CONTROL 1 452 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 453 | #define CONFIG_FS_EXT4 1 454 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv8/u-boot-spl.lds" 455 | #define CONFIG_CMD_FDT 1 456 | #define CONFIG_ENV_SECT_SIZE 0x10000 457 | #define CONFIG_SYS_DEVICE_NULLDEV 1 458 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 459 | #define CONFIG_CMD_LOADS 1 460 | #define CONFIG_CMD_FAT 1 461 | #define CONFIG_USB_FUNCTION_FASTBOOT 1 462 | #define CONFIG_SPI_FLASH_MACRONIX 1 463 | #define CONFIG_TOOLS_LIBCRYPTO 1 464 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 465 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 466 | #define CONFIG_SUNXI_RVBAR_ADDRESS 0x09010040 467 | #define CONFIG_BLOCK_CACHE 1 468 | #define CONFIG_SPL_SHA256 1 469 | #define CONFIG_SPL_FIT 1 470 | #define CONFIG_PYLIBFDT 1 471 | #define CONFIG_TOOLS_OF_LIBFDT 1 472 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 473 | #define CONFIG_SPL_SYS_I2C_LEGACY 1 474 | #define CONFIG_PINCTRL_SUN50I_H616_R 1 475 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 476 | #define CONFIG_SYS_XTRACE 1 477 | #define CONFIG_GCC_VERSION 110200 478 | #define CONFIG_HAVE_TEXT_BASE 1 479 | #define CONFIG_CMD_NET 1 480 | #define CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK 1 481 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 482 | #define CONFIG_MENU 1 483 | #define CONFIG_LIB_RAND 1 484 | #define CONFIG_BOOTSTD 1 485 | #define CONFIG_CONS_INDEX 1 486 | #define CONFIG_DEFAULT_DEVICE_TREE "sun50i-h616-orangepi-zero2" 487 | #define CONFIG_SPL_TEXT_BASE 0x20060 488 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 489 | #define CONFIG_PHY_REALTEK 1 490 | #define CONFIG_NET_TFTP_VARS 1 491 | #define CONFIG_FIRMWARE 1 492 | #define CONFIG_SPL_LOGLEVEL 4 493 | #define CONFIG_SPI_FLASH_USE_4K_SECTORS 1 494 | #define CONFIG_CMD_MDIO 1 495 | #define CONFIG_PMIC_AXP 1 496 | #define CONFIG_CMD_BOOTEFI 1 497 | #define CONFIG_FIT 1 498 | #define CONFIG_DRAM_SUN50I_H616_CA_DRI 0x0e0e 499 | #define CONFIG_AUTOBOOT 1 500 | #define CONFIG_ENV_MAX_ENTRIES 512 501 | #define CONFIG_FWU_NUM_BANKS 2 502 | #define CONFIG_SPL_PAD_TO 0xbfa0 503 | #define CONFIG_PINCTRL_FULL 1 504 | #define CONFIG_SUNXI_DRAM_H616_DDR3_1333 1 505 | #define CONFIG_TOOLS_SHA384 1 506 | #define CONFIG_DM 1 507 | #define CONFIG_BOOTP_GATEWAY 1 508 | #define CONFIG_CMD_MII 1 509 | #define CONFIG_CMD_GPT 1 510 | #define CONFIG_DM_KEYBOARD 1 511 | #define CONFIG_SPL_FIT_SOURCE "" 512 | #define CONFIG_BOOTM_RTEMS 1 513 | #define CONFIG_DRAM_SUN50I_H616_TPR10 0xf83438 514 | #define CONFIG_USB_OHCI_GENERIC 1 515 | #define CONFIG_SYSRESET_WATCHDOG 1 516 | #define CONFIG_ENV_SPI_MAX_HZ 1000000 517 | #define CONFIG_ARM64 1 518 | #define CONFIG_LZMA 1 519 | #define CONFIG_SYS_MALLOC_F 1 520 | #define CONFIG_ERR_PTR_OFFSET 0x0 521 | #define CONFIG_SPL_PRINTF 1 522 | #define CONFIG_TFTP_WINDOWSIZE 1 523 | #define CONFIG_CMD_BIND 1 524 | #define CONFIG_CMD_TFTPBOOT 1 525 | #define CONFIG_SUPPORT_RAW_INITRD 1 526 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 527 | #define CONFIG_CMD_IMPORTENV 1 528 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 529 | #define CONFIG_SYS_FDT_PAD 0x3000 530 | #define CONFIG_TFTP_BLOCKSIZE 1468 531 | #define CONFIG_STRTO 1 532 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 533 | #define CONFIG_PINCTRL_GENERIC 1 534 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 535 | #define CONFIG_MTDPARTS_DEFAULT "" 536 | #define CONFIG_CMD_ELF 1 537 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 0 538 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0x100000000 539 | #define CONFIG_SYS_PBSIZE 1024 540 | #define CONFIG_PMIC_CHILDREN 1 541 | #define CONFIG_CMD_PXE 1 542 | #define CONFIG_USB3_VBUS_PIN "" 543 | #define CONFIG_IMAGE_SPARSE 1 544 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 545 | #define CONFIG_SF_DEFAULT_SPEED 1000000 546 | #define CONFIG_TOOLS_SHA512 1 547 | #define CONFIG_R_I2C_ENABLE 1 548 | #define CONFIG_RANDOM_UUID 1 549 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 550 | #define CONFIG_OF_TAG_MIGRATE 1 551 | #define CONFIG_AXP_PMIC_BUS 1 552 | #define CONFIG_SAVEENV 1 553 | #define CONFIG_ENV_IS_IN_FAT 1 554 | #define CONFIG_SYS_ARM_ARCH 8 555 | #define CONFIG_CMD_SOURCE 1 556 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 557 | #define CONFIG_CMD_SYSBOOT 1 558 | #define CONFIG_INPUT 1 559 | #define CONFIG_EFI_ECPT 1 560 | #define CONFIG_SPL_STACK_R 1 561 | 562 | #undef CONFIG_SPL_BANNER_PRINT 563 | #undef CONFIG_DM_SERIAL 564 | #undef CONFIG_USB_ETHER 565 | #undef CONFIG_SPL_LOAD_FIT 566 | #ifndef DRAM_APP 567 | #undef CONFIG_AXP305_POWER /* I2C not supported yet */ 568 | #endif 569 | #define __LINUX_ARM_ARCH__ 7 570 | #include 571 | #include 572 | -------------------------------------------------------------------------------- /src/configs/R40.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | /* 8 | * 9 | * Automatically generated file; DO NOT EDIT. 10 | * U-Boot 2024.01-rc1 Configuration 11 | * 12 | */ 13 | #define CONFIG_CMD_POWEROFF 1 14 | #define CONFIG_ENV_SUPPORT 1 15 | #define CONFIG_DISPLAY_BOARDINFO 1 16 | #define CONFIG_CRC32 1 17 | #define CONFIG_CMD_BOOTM 1 18 | #define CONFIG_ENV_FAT_FILE "uboot.env" 19 | #define CONFIG_CMD_EXT4 1 20 | #define CONFIG_SMBIOS 1 21 | #define CONFIG_TOOLS_FIT_PRINT 1 22 | #define CONFIG_SYS_ARM_MMU 1 23 | #define CONFIG_AXP_ELDO3_VOLT 1200 24 | #define CONFIG_SYS_THUMB_BUILD 1 25 | #define CONFIG_SYS_MAXARGS 16 26 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 27 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 28 | #define CONFIG_LOGLEVEL 4 29 | #define CONFIG_CMD_USB 1 30 | #define CONFIG_SYS_MALLOC_LEN 0x4020000 31 | #define CONFIG_OF_BOARD_SETUP 1 32 | #define CONFIG_ZLIB 1 33 | #define CONFIG_SPL_SIZE_LIMIT 0x0 34 | #define CONFIG_EFI_DT_FIXUP 1 35 | #define CONFIG_ARP_TIMEOUT 5000 36 | #define CONFIG_LIB_ELF 1 37 | #define CONFIG_OF_LIBFDT 1 38 | #define CONFIG_CMD_EDITENV 1 39 | #define CONFIG_BOOTDEV_ETH 1 40 | #define CONFIG_SPL_USE_ARCH_MEMSET 1 41 | #define CONFIG_PINCONF_RECURSIVE 1 42 | #define CONFIG_PREBOOT "usb start" 43 | #define CONFIG_SUNXI_DRAM_DDR3_1333 1 44 | #define CONFIG_SYSRESET_CMD_RESET 1 45 | #define CONFIG_SPL_FRAMEWORK 1 46 | #define CONFIG_LMB_USE_MAX_REGIONS 1 47 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 48 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x15 49 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 50 | #define CONFIG_USE_ARCH_MEMCPY 1 51 | #define CONFIG_SYSRESET_CMD_POWEROFF 1 52 | #define CONFIG_BLK 1 53 | #define CONFIG_SYS_SRAM_SIZE 0x0 54 | #define CONFIG_USB 1 55 | #define CONFIG_ARM_ASM_UNIFIED 1 56 | #define CONFIG_OF_LIBFDT_OVERLAY 1 57 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 58 | #define CONFIG_USB_HUB_DEBOUNCE_TIMEOUT 1000 59 | #define CONFIG_OF_SEPARATE 1 60 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 61 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 62 | #define CONFIG_GZIP 1 63 | #define CONFIG_NR_DRAM_BANKS 1 64 | #define CONFIG_SHA1 1 65 | #define CONFIG_AXP_DLDO1_VOLT 0 66 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x0 67 | #define CONFIG_DM_REGULATOR 1 68 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 69 | #define CONFIG_WDT_SUNXI 1 70 | #define CONFIG_ARMV7_SECURE_MAX_SIZE 0xbc00 71 | #define CONFIG_HASH 1 72 | #define CONFIG_CMD_CONSOLE 1 73 | #define CONFIG_CMD_BOOTD 1 74 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 75 | #define CONFIG_SYS_NS16550 1 76 | #define CONFIG_MMC_SUNXI 1 77 | #define CONFIG_SYS_CLK_FREQ 1008000000 78 | #define CONFIG_SDP_LOADADDR 0x0 79 | #define CONFIG_DEFAULT_FDT_FILE "" 80 | #define CONFIG_SPL_SYS_MALLOC_F 1 81 | #define CONFIG_OF_TRANSLATE 1 82 | #define CONFIG_USB1_VBUS_PIN "PH23" 83 | #define CONFIG_SYS_MONITOR_LEN 786432 84 | #define CONFIG_USB0_VBUS_DET "" 85 | #define CONFIG_SCSI_AHCI 1 86 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 87 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 88 | #define CONFIG_USB2_VBUS_PIN "" 89 | #define CONFIG_USE_PREBOOT 1 90 | #define CONFIG_SPL_SPRINTF 1 91 | #define CONFIG_HAVE_PRIVATE_LIBGCC 1 92 | #define CONFIG_BOOTM_PLAN9 1 93 | #define CONFIG_SYS_MMC_ENV_PART 0 94 | #define CONFIG_CMD_BDI 1 95 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 96 | #define CONFIG_ARM 1 97 | #define CONFIG_CREATE_ARCH_SYMLINK 1 98 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 99 | #define CONFIG_SPL_SYS_THUMB_BUILD 1 100 | #define CONFIG_DM_SEQ_ALIAS 1 101 | #define CONFIG_SYS_RX_ETH_BUFFER 4 102 | #define CONFIG_PRE_CONSOLE_BUFFER 1 103 | #define CONFIG_USB_STORAGE 1 104 | #define CONFIG_GMAC_TX_DELAY 0 105 | #define CONFIG_OF_REAL 1 106 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 107 | #define CONFIG_SYS_I2C_SPEED 400000 108 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 109 | #define CONFIG_CMD_SLEEP 1 110 | #define CONFIG_EFI_LOADER 1 111 | #define CONFIG_CMD_PING 1 112 | #define CONFIG_AXP_ELDO2_VOLT 0 113 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 114 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 115 | #define CONFIG_PRE_CON_BUF_SZ 4096 116 | #define CONFIG_OF_LIST "sun8i-v40-bananapi-m2-berry" 117 | #define CONFIG_CMD_SAVEENV 1 118 | #define CONFIG_ARCH_SUPPORTS_LTO 1 119 | #define CONFIG_SUNXI_DRAM_DW_32BIT 1 120 | #define CONFIG_SYSRESET 1 121 | #define CONFIG_CLK 1 122 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 123 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 124 | #define CONFIG_BINMAN 1 125 | #define CONFIG_SYS_STDIO_DEREGISTER 1 126 | #define CONFIG_SPL_MAX_SIZE 0x5fa0 127 | #define CONFIG_DM_REGULATOR_FIXED 1 128 | #define CONFIG_USB_EHCI_HCD 1 129 | #define CONFIG_SYS_CPU "armv7" 130 | #define CONFIG_FIT_FULL_CHECK 1 131 | #define CONFIG_NETDEVICES 1 132 | #define CONFIG_PHY_RESET_DELAY 0 133 | #define CONFIG_SPL_POWER 1 134 | #define CONFIG_PHY_SUN4I_USB 1 135 | #define CONFIG_TOOLS_FIT 1 136 | #define CONFIG_BOOTP_PXE 1 137 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 138 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 139 | #define CONFIG_AXP_ALDO1_VOLT 0 140 | #define CONFIG_CMD_BOOTFLOW 1 141 | #define CONFIG_POWER 1 142 | #define CONFIG_DM_MMC 1 143 | #define CONFIG_CC_HAS_ASM_INLINE 1 144 | #define CONFIG_USE_PRIVATE_LIBGCC 1 145 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 146 | #define CONFIG_BUILD_TARGET "" 147 | #define CONFIG_SUNXI_DRAM_DW 1 148 | #define CONFIG_EFI_LOADER_HII 1 149 | #define CONFIG_DM_SERIAL 1 150 | #define CONFIG_USB_EHCI_GENERIC 1 151 | #define CONFIG_USB_KEYBOARD_FN_KEYS 1 152 | #define CONFIG_ETH 1 153 | #define CONFIG_DM_I2C 1 154 | #define CONFIG_PXE_UTILS 1 155 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 156 | #define CONFIG_USB0_ID_DET "" 157 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 158 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 159 | #define CONFIG_AXP_ALDO3_VOLT 3000 160 | #define CONFIG_REGEX 1 161 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 162 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 163 | #define CONFIG_DOS_PARTITION 1 164 | #define CONFIG_PINCONF 1 165 | #define CONFIG_PHY_ADDR 1 166 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 167 | #define CONFIG_CMD_ENV_EXISTS 1 168 | #define CONFIG_USB_OHCI_HCD 1 169 | #define CONFIG_IMX_DCD_ADDR 0x00910000 170 | #define CONFIG_SYS_64BIT_LBA 1 171 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 172 | #define CONFIG_BOOT_DEFAULTS 1 173 | #define CONFIG_SPL_STACK 0x8000 174 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 175 | #define CONFIG_TEXT_BASE 0x4a000000 176 | #define CONFIG_ENV_SIZE 0x10000 177 | #define CONFIG_STACK_SIZE 0x1000000 178 | #define CONFIG_FIT_PRINT 1 179 | #define CONFIG_IDENT_STRING " Allwinner Technology" 180 | #define CONFIG_MMC_SUNXI_HAS_NEW_MODE 1 181 | #define CONFIG_SYS_MMC_ENV_DEV 0 182 | #define CONFIG_BOOTP_DNS 1 183 | #define CONFIG_CMDLINE_EDITING 1 184 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 185 | #define CONFIG_CMD_SETEXPR 1 186 | #define CONFIG_BOOTM_EFI 1 187 | #define CONFIG_BOOTMETH_EFILOADER 1 188 | #define CONFIG_DM_DEVICE_REMOVE 1 189 | #define CONFIG_SYS_UBOOT_START 0x4a000000 190 | #define CONFIG_PLATFORM_ELFENTRY "_start" 191 | #define CONFIG_AXP_DCDC5_VOLT 1500 192 | #define CONFIG_AXP_DCDC3_VOLT 1100 193 | #define CONFIG_TOOLS_MD5 1 194 | #define CONFIG_CLK_SUNXI 1 195 | #define CONFIG_TOOLS_SHA1 1 196 | #define CONFIG_DM_SCSI 1 197 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 198 | #define CONFIG_SYS_CACHELINE_SIZE 64 199 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 200 | #define CONFIG_CMD_EXPORTENV 1 201 | #define CONFIG_CMD_MMC 1 202 | #define CONFIG_DM_EVENT 1 203 | #define CONFIG_DM_DEV_READ_INLINE 1 204 | #define CONFIG_PINCTRL 1 205 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 206 | #define CONFIG_CMD_RANDOM 1 207 | #define CONFIG_WDT 1 208 | #define CONFIG_USB_GADGET 1 209 | #define CONFIG_SYS_BOOTM_LEN 0x800000 210 | #define CONFIG_ARCH_SUNXI 1 211 | #define CONFIG_BOOTM_VXWORKS 1 212 | #define CONFIG_BOOTM_LINUX 1 213 | #define CONFIG_DM_REGULATOR_COMMON 1 214 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 256 215 | #define CONFIG_CMD_DHCP 1 216 | #define CONFIG_FS_FAT 1 217 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 218 | #define CONFIG_BOOTP_HOSTNAME 1 219 | #define CONFIG_DM_ETH 1 220 | #define CONFIG_BINMAN_FDT 1 221 | #define CONFIG_EFI_PARTITION 1 222 | #define CONFIG_CMD_PART 1 223 | #define CONFIG_AUTO_COMPLETE 1 224 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 225 | #define CONFIG_SPL_SERIAL_PRESENT 1 226 | #define CONFIG_SIMPLE_BUS 1 227 | #define CONFIG_PINCTRL_SUNXI 1 228 | #define CONFIG_CLANG_VERSION 0 229 | #define CONFIG_SYS_NS16550_REG_SIZE -4 230 | #define CONFIG_CMD_CYCLIC 1 231 | #define CONFIG_CMD_CRC32 1 232 | #define CONFIG_SPL_GPIO 1 233 | #define CONFIG_PHY_GIGE 1 234 | #define CONFIG_PRINTF 1 235 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 236 | #define CONFIG_I2C 1 237 | #define CONFIG_AXP_DLDO3_VOLT 0 238 | #define CONFIG_BOOTP_BOOTPATH 1 239 | #define CONFIG_SYS_BOARD "sunxi" 240 | #define CONFIG_CMD_I2C 1 241 | #define CONFIG_BOOTM_NETBSD 1 242 | #define CONFIG_RESET_SUNXI 1 243 | #define CONFIG_NET_RETRY_COUNT 5 244 | #define CONFIG_TOOLS_CRC32 1 245 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 246 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 247 | #define CONFIG_SYS_CONFIG_NAME "sun8i" 248 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 249 | #define CONFIG_SUN6I_PRCM 1 250 | #define CONFIG_LIBATA 1 251 | #define CONFIG_CMD_BOOTP 1 252 | #define CONFIG_AXP_ALDO2_VOLT 2500 253 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 254 | #define CONFIG_CRC8 1 255 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 256 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 257 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 258 | #define CONFIG_DM_GPIO 1 259 | #define CONFIG_WATCHDOG 1 260 | #define CONFIG_MMC_QUIRKS 1 261 | #define CONFIG_ARMV7_VIRT 1 262 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 263 | #define CONFIG_TOOLS_SHA256 1 264 | #define CONFIG_USE_ARCH_MEMSET 1 265 | #define CONFIG_CLK_SUN8I_R40 1 266 | #define CONFIG_NET 1 267 | #define CONFIG_SHA256 1 268 | #define CONFIG_PINMUX 1 269 | #define CONFIG_DM_RESET 1 270 | #define CONFIG_DM_WARN 1 271 | #define CONFIG_BOOTP_SUBNETMASK 1 272 | #define CONFIG_SPL_USE_TINY_PRINTF 1 273 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 274 | #define CONFIG_SUNXI_GPIO 1 275 | #define CONFIG_SYS_CBSIZE 1024 276 | #define CONFIG_SPL_I2C 1 277 | #define CONFIG_USB0_VBUS_PIN "" 278 | #define CONFIG_PARTITION_UUIDS 1 279 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 280 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 281 | #define CONFIG_SYS_ARM_CACHE_CP15 1 282 | #define CONFIG_CMD_GO 1 283 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 284 | #define CONFIG_EFI_CAPSULE_MAX 15 285 | #define CONFIG_ENV_SOURCE_FILE "" 286 | #define CONFIG_ISO_PARTITION 1 287 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 288 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 289 | #define CONFIG_CPU_V7_HAS_VIRT 1 290 | #define CONFIG_EVENT_DYNAMIC 1 291 | #define CONFIG_BOOTDELAY 2 292 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 293 | #define CONFIG_CMD_IMI 1 294 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 295 | #define CONFIG_GPIO 1 296 | #define CONFIG_SYS_HZ 1000 297 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 298 | #define CONFIG_DEVICE_TREE_INCLUDES "" 299 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 300 | #define CONFIG_CMD_FS_GENERIC 1 301 | #define CONFIG_SPL_LEGACY_BLOCK 1 302 | #define CONFIG_SPRINTF 1 303 | #define CONFIG_CMD_SCSI 1 304 | #define CONFIG_SUPPORT_OF_CONTROL 1 305 | #define CONFIG_CMD_BLOCK_CACHE 1 306 | #define CONFIG_SPL_ARMV7_SET_CORTEX_SMPEN 1 307 | #define CONFIG_DISTRO_DEFAULTS 1 308 | #define CONFIG_SYS_LONGHELP 1 309 | #define CONFIG_BOOTMETH_VBE 1 310 | #define CONFIG_ENV_MIN_ENTRIES 64 311 | #define CONFIG_CMD_EXT2 1 312 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 313 | #define CONFIG_ARMV7_PSCI_0_1 1 314 | #define CONFIG_CLK_SUN6I_A31_R 1 315 | #define CONFIG_DRAM_ODT_EN 1 316 | #define CONFIG_LAST_STAGE_INIT 1 317 | #define CONFIG_DM_STDIO 1 318 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 319 | #define CONFIG_PREBOOT_DEFINED 1 320 | #define CONFIG_LOCALVERSION "" 321 | #define CONFIG_SERIAL 1 322 | #define CONFIG_SPL_STRTO 1 323 | #define CONFIG_SUPPORT_SPL 1 324 | #define CONFIG_CMDLINE 1 325 | #define CONFIG_DTOC 1 326 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 327 | #define CONFIG_SPL_BANNER_PRINT 1 328 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 329 | #define CONFIG_CMD_LOADB 1 330 | #define CONFIG_CMD_RUN 1 331 | #define CONFIG_CMD_PINMUX 1 332 | #define CONFIG_USB_KEYBOARD 1 333 | #define CONFIG_SUN8I_EMAC 1 334 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 335 | #define CONFIG_I2C0_ENABLE 1 336 | #define CONFIG_SYS_PROMPT "=> " 337 | #define CONFIG_LINKER_LIST_ALIGN 4 338 | #define CONFIG_CMD_MEMORY 1 339 | #define CONFIG_HUSH_PARSER 1 340 | #define CONFIG_SUNXI_DRAM_DDR3 1 341 | #define CONFIG_CMD_BOOTZ 1 342 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 343 | #define CONFIG_SUNXI_AHCI 1 344 | #define CONFIG_SCSI 1 345 | #define CONFIG_SPL_MMC 1 346 | #define CONFIG_AHCI 1 347 | #define CONFIG_BOARD_LATE_INIT 1 348 | #define CONFIG_CMD_XIMG 1 349 | #define CONFIG_CMD_ECHO 1 350 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 351 | #define CONFIG_SPL 1 352 | #define CONFIG_TOOLS_FIT_VERBOSE 1 353 | #define CONFIG_USB_OHCI_NEW 1 354 | #define CONFIG_PHYLIB 1 355 | #define CONFIG_MMC_WRITE 1 356 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 357 | #define CONFIG_DM_PMIC 1 358 | #define CONFIG_LOCALVERSION_AUTO 1 359 | #define CONFIG_COUNTER_FREQUENCY 24000000 360 | #define CONFIG_DRAM_CLK 576 361 | #define CONFIG_AXP_DCDC4_VOLT 0 362 | #define CONFIG_PHY_ADDR_ENABLE 1 363 | #define CONFIG_ARMV7_PSCI 1 364 | #define CONFIG_SYS_SRAM_BASE 0x0 365 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 366 | #define CONFIG_SPL_LEGACY_IMAGE_FORMAT 1 367 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 368 | #define CONFIG_MMC_HW_PARTITIONING 1 369 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 370 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 371 | #define CONFIG_SYS_ARCH "arm" 372 | #define CONFIG_CYCLIC 1 373 | #define CONFIG_MD5 1 374 | #define CONFIG_SYS_I2C_MVTWSI 1 375 | #define CONFIG_CMD_DM 1 376 | #define CONFIG_USB_HOST 1 377 | #define CONFIG_SPL_BSS_LIMIT 1 378 | #define CONFIG_LIB_UUID 1 379 | #define CONFIG_ARMV7_LPAE 1 380 | #define CONFIG_SYS_CACHE_SHIFT_6 1 381 | #define CONFIG_SUPPORT_ACPI 1 382 | #define CONFIG_HAS_VBAR 1 383 | #define CONFIG_SPL_SERIAL 1 384 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 385 | #define CONFIG_USE_BOOTCOMMAND 1 386 | #define CONFIG_CPU_V7A 1 387 | #define CONFIG_LMB 1 388 | #define CONFIG_EXPERT 1 389 | #define CONFIG_CMD_EFICONFIG 1 390 | #define CONFIG_BOOTMETH_EXTLINUX 1 391 | #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE 1 392 | #define CONFIG_MMC_VERBOSE 1 393 | #define CONFIG_SYS_SOC "sunxi" 394 | #define CONFIG_BOOTMETH_GLOBAL 1 395 | #define CONFIG_MMC 1 396 | #define CONFIG_BAUDRATE 115200 397 | #define CONFIG_CHARSET 1 398 | #define CONFIG_EVENT 1 399 | #define CONFIG_ARMV7_NONSEC 1 400 | #define CONFIG_AXP221_POWER 1 401 | #define CONFIG_SPL_SEPARATE_BSS 1 402 | #define CONFIG_SYS_SPD_BUS_NUM 0 403 | #define CONFIG_ARCH_SUPPORT_PSCI 1 404 | #define CONFIG_CC_IS_GCC 1 405 | #define CONFIG_MISC_INIT_R 1 406 | #define CONFIG_SPL_TARGET "" 407 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 408 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 409 | #define CONFIG_SPL_SHA1 1 410 | #define CONFIG_RGMII 1 411 | #define CONFIG_FAT_WRITE 1 412 | #define CONFIG_PARTITIONS 1 413 | #define CONFIG_CMD_ITEST 1 414 | #define CONFIG_LMB_MAX_REGIONS 16 415 | #define CONFIG_DISPLAY_CPUINFO 1 416 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv7" 417 | #define CONFIG_SYS_I2C_SLAVE 0x7f 418 | #define CONFIG_CMD_GPIO 1 419 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 420 | #define CONFIG_DM_USB 1 421 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 422 | #define CONFIG_PHY 1 423 | #define CONFIG_SERIAL_PRESENT 1 424 | #define CONFIG_OF_CONTROL 1 425 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 426 | #define CONFIG_FS_EXT4 1 427 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" 428 | #define CONFIG_CMD_FDT 1 429 | #define CONFIG_SYS_DEVICE_NULLDEV 1 430 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 431 | #define CONFIG_CMD_LOADS 1 432 | #define CONFIG_CMD_FAT 1 433 | #define CONFIG_TOOLS_LIBCRYPTO 1 434 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 435 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 436 | #define CONFIG_BLOCK_CACHE 1 437 | #define CONFIG_SPL_SHA256 1 438 | #define CONFIG_PYLIBFDT 1 439 | #define CONFIG_CPU_V7_HAS_NONSEC 1 440 | #define CONFIG_TOOLS_OF_LIBFDT 1 441 | #define CONFIG_AXP_ELDO1_VOLT 0 442 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 443 | #define CONFIG_SPL_SYS_I2C_LEGACY 1 444 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 445 | #define CONFIG_SYS_XTRACE 1 446 | #define CONFIG_GCC_VERSION 90400 447 | #define CONFIG_AXP_DCDC2_VOLT 1100 448 | #define CONFIG_HAVE_TEXT_BASE 1 449 | #define CONFIG_PINCTRL_SUN7I_A20 1 450 | #define CONFIG_CMD_NET 1 451 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 452 | #define CONFIG_MENU 1 453 | #define CONFIG_LIB_RAND 1 454 | #define CONFIG_BOOTSTD 1 455 | #define CONFIG_CONS_INDEX 1 456 | #define CONFIG_DEFAULT_DEVICE_TREE "sun8i-v40-bananapi-m2-berry" 457 | #define CONFIG_SPL_TEXT_BASE 0x00060 458 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 459 | #define CONFIG_NET_TFTP_VARS 1 460 | #define CONFIG_MACH_SUN8I_R40 1 461 | #define CONFIG_SPL_LOGLEVEL 4 462 | #define CONFIG_CMD_MDIO 1 463 | #define CONFIG_PMIC_AXP 1 464 | #define CONFIG_CMD_BOOTEFI 1 465 | #define CONFIG_FIT 1 466 | #define CONFIG_AUTOBOOT 1 467 | #define CONFIG_ENV_MAX_ENTRIES 512 468 | #define CONFIG_FWU_NUM_BANKS 2 469 | #define CONFIG_SPL_PAD_TO 0x8000 470 | #define CONFIG_PINCTRL_FULL 1 471 | #define CONFIG_TOOLS_SHA384 1 472 | #define CONFIG_DM 1 473 | #define CONFIG_BOOTP_GATEWAY 1 474 | #define CONFIG_CMD_MII 1 475 | #define CONFIG_CMD_GPT 1 476 | #define CONFIG_DM_KEYBOARD 1 477 | #define CONFIG_HAS_THUMB2 1 478 | #define CONFIG_BOOTM_RTEMS 1 479 | #define CONFIG_USB_OHCI_GENERIC 1 480 | #define CONFIG_SYSRESET_WATCHDOG 1 481 | #define CONFIG_SYS_MALLOC_F 1 482 | #define CONFIG_ERR_PTR_OFFSET 0x0 483 | #define CONFIG_SPL_PRINTF 1 484 | #define CONFIG_TFTP_WINDOWSIZE 1 485 | #define CONFIG_CMD_TFTPBOOT 1 486 | #define CONFIG_SUPPORT_RAW_INITRD 1 487 | #define CONFIG_SPL_USE_ARCH_MEMCPY 1 488 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 489 | #define CONFIG_CMD_IMPORTENV 1 490 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 491 | #define CONFIG_SYS_FDT_PAD 0x3000 492 | #define CONFIG_DRAM_ZQ 3881979 493 | #define CONFIG_TFTP_BLOCKSIZE 1468 494 | #define CONFIG_STRTO 1 495 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 496 | #define CONFIG_PINCTRL_GENERIC 1 497 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 498 | #define CONFIG_SUNXI_GEN_SUN6I 1 499 | #define CONFIG_CMD_ELF 1 500 | #define CONFIG_MACH_SUN8I 1 501 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 0 502 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0x80000000 503 | #define CONFIG_SYS_PBSIZE 1024 504 | #define CONFIG_AXP_DLDO4_VOLT 2500 505 | #define CONFIG_AXP_DLDO2_VOLT 0 506 | #define CONFIG_PMIC_CHILDREN 1 507 | #define CONFIG_CMD_PXE 1 508 | #define CONFIG_USB3_VBUS_PIN "" 509 | #define CONFIG_AXP_DCDC1_VOLT 3300 510 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 511 | #define CONFIG_TOOLS_SHA512 1 512 | #define CONFIG_RANDOM_UUID 1 513 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 514 | #define CONFIG_OF_TAG_MIGRATE 1 515 | #define CONFIG_AXP_PMIC_BUS 1 516 | #define CONFIG_SAVEENV 1 517 | #define CONFIG_ENV_IS_IN_FAT 1 518 | #define CONFIG_SYS_ARM_ARCH 7 519 | #define CONFIG_CMD_SOURCE 1 520 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 521 | #define CONFIG_CMD_SYSBOOT 1 522 | #define CONFIG_INPUT 1 523 | #define CONFIG_EFI_ECPT 1 524 | #define CONFIG_SPL_STACK_R 1 525 | 526 | #undef CONFIG_SPL_BANNER_PRINT 527 | #undef CONFIG_DM_SERIAL 528 | #ifndef DRAM_APP 529 | #undef CONFIG_AXP221_POWER /* I2C not supported yet */ 530 | #endif 531 | #include 532 | #include 533 | -------------------------------------------------------------------------------- /src/configs/T113_S3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_ENV_SUPPORT 1 8 | #define CONFIG_DISPLAY_BOARDINFO 1 9 | #define CONFIG_CRC32 1 10 | #define CONFIG_CMD_BOOTM 1 11 | #define CONFIG_ENV_FAT_FILE "uboot.env" 12 | #define CONFIG_CMD_EXT4 1 13 | #define CONFIG_DRAM_SUN20I_D1 1 14 | #define CONFIG_SMBIOS 1 15 | #define CONFIG_TOOLS_FIT_PRINT 1 16 | #define CONFIG_SYS_ARM_MMU 1 17 | #define CONFIG_SYS_THUMB_BUILD 1 18 | #define CONFIG_SYS_MAXARGS 16 19 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 20 | #define CONFIG_SUNXI_DRAM_TYPE 3 21 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 22 | #define CONFIG_LOGLEVEL 4 23 | #define CONFIG_SYS_MALLOC_LEN 0x220000 24 | #define CONFIG_OF_BOARD_SETUP 1 25 | #define CONFIG_ZLIB 1 26 | #define CONFIG_SPL_SIZE_LIMIT 0x0 27 | #define CONFIG_EFI_DT_FIXUP 1 28 | #define CONFIG_ARP_TIMEOUT 5000 29 | #define CONFIG_LIB_ELF 1 30 | #define CONFIG_OF_LIBFDT 1 31 | #define CONFIG_CMD_EDITENV 1 32 | #define CONFIG_BOOTDEV_ETH 1 33 | #define CONFIG_SPL_USE_ARCH_MEMSET 1 34 | #define CONFIG_PINCONF_RECURSIVE 1 35 | #define CONFIG_PREBOOT "" 36 | #define CONFIG_SYSRESET_CMD_RESET 1 37 | #define CONFIG_SPL_FRAMEWORK 1 38 | #define CONFIG_LMB_USE_MAX_REGIONS 1 39 | #define CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS 100 40 | #define CONFIG_BOOTP_PXE_CLIENTARCH 0x15 41 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 42 | #define CONFIG_USE_ARCH_MEMCPY 1 43 | #define CONFIG_BLK 1 44 | #define CONFIG_SYS_SRAM_SIZE 0x0 45 | #define CONFIG_USB 1 46 | #define CONFIG_ARM_ASM_UNIFIED 1 47 | #define CONFIG_OF_LIBFDT_OVERLAY 1 48 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 49 | #define CONFIG_OF_SEPARATE 1 50 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 51 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 52 | #define CONFIG_GZIP 1 53 | #define CONFIG_NR_DRAM_BANKS 1 54 | #define CONFIG_SHA1 1 55 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x20000 56 | #define CONFIG_DM_REGULATOR 1 57 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 58 | #define CONFIG_WDT_SUNXI 1 59 | #define CONFIG_HASH 1 60 | #define CONFIG_CMD_CONSOLE 1 61 | #define CONFIG_CMD_BOOTD 1 62 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 63 | #define CONFIG_SYS_NS16550 1 64 | #define CONFIG_MMC_SUNXI 1 65 | #define CONFIG_SYS_CLK_FREQ 1008000000 66 | #define CONFIG_SDP_LOADADDR 0x0 67 | #define CONFIG_DEFAULT_FDT_FILE "" 68 | #define CONFIG_SPL_SYS_MALLOC_F 1 69 | #define CONFIG_OF_TRANSLATE 1 70 | #define CONFIG_USB1_VBUS_PIN "" 71 | #define CONFIG_SYS_MONITOR_LEN 786432 72 | #define CONFIG_USB0_VBUS_DET "" 73 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 74 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 75 | #define CONFIG_USB2_VBUS_PIN "" 76 | #define CONFIG_USE_PREBOOT 1 77 | #define CONFIG_SPL_SPRINTF 1 78 | #define CONFIG_HAVE_PRIVATE_LIBGCC 1 79 | #define CONFIG_BOOTM_PLAN9 1 80 | #define CONFIG_SYS_MMC_ENV_PART 0 81 | #define CONFIG_CMD_BDI 1 82 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 83 | #define CONFIG_ARM 1 84 | #define CONFIG_CREATE_ARCH_SYMLINK 1 85 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 86 | #define CONFIG_SPL_SYS_THUMB_BUILD 1 87 | #define CONFIG_DM_SEQ_ALIAS 1 88 | #define CONFIG_SYS_RX_ETH_BUFFER 4 89 | #define CONFIG_PRE_CONSOLE_BUFFER 1 90 | #define CONFIG_GMAC_TX_DELAY 0 91 | #define CONFIG_OF_REAL 1 92 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 93 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 94 | #define CONFIG_CMD_SLEEP 1 95 | #define CONFIG_EFI_LOADER 1 96 | #define CONFIG_CMD_PING 1 97 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 98 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 99 | #define CONFIG_PRE_CON_BUF_SZ 4096 100 | #define CONFIG_OF_LIST "sun8i-t113s-mangopi-mq-r-t113" 101 | #define CONFIG_CMD_SAVEENV 1 102 | #define CONFIG_ARCH_SUPPORTS_LTO 1 103 | #define CONFIG_SYSRESET 1 104 | #define CONFIG_CLK 1 105 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 106 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 107 | #define CONFIG_BINMAN 1 108 | #define CONFIG_SPL_MAX_SIZE 0x7fa0 109 | #define CONFIG_DM_REGULATOR_FIXED 1 110 | #define CONFIG_DRAM_SUNXI_TPR12 0x46 111 | #define CONFIG_SYS_CPU "armv7" 112 | #define CONFIG_FIT_FULL_CHECK 1 113 | #define CONFIG_NETDEVICES 1 114 | #define CONFIG_PHY_RESET_DELAY 0 115 | #define CONFIG_SPL_POWER 1 116 | #define CONFIG_PHY_SUN4I_USB 1 117 | #define CONFIG_TOOLS_FIT 1 118 | #define CONFIG_BOOTP_PXE 1 119 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 120 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 121 | #define CONFIG_CMD_BOOTFLOW 1 122 | #define CONFIG_POWER 1 123 | #define CONFIG_DM_MMC 1 124 | #define CONFIG_CC_HAS_ASM_INLINE 1 125 | #define CONFIG_USE_PRIVATE_LIBGCC 1 126 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 127 | #define CONFIG_BUILD_TARGET "" 128 | #define CONFIG_EFI_LOADER_HII 1 129 | #define CONFIG_DM_SERIAL 1 130 | #define CONFIG_ETH 1 131 | #define CONFIG_DM_I2C 1 132 | #define CONFIG_PXE_UTILS 1 133 | #define CONFIG_MACH_SUN8I_R528 1 134 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 135 | #define CONFIG_USB0_ID_DET "" 136 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 137 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 138 | #define CONFIG_REGEX 1 139 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 140 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 141 | #define CONFIG_DOS_PARTITION 1 142 | #define CONFIG_PINCONF 1 143 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 144 | #define CONFIG_CMD_ENV_EXISTS 1 145 | #define CONFIG_SUNXI_NO_PMIC 1 146 | #define CONFIG_IMX_DCD_ADDR 0x00910000 147 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 148 | #define CONFIG_BOOT_DEFAULTS 1 149 | #define CONFIG_SPL_STACK 0x40000 150 | #define CONFIG_SUNXI_GEN_NCAT2 1 151 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 152 | #define CONFIG_TEXT_BASE 0x42e00000 153 | #define CONFIG_ENV_SIZE 0x10000 154 | #define CONFIG_DRAM_SUNXI_TPR11 0x340000 155 | #define CONFIG_STACK_SIZE 0x1000000 156 | #define CONFIG_FIT_PRINT 1 157 | #define CONFIG_IDENT_STRING " Allwinner Technology" 158 | #define CONFIG_MMC_SUNXI_HAS_NEW_MODE 1 159 | #define CONFIG_SYS_MMC_ENV_DEV 0 160 | #define CONFIG_BOOTP_DNS 1 161 | #define CONFIG_CMDLINE_EDITING 1 162 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 163 | #define CONFIG_CMD_SETEXPR 1 164 | #define CONFIG_BOOTM_EFI 1 165 | #define CONFIG_BOOTMETH_EFILOADER 1 166 | #define CONFIG_DM_DEVICE_REMOVE 1 167 | #define CONFIG_SYS_UBOOT_START 0x42e00000 168 | #define CONFIG_PLATFORM_ELFENTRY "_start" 169 | #define CONFIG_SUNXI_DRAM_TYPE_DDR3 1 170 | #define CONFIG_TOOLS_MD5 1 171 | #define CONFIG_CLK_SUNXI 1 172 | #define CONFIG_TOOLS_SHA1 1 173 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 174 | #define CONFIG_SYS_CACHELINE_SIZE 64 175 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 176 | #define CONFIG_CMD_EXPORTENV 1 177 | #define CONFIG_CMD_MMC 1 178 | #define CONFIG_DM_EVENT 1 179 | #define CONFIG_DM_DEV_READ_INLINE 1 180 | #define CONFIG_PINCTRL 1 181 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 182 | #define CONFIG_CMD_RANDOM 1 183 | #define CONFIG_WDT 1 184 | #define CONFIG_USB_GADGET 1 185 | #define CONFIG_SYS_BOOTM_LEN 0x800000 186 | #define CONFIG_ARCH_SUNXI 1 187 | #define CONFIG_BOOTM_VXWORKS 1 188 | #define CONFIG_PINCTRL_SUN20I_D1 1 189 | #define CONFIG_BOOTM_LINUX 1 190 | #define CONFIG_DM_REGULATOR_COMMON 1 191 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 128 192 | #define CONFIG_CMD_DHCP 1 193 | #define CONFIG_FS_FAT 1 194 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 195 | #define CONFIG_BOOTP_HOSTNAME 1 196 | #define CONFIG_DM_ETH 1 197 | #define CONFIG_BINMAN_FDT 1 198 | #define CONFIG_EFI_PARTITION 1 199 | #define CONFIG_CMD_PART 1 200 | #define CONFIG_AUTO_COMPLETE 1 201 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 202 | #define CONFIG_SPL_SERIAL_PRESENT 1 203 | #define CONFIG_SIMPLE_BUS 1 204 | #define CONFIG_PINCTRL_SUNXI 1 205 | #define CONFIG_CLANG_VERSION 0 206 | #define CONFIG_SYS_NS16550_REG_SIZE -4 207 | #define CONFIG_CMD_CYCLIC 1 208 | #define CONFIG_CMD_CRC32 1 209 | #define CONFIG_SPL_GPIO 1 210 | #define CONFIG_PRINTF 1 211 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 212 | #define CONFIG_I2C 1 213 | #define CONFIG_BOOTP_BOOTPATH 1 214 | #define CONFIG_DRAM_SUNXI_ODT_EN 0x0 215 | #define CONFIG_SYS_BOARD "sunxi" 216 | #define CONFIG_BOOTM_NETBSD 1 217 | #define CONFIG_RESET_SUNXI 1 218 | #define CONFIG_NET_RETRY_COUNT 5 219 | #define CONFIG_TOOLS_CRC32 1 220 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 221 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 222 | #define CONFIG_SYS_CONFIG_NAME "sun8i" 223 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 224 | #define CONFIG_CMD_BOOTP 1 225 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 226 | #define CONFIG_CRC8 1 227 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 228 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 229 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 230 | #define CONFIG_DM_GPIO 1 231 | #define CONFIG_WATCHDOG 1 232 | #define CONFIG_MMC_QUIRKS 1 233 | #define CONFIG_ARMV7_VIRT 1 234 | #define CONFIG_BOOTMETH_EXTLINUX_PXE 1 235 | #define CONFIG_TOOLS_SHA256 1 236 | #define CONFIG_USE_ARCH_MEMSET 1 237 | #define CONFIG_NET 1 238 | #define CONFIG_SHA256 1 239 | #define CONFIG_PINMUX 1 240 | #define CONFIG_DM_RESET 1 241 | #define CONFIG_DM_WARN 1 242 | #define CONFIG_BOOTP_SUBNETMASK 1 243 | #define CONFIG_SPL_USE_TINY_PRINTF 1 244 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 245 | #define CONFIG_SUNXI_GPIO 1 246 | #define CONFIG_SYS_CBSIZE 1024 247 | #define CONFIG_USB0_VBUS_PIN "" 248 | #define CONFIG_PARTITION_UUIDS 1 249 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 250 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 251 | #define CONFIG_SYS_ARM_CACHE_CP15 1 252 | #define CONFIG_CMD_GO 1 253 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 254 | #define CONFIG_EFI_CAPSULE_MAX 15 255 | #define CONFIG_ENV_SOURCE_FILE "" 256 | #define CONFIG_ISO_PARTITION 1 257 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 258 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 259 | #define CONFIG_DRAM_SUNXI_TPR0 0x004a2195 260 | #define CONFIG_CPU_V7_HAS_VIRT 1 261 | #define CONFIG_EVENT_DYNAMIC 1 262 | #define CONFIG_BOOTDELAY 2 263 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 264 | #define CONFIG_CMD_IMI 1 265 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 266 | #define CONFIG_GPIO 1 267 | #define CONFIG_SYS_HZ 1000 268 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 269 | #define CONFIG_DEVICE_TREE_INCLUDES "" 270 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 271 | #define CONFIG_CMD_FS_GENERIC 1 272 | #define CONFIG_SPL_LEGACY_BLOCK 1 273 | #define CONFIG_SPRINTF 1 274 | #define CONFIG_SUPPORT_OF_CONTROL 1 275 | #define CONFIG_CMD_BLOCK_CACHE 1 276 | #define CONFIG_SPL_ARMV7_SET_CORTEX_SMPEN 1 277 | #define CONFIG_DISTRO_DEFAULTS 1 278 | #define CONFIG_SYS_LONGHELP 1 279 | #define CONFIG_BOOTMETH_VBE 1 280 | #define CONFIG_ENV_MIN_ENTRIES 64 281 | #define CONFIG_CMD_EXT2 1 282 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 283 | #define CONFIG_ARMV7_PSCI_0_1 1 284 | #define CONFIG_LAST_STAGE_INIT 1 285 | #define CONFIG_DM_STDIO 1 286 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 287 | #define CONFIG_LOCALVERSION "" 288 | #define CONFIG_SERIAL 1 289 | #define CONFIG_SPL_STRTO 1 290 | #define CONFIG_SUPPORT_SPL 1 291 | #define CONFIG_CMDLINE 1 292 | #define CONFIG_DTOC 1 293 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 294 | #define CONFIG_SPL_BANNER_PRINT 1 295 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 296 | #define CONFIG_CMD_LOADB 1 297 | #define CONFIG_CMD_RUN 1 298 | #define CONFIG_CMD_PINMUX 1 299 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 300 | #define CONFIG_SYS_PROMPT "=> " 301 | #define CONFIG_LINKER_LIST_ALIGN 4 302 | #define CONFIG_CMD_MEMORY 1 303 | #define CONFIG_HUSH_PARSER 1 304 | #define CONFIG_CMD_BOOTZ 1 305 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 306 | #define CONFIG_SPL_MMC 1 307 | #define CONFIG_SUNXI_NEW_PINCTRL 1 308 | #define CONFIG_BOARD_LATE_INIT 1 309 | #define CONFIG_CMD_XIMG 1 310 | #define CONFIG_CMD_ECHO 1 311 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 312 | #define CONFIG_SPL 1 313 | #define CONFIG_TOOLS_FIT_VERBOSE 1 314 | #define CONFIG_MMC_WRITE 1 315 | #define CONFIG_INITIAL_USB_SCAN_DELAY 0 316 | #define CONFIG_LOCALVERSION_AUTO 1 317 | #define CONFIG_COUNTER_FREQUENCY 24000000 318 | #define CONFIG_DRAM_CLK 792 319 | #define CONFIG_ARMV7_PSCI 1 320 | #define CONFIG_SYS_SRAM_BASE 0x0 321 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 322 | #define CONFIG_SPL_LEGACY_IMAGE_FORMAT 1 323 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 324 | #define CONFIG_MMC_HW_PARTITIONING 1 325 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 326 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 327 | #define CONFIG_SYS_ARCH "arm" 328 | #define CONFIG_CYCLIC 1 329 | #define CONFIG_MD5 1 330 | #define CONFIG_CMD_DM 1 331 | #define CONFIG_SPL_BSS_LIMIT 1 332 | #define CONFIG_LIB_UUID 1 333 | #define CONFIG_ARMV7_LPAE 1 334 | #define CONFIG_SYS_CACHE_SHIFT_6 1 335 | #define CONFIG_SUPPORT_ACPI 1 336 | #define CONFIG_HAS_VBAR 1 337 | #define CONFIG_SPL_SERIAL 1 338 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 339 | #define CONFIG_USE_BOOTCOMMAND 1 340 | #define CONFIG_CPU_V7A 1 341 | #define CONFIG_LMB 1 342 | #define CONFIG_EXPERT 1 343 | #define CONFIG_CMD_EFICONFIG 1 344 | #define CONFIG_BOOTMETH_EXTLINUX 1 345 | #define CONFIG_MMC_VERBOSE 1 346 | #define CONFIG_SYS_SOC "sunxi" 347 | #define CONFIG_BOOTMETH_GLOBAL 1 348 | #define CONFIG_MMC 1 349 | #define CONFIG_BAUDRATE 115200 350 | #define CONFIG_CHARSET 1 351 | #define CONFIG_ARM_GIC_BASE_ADDRESS 0x03020000 352 | #define CONFIG_EVENT 1 353 | #define CONFIG_ARMV7_NONSEC 1 354 | #define CONFIG_SPL_SEPARATE_BSS 1 355 | #define CONFIG_ARCH_SUPPORT_PSCI 1 356 | #define CONFIG_CC_IS_GCC 1 357 | #define CONFIG_MISC_INIT_R 1 358 | #define CONFIG_SPL_TARGET "" 359 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 360 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 361 | #define CONFIG_SPL_SHA1 1 362 | #define CONFIG_FAT_WRITE 1 363 | #define CONFIG_PARTITIONS 1 364 | #define CONFIG_CMD_ITEST 1 365 | #define CONFIG_LMB_MAX_REGIONS 16 366 | #define CONFIG_DISPLAY_CPUINFO 1 367 | #define CONFIG_BOOTP_VCI_STRING "U-Boot.armv7" 368 | #define CONFIG_CMD_GPIO 1 369 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 370 | #define CONFIG_DM_USB 1 371 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 372 | #define CONFIG_PHY 1 373 | #define CONFIG_SERIAL_PRESENT 1 374 | #define CONFIG_OF_CONTROL 1 375 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 376 | #define CONFIG_FS_EXT4 1 377 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" 378 | #define CONFIG_CMD_FDT 1 379 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 380 | #define CONFIG_CMD_LOADS 1 381 | #define CONFIG_CMD_FAT 1 382 | #define CONFIG_TOOLS_LIBCRYPTO 1 383 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 384 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 385 | #define CONFIG_BLOCK_CACHE 1 386 | #define CONFIG_SPL_SHA256 1 387 | #define CONFIG_PYLIBFDT 1 388 | #define CONFIG_CPU_V7_HAS_NONSEC 1 389 | #define CONFIG_TOOLS_OF_LIBFDT 1 390 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 391 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 392 | #define CONFIG_SYS_XTRACE 1 393 | #define CONFIG_GCC_VERSION 90400 394 | #define CONFIG_HAVE_TEXT_BASE 1 395 | #define CONFIG_CMD_NET 1 396 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 397 | #define CONFIG_MENU 1 398 | #define CONFIG_LIB_RAND 1 399 | #define CONFIG_BOOTSTD 1 400 | #define CONFIG_CONS_INDEX 4 401 | #define CONFIG_DEFAULT_DEVICE_TREE "sun8i-t113s-mangopi-mq-r-t113" 402 | #define CONFIG_SPL_TEXT_BASE 0x20060 403 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 404 | #define CONFIG_NET_TFTP_VARS 1 405 | #define CONFIG_SPL_LOGLEVEL 4 406 | #define CONFIG_CMD_BOOTEFI 1 407 | #define CONFIG_FIT 1 408 | #define CONFIG_AUTOBOOT 1 409 | #define CONFIG_ENV_MAX_ENTRIES 512 410 | #define CONFIG_FWU_NUM_BANKS 2 411 | #define CONFIG_SPL_PAD_TO 0x8000 412 | #define CONFIG_PINCTRL_FULL 1 413 | #define CONFIG_TOOLS_SHA384 1 414 | #define CONFIG_DM 1 415 | #define CONFIG_BOOTP_GATEWAY 1 416 | #define CONFIG_CMD_MII 1 417 | #define CONFIG_CMD_GPT 1 418 | #define CONFIG_DM_KEYBOARD 1 419 | #define CONFIG_HAS_THUMB2 1 420 | #define CONFIG_BOOTM_RTEMS 1 421 | #define CONFIG_SYSRESET_WATCHDOG 1 422 | #define CONFIG_SYS_MALLOC_F 1 423 | #define CONFIG_CLK_SUN20I_D1 1 424 | #define CONFIG_ERR_PTR_OFFSET 0x0 425 | #define CONFIG_SPL_PRINTF 1 426 | #define CONFIG_TFTP_WINDOWSIZE 1 427 | #define CONFIG_CMD_TFTPBOOT 1 428 | #define CONFIG_SUPPORT_RAW_INITRD 1 429 | #define CONFIG_SPL_USE_ARCH_MEMCPY 1 430 | #define CONFIG_DRAM_SUNXI_TPR13 0x34000100 431 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 432 | #define CONFIG_CMD_IMPORTENV 1 433 | #define CONFIG_BOOTP_MAX_ROOT_PATH_LEN 64 434 | #define CONFIG_SYS_FDT_PAD 0x3000 435 | #define CONFIG_DRAM_ZQ 8092667 436 | #define CONFIG_TFTP_BLOCKSIZE 1468 437 | #define CONFIG_STRTO 1 438 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 439 | #define CONFIG_PINCTRL_GENERIC 1 440 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 441 | #define CONFIG_CMD_ELF 1 442 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0x80000000 443 | #define CONFIG_SYS_PBSIZE 1024 444 | #define CONFIG_CMD_PXE 1 445 | #define CONFIG_USB3_VBUS_PIN "" 446 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 447 | #define CONFIG_TOOLS_SHA512 1 448 | #define CONFIG_RANDOM_UUID 1 449 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 450 | #define CONFIG_OF_TAG_MIGRATE 1 451 | #define CONFIG_SAVEENV 1 452 | #define CONFIG_ENV_IS_IN_FAT 1 453 | #define CONFIG_SYS_ARM_ARCH 7 454 | #define CONFIG_CMD_SOURCE 1 455 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 456 | #define CONFIG_CMD_SYSBOOT 1 457 | #define CONFIG_INPUT 1 458 | #define CONFIG_EFI_ECPT 1 459 | #define CONFIG_SPL_STACK_R 1 460 | 461 | #undef CONFIG_SPL_BANNER_PRINT 462 | #undef CONFIG_DM_SERIAL 463 | 464 | #include 465 | #include -------------------------------------------------------------------------------- /src/configs/V3s.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Automatically generated file; DO NOT EDIT. 4 | * U-Boot 2024.01-rc1 Configuration 5 | * 6 | */ 7 | #define CONFIG_ENV_SUPPORT 1 8 | #define CONFIG_SUNXI_DRAM_DDR2_V3S 1 9 | #define CONFIG_DISPLAY_BOARDINFO 1 10 | #define CONFIG_CRC32 1 11 | #define CONFIG_CMD_BOOTM 1 12 | #define CONFIG_ENV_FAT_FILE "uboot.env" 13 | #define CONFIG_CMD_EXT4 1 14 | #define CONFIG_SMBIOS 1 15 | #define CONFIG_TOOLS_FIT_PRINT 1 16 | #define CONFIG_SYS_ARM_MMU 1 17 | #define CONFIG_SYS_THUMB_BUILD 1 18 | #define CONFIG_SYS_MAXARGS 16 19 | #define CONFIG_MULTI_DTB_FIT_UNCOMPRESS_SZ 0x8000 20 | #define CONFIG_SYS_MEM_TOP_HIDE 0x0 21 | #define CONFIG_LOGLEVEL 4 22 | #define CONFIG_SYS_MALLOC_LEN 0x220000 23 | #define CONFIG_OF_BOARD_SETUP 1 24 | #define CONFIG_ZLIB 1 25 | #define CONFIG_SPL_SIZE_LIMIT 0x0 26 | #define CONFIG_EFI_DT_FIXUP 1 27 | #define CONFIG_LIB_ELF 1 28 | #define CONFIG_OF_LIBFDT 1 29 | #define CONFIG_CMD_EDITENV 1 30 | #define CONFIG_SPL_USE_ARCH_MEMSET 1 31 | #define CONFIG_PINCONF_RECURSIVE 1 32 | #define CONFIG_PREBOOT "" 33 | #define CONFIG_SYSRESET_CMD_RESET 1 34 | #define CONFIG_SPL_FRAMEWORK 1 35 | #define CONFIG_LMB_USE_MAX_REGIONS 1 36 | #define CONFIG_BOOTMETH_VBE_SIMPLE 1 37 | #define CONFIG_USE_ARCH_MEMCPY 1 38 | #define CONFIG_BLK 1 39 | #define CONFIG_SYS_SRAM_SIZE 0x0 40 | #define CONFIG_USB 1 41 | #define CONFIG_ARM_ASM_UNIFIED 1 42 | #define CONFIG_OF_LIBFDT_OVERLAY 1 43 | #define CONFIG_BOOTMETH_VBE_SIMPLE_OS 1 44 | #define CONFIG_OF_SEPARATE 1 45 | #define CONFIG_GENERATE_SMBIOS_TABLE 1 46 | #define CONFIG_SYS_ARM_CACHE_WRITEBACK 1 47 | #define CONFIG_GZIP 1 48 | #define CONFIG_NR_DRAM_BANKS 1 49 | #define CONFIG_SHA1 1 50 | #define CONFIG_SUNXI_SRAM_ADDRESS 0x0 51 | #define CONFIG_DM_REGULATOR 1 52 | #define CONFIG_SPL_IMAGE "spl/u-boot-spl.bin" 53 | #define CONFIG_WDT_SUNXI 1 54 | #define CONFIG_ARMV7_SECURE_MAX_SIZE 0xbc00 55 | #define CONFIG_HASH 1 56 | #define CONFIG_CMD_CONSOLE 1 57 | #define CONFIG_CMD_BOOTD 1 58 | #define CONFIG_EFI_UNICODE_CAPITALIZATION 1 59 | #define CONFIG_SYS_NS16550 1 60 | #define CONFIG_MMC_SUNXI 1 61 | #define CONFIG_SYS_CLK_FREQ 1008000000 62 | #define CONFIG_SDP_LOADADDR 0x0 63 | #define CONFIG_DEFAULT_FDT_FILE "" 64 | #define CONFIG_SPL_SYS_MALLOC_F 1 65 | #define CONFIG_OF_TRANSLATE 1 66 | #define CONFIG_USB1_VBUS_PIN "" 67 | #define CONFIG_SYS_MONITOR_LEN 786432 68 | #define CONFIG_USB0_VBUS_DET "" 69 | #define CONFIG_BOOTSTAGE_STASH_ADDR 0x0 70 | #define CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN 0x100000 71 | #define CONFIG_USB2_VBUS_PIN "" 72 | #define CONFIG_USE_PREBOOT 1 73 | #define CONFIG_SPL_SPRINTF 1 74 | #define CONFIG_HAVE_PRIVATE_LIBGCC 1 75 | #define CONFIG_BOOTM_PLAN9 1 76 | #define CONFIG_SYS_MMC_ENV_PART 0 77 | #define CONFIG_CMD_BDI 1 78 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 79 | #define CONFIG_ARM 1 80 | #define CONFIG_CREATE_ARCH_SYMLINK 1 81 | #define CONFIG_SPL_STACK_R_ADDR 0x4fe00000 82 | #define CONFIG_SPL_SYS_THUMB_BUILD 1 83 | #define CONFIG_DM_SEQ_ALIAS 1 84 | #define CONFIG_SYS_RX_ETH_BUFFER 4 85 | #define CONFIG_PRE_CONSOLE_BUFFER 1 86 | #define CONFIG_GMAC_TX_DELAY 0 87 | #define CONFIG_OF_REAL 1 88 | #define CONFIG_SPECIFY_CONSOLE_INDEX 1 89 | #define CONFIG_CMD_BOOTEFI_HELLO_COMPILE 1 90 | #define CONFIG_CMD_SLEEP 1 91 | #define CONFIG_EFI_LOADER 1 92 | #define CONFIG_USB_GADGET_VENDOR_NUM 0x1f3a 93 | #define CONFIG_FIT_EXTERNAL_OFFSET 0x0 94 | #define CONFIG_PRE_CON_BUF_SZ 4096 95 | #define CONFIG_OF_LIST "sun8i-v3s-licheepi-zero" 96 | #define CONFIG_CMD_SAVEENV 1 97 | #define CONFIG_ARCH_SUPPORTS_LTO 1 98 | #define CONFIG_SYSRESET 1 99 | #define CONFIG_CLK 1 100 | #define CONFIG_EFI_LOAD_FILE2_INITRD 1 101 | #define CONFIG_SPL_BSS_START_ADDR 0x4ff80000 102 | #define CONFIG_BINMAN 1 103 | #define CONFIG_SPL_MAX_SIZE 0x5fa0 104 | #define CONFIG_DM_REGULATOR_FIXED 1 105 | #define CONFIG_SYS_CPU "armv7" 106 | #define CONFIG_FIT_FULL_CHECK 1 107 | #define CONFIG_PHY_RESET_DELAY 0 108 | #define CONFIG_SPL_POWER 1 109 | #define CONFIG_TOOLS_FIT 1 110 | #define CONFIG_USB_GADGET_PRODUCT_NUM 0x1010 111 | #define CONFIG_CC_OPTIMIZE_FOR_SIZE 1 112 | #define CONFIG_CMD_BOOTFLOW 1 113 | #define CONFIG_POWER 1 114 | #define CONFIG_DM_MMC 1 115 | #define CONFIG_CC_HAS_ASM_INLINE 1 116 | #define CONFIG_USE_PRIVATE_LIBGCC 1 117 | #define CONFIG_ARCH_FIXUP_FDT_MEMORY 1 118 | #define CONFIG_BUILD_TARGET "" 119 | #define CONFIG_SUNXI_DRAM_DW 1 120 | #define CONFIG_EFI_LOADER_HII 1 121 | #define CONFIG_DM_SERIAL 1 122 | #define CONFIG_ETH 1 123 | #define CONFIG_DM_I2C 1 124 | #define CONFIG_PXE_UTILS 1 125 | #define CONFIG_TOOLS_FIT_RSASSA_PSS 1 126 | #define CONFIG_USB0_ID_DET "" 127 | #define CONFIG_SPL_BINMAN_UBOOT_SYMBOLS 1 128 | #define CONFIG_USB_GADGET_MANUFACTURER "Allwinner Technology" 129 | #define CONFIG_REGEX 1 130 | #define CONFIG_EFI_PARTITION_ENTRIES_NUMBERS 56 131 | #define CONFIG_CMD_BOOTEFI_BOOTMGR 1 132 | #define CONFIG_DOS_PARTITION 1 133 | #define CONFIG_PINCONF 1 134 | #define CONFIG_SPL_SYS_MALLOC_SIMPLE 1 135 | #define CONFIG_CMD_ENV_EXISTS 1 136 | #define CONFIG_SUNXI_NO_PMIC 1 137 | #define CONFIG_IMX_DCD_ADDR 0x00910000 138 | #define CONFIG_ENV_FAT_INTERFACE "mmc" 139 | #define CONFIG_BOOT_DEFAULTS 1 140 | #define CONFIG_SPL_STACK 0x8000 141 | #define CONFIG_EFI_PLATFORM_LANG_CODES "en-US" 142 | #define CONFIG_TEXT_BASE 0x42e00000 143 | #define CONFIG_ENV_SIZE 0x10000 144 | #define CONFIG_STACK_SIZE 0x1000000 145 | #define CONFIG_FIT_PRINT 1 146 | #define CONFIG_IDENT_STRING " Allwinner Technology" 147 | #define CONFIG_SYS_MMC_ENV_DEV 0 148 | #define CONFIG_CMDLINE_EDITING 1 149 | #define CONFIG_TOOLS_FIT_SIGNATURE_MAX_SIZE 0x10000000 150 | #define CONFIG_CMD_SETEXPR 1 151 | #define CONFIG_BOOTM_EFI 1 152 | #define CONFIG_BOOTMETH_EFILOADER 1 153 | #define CONFIG_DM_DEVICE_REMOVE 1 154 | #define CONFIG_SYS_UBOOT_START 0x42e00000 155 | #define CONFIG_SUNXI_DRAM_DDR2 1 156 | #define CONFIG_PLATFORM_ELFENTRY "_start" 157 | #define CONFIG_TOOLS_MD5 1 158 | #define CONFIG_CLK_SUNXI 1 159 | #define CONFIG_MACH_SUN8I_V3S 1 160 | #define CONFIG_TOOLS_SHA1 1 161 | #define CONFIG_SYS_LOAD_ADDR 0x42000000 162 | #define CONFIG_SYS_CACHELINE_SIZE 64 163 | #define CONFIG_SPL_IMAGE_TYPE_SUNXI_EGON 1 164 | #define CONFIG_CMD_EXPORTENV 1 165 | #define CONFIG_CMD_MMC 1 166 | #define CONFIG_DM_EVENT 1 167 | #define CONFIG_DM_DEV_READ_INLINE 1 168 | #define CONFIG_PINCTRL 1 169 | #define CONFIG_REQUIRE_SERIAL_CONSOLE 1 170 | #define CONFIG_CMD_RANDOM 1 171 | #define CONFIG_WDT 1 172 | #define CONFIG_USB_GADGET 1 173 | #define CONFIG_SYS_BOOTM_LEN 0x800000 174 | #define CONFIG_ARCH_SUNXI 1 175 | #define CONFIG_BOOTM_VXWORKS 1 176 | #define CONFIG_BOOTM_LINUX 1 177 | #define CONFIG_DM_REGULATOR_COMMON 1 178 | #define CONFIG_SUNXI_MINIMUM_DRAM_MB 64 179 | #define CONFIG_FS_FAT 1 180 | #define CONFIG_BLUETOOTH_DT_DEVICE_FIXUP "" 181 | #define CONFIG_BINMAN_FDT 1 182 | #define CONFIG_EFI_PARTITION 1 183 | #define CONFIG_CMD_PART 1 184 | #define CONFIG_AUTO_COMPLETE 1 185 | #define CONFIG_TOOLS_FIT_FULL_CHECK 1 186 | #define CONFIG_SPL_SERIAL_PRESENT 1 187 | #define CONFIG_SIMPLE_BUS 1 188 | #define CONFIG_PINCTRL_SUNXI 1 189 | #define CONFIG_CLANG_VERSION 0 190 | #define CONFIG_SYS_NS16550_REG_SIZE -4 191 | #define CONFIG_CMD_CYCLIC 1 192 | #define CONFIG_CMD_CRC32 1 193 | #define CONFIG_SPL_GPIO 1 194 | #define CONFIG_SPL_SYS_MALLOC_CLEAR_ON_INIT 1 195 | #define CONFIG_PRINTF 1 196 | #define CONFIG_USB_GADGET_VBUS_DRAW 2 197 | #define CONFIG_I2C 1 198 | #define CONFIG_SYS_BOARD "sunxi" 199 | #define CONFIG_BOOTM_NETBSD 1 200 | #define CONFIG_RESET_SUNXI 1 201 | #define CONFIG_TOOLS_CRC32 1 202 | #define CONFIG_SYS_MMCSD_FS_BOOT 1 203 | #define CONFIG_LEGACY_IMAGE_FORMAT 1 204 | #define CONFIG_SYS_CONFIG_NAME "sun8i" 205 | #define CONFIG_FWU_NUM_IMAGES_PER_BANK 2 206 | #define CONFIG_SUN6I_PRCM 1 207 | #define CONFIG_EFI_DEVICE_PATH_TO_TEXT 1 208 | #define CONFIG_CRC8 1 209 | #define CONFIG_SPL_OF_LIBFDT_ASSUME_MASK 0xff 210 | #define CONFIG_OF_LIBFDT_ASSUME_MASK 0x0 211 | #define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 212 | #define CONFIG_DM_GPIO 1 213 | #define CONFIG_WATCHDOG 1 214 | #define CONFIG_MMC_QUIRKS 1 215 | #define CONFIG_ARMV7_VIRT 1 216 | #define CONFIG_TOOLS_SHA256 1 217 | #define CONFIG_USE_ARCH_MEMSET 1 218 | #define CONFIG_PINCTRL_SUN8I_V3S 1 219 | #define CONFIG_SHA256 1 220 | #define CONFIG_PINMUX 1 221 | #define CONFIG_DM_RESET 1 222 | #define CONFIG_DM_WARN 1 223 | #define CONFIG_SPL_USE_TINY_PRINTF 1 224 | #define CONFIG_CMD_LOADXY_TIMEOUT 90 225 | #define CONFIG_SUNXI_GPIO 1 226 | #define CONFIG_SYS_CBSIZE 1024 227 | #define CONFIG_USB0_VBUS_PIN "" 228 | #define CONFIG_PARTITION_UUIDS 1 229 | #define CONFIG_ENV_VARS_UBOOT_CONFIG 1 230 | #define CONFIG_WATCHDOG_TIMEOUT_MSECS 16000 231 | #define CONFIG_SYS_ARM_CACHE_CP15 1 232 | #define CONFIG_CMD_GO 1 233 | #define CONFIG_SPL_SYS_NS16550_SERIAL 1 234 | #define CONFIG_EFI_CAPSULE_MAX 15 235 | #define CONFIG_ENV_SOURCE_FILE "" 236 | #define CONFIG_ISO_PARTITION 1 237 | #define CONFIG_CONSOLE_FLUSH_SUPPORT 1 238 | #define CONFIG_EFI_DEVICE_PATH_UTIL 1 239 | #define CONFIG_CPU_V7_HAS_VIRT 1 240 | #define CONFIG_SYS_MALLOC_CLEAR_ON_INIT 1 241 | #define CONFIG_EVENT_DYNAMIC 1 242 | #define CONFIG_BOOTDELAY 2 243 | #define CONFIG_EFI_EBBR_2_1_CONFORMANCE 1 244 | #define CONFIG_CMD_IMI 1 245 | #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 246 | #define CONFIG_GPIO 1 247 | #define CONFIG_SYS_HZ 1000 248 | #define CONFIG_CYCLIC_MAX_CPU_TIME_US 1000 249 | #define CONFIG_DEVICE_TREE_INCLUDES "" 250 | #define CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2 1 251 | #define CONFIG_CMD_FS_GENERIC 1 252 | #define CONFIG_SPL_LEGACY_BLOCK 1 253 | #define CONFIG_SPRINTF 1 254 | #define CONFIG_SUPPORT_OF_CONTROL 1 255 | #define CONFIG_CMD_BLOCK_CACHE 1 256 | #define CONFIG_SPL_ARMV7_SET_CORTEX_SMPEN 1 257 | #define CONFIG_DISTRO_DEFAULTS 1 258 | #define CONFIG_SYS_LONGHELP 1 259 | #define CONFIG_BOOTMETH_VBE 1 260 | #define CONFIG_ENV_MIN_ENTRIES 64 261 | #define CONFIG_CMD_EXT2 1 262 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET 0x10 263 | #define CONFIG_ARMV7_PSCI_0_1 1 264 | #define CONFIG_CLK_SUN6I_A31_R 1 265 | #define CONFIG_LAST_STAGE_INIT 1 266 | #define CONFIG_DM_STDIO 1 267 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 268 | #define CONFIG_LOCALVERSION "" 269 | #define CONFIG_SERIAL 1 270 | #define CONFIG_SPL_STRTO 1 271 | #define CONFIG_SUPPORT_SPL 1 272 | #define CONFIG_CMDLINE 1 273 | #define CONFIG_DTOC 1 274 | #define CONFIG_SPL_LIBCOMMON_SUPPORT 1 275 | #define CONFIG_SPL_BANNER_PRINT 1 276 | #define CONFIG_BOOTCOMMAND "run distro_bootcmd" 277 | #define CONFIG_CMD_LOADB 1 278 | #define CONFIG_CMD_RUN 1 279 | #define CONFIG_CMD_PINMUX 1 280 | #define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536 281 | #define CONFIG_SYS_PROMPT "=> " 282 | #define CONFIG_LINKER_LIST_ALIGN 4 283 | #define CONFIG_CMD_MEMORY 1 284 | #define CONFIG_HUSH_PARSER 1 285 | #define CONFIG_CMD_BOOTZ 1 286 | #define CONFIG_SPL_IMAGE_TYPE "sunxi_egon" 287 | #define CONFIG_SPL_MMC 1 288 | #define CONFIG_BOARD_LATE_INIT 1 289 | #define CONFIG_CMD_XIMG 1 290 | #define CONFIG_CMD_ECHO 1 291 | #define CONFIG_SPL_HAS_BSS_LINKER_SECTION 1 292 | #define CONFIG_SPL 1 293 | #define CONFIG_TOOLS_FIT_VERBOSE 1 294 | #define CONFIG_MMC_WRITE 1 295 | #define CONFIG_LOCALVERSION_AUTO 1 296 | #define CONFIG_COUNTER_FREQUENCY 24000000 297 | #define CONFIG_DRAM_CLK 360 298 | #define CONFIG_ARMV7_PSCI 1 299 | #define CONFIG_SYS_SRAM_BASE 0x0 300 | #define CONFIG_SPL_SYS_STACK_F_CHECK_BYTE 0xaa 301 | #define CONFIG_SPL_LEGACY_IMAGE_FORMAT 1 302 | #define CONFIG_SYS_BOOT_RAMDISK_HIGH 1 303 | #define CONFIG_MMC_HW_PARTITIONING 1 304 | #define CONFIG_SPL_SYS_MALLOC_F_LEN 0x2000 305 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR 1 306 | #define CONFIG_SYS_ARCH "arm" 307 | #define CONFIG_CYCLIC 1 308 | #define CONFIG_MD5 1 309 | #define CONFIG_CMD_DM 1 310 | #define CONFIG_SPL_BSS_LIMIT 1 311 | #define CONFIG_LIB_UUID 1 312 | #define CONFIG_ARMV7_LPAE 1 313 | #define CONFIG_SYS_CACHE_SHIFT_6 1 314 | #define CONFIG_SUPPORT_ACPI 1 315 | #define CONFIG_HAS_VBAR 1 316 | #define CONFIG_SPL_SERIAL 1 317 | #define CONFIG_SPL_BINMAN_SYMBOLS 1 318 | #define CONFIG_USE_BOOTCOMMAND 1 319 | #define CONFIG_CPU_V7A 1 320 | #define CONFIG_LMB 1 321 | #define CONFIG_EXPERT 1 322 | #define CONFIG_CMD_EFICONFIG 1 323 | #define CONFIG_BOOTMETH_EXTLINUX 1 324 | #define CONFIG_MMC_VERBOSE 1 325 | #define CONFIG_SYS_SOC "sunxi" 326 | #define CONFIG_BOOTMETH_GLOBAL 1 327 | #define CONFIG_MMC 1 328 | #define CONFIG_BAUDRATE 115200 329 | #define CONFIG_CHARSET 1 330 | #define CONFIG_EVENT 1 331 | #define CONFIG_ARMV7_NONSEC 1 332 | #define CONFIG_SPL_SEPARATE_BSS 1 333 | #define CONFIG_ARCH_SUPPORT_PSCI 1 334 | #define CONFIG_CC_IS_GCC 1 335 | #define CONFIG_MISC_INIT_R 1 336 | #define CONFIG_SPL_TARGET "" 337 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x40 338 | #define CONFIG_ENV_FAT_DEVICE_AND_PART ":auto" 339 | #define CONFIG_SPL_SHA1 1 340 | #define CONFIG_FAT_WRITE 1 341 | #define CONFIG_PARTITIONS 1 342 | #define CONFIG_CMD_ITEST 1 343 | #define CONFIG_LMB_MAX_REGIONS 16 344 | #define CONFIG_CLK_SUN8I_V3S 1 345 | #define CONFIG_DISPLAY_CPUINFO 1 346 | #define CONFIG_CMD_GPIO 1 347 | #define CONFIG_SYS_RELOC_GD_ENV_ADDR 1 348 | #define CONFIG_DM_USB 1 349 | #define CONFIG_BOOTSTAGE_STASH_SIZE 0x1000 350 | #define CONFIG_SERIAL_PRESENT 1 351 | #define CONFIG_OF_CONTROL 1 352 | #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535 353 | #define CONFIG_FS_EXT4 1 354 | #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" 355 | #define CONFIG_CMD_FDT 1 356 | #define CONFIG_TOOLS_FIT_SIGNATURE 1 357 | #define CONFIG_CMD_LOADS 1 358 | #define CONFIG_CMD_FAT 1 359 | #define CONFIG_TOOLS_LIBCRYPTO 1 360 | #define CONFIG_MKIMAGE_DTC_PATH "dtc" 361 | #define CONFIG_EFI_VAR_BUF_SIZE 65536 362 | #define CONFIG_BLOCK_CACHE 1 363 | #define CONFIG_SPL_SHA256 1 364 | #define CONFIG_PYLIBFDT 1 365 | #define CONFIG_CPU_V7_HAS_NONSEC 1 366 | #define CONFIG_TOOLS_OF_LIBFDT 1 367 | #define CONFIG_MMC_SUNXI_SLOT_EXTRA -1 368 | #define CONFIG_SUNXI_DRAM_DW_16BIT 1 369 | #define CONFIG_EFI_PARTITION_ENTRIES_OFF 0 370 | #define CONFIG_SYS_XTRACE 1 371 | #define CONFIG_GCC_VERSION 90400 372 | #define CONFIG_HAVE_TEXT_BASE 1 373 | #define CONFIG_SPL_RAW_IMAGE_SUPPORT 1 374 | #define CONFIG_MENU 1 375 | #define CONFIG_LIB_RAND 1 376 | #define CONFIG_BOOTSTD 1 377 | #define CONFIG_CONS_INDEX 1 378 | #define CONFIG_DEFAULT_DEVICE_TREE "sun8i-v3s-licheepi-zero" 379 | #define CONFIG_SPL_TEXT_BASE 0x00060 380 | #define CONFIG_SYSRESET_WATCHDOG_AUTO 1 381 | #define CONFIG_SPL_LOGLEVEL 4 382 | #define CONFIG_CMD_BOOTEFI 1 383 | #define CONFIG_FIT 1 384 | #define CONFIG_AUTOBOOT 1 385 | #define CONFIG_ENV_MAX_ENTRIES 512 386 | #define CONFIG_FWU_NUM_BANKS 2 387 | #define CONFIG_SPL_PAD_TO 0x8000 388 | #define CONFIG_PINCTRL_FULL 1 389 | #define CONFIG_TOOLS_SHA384 1 390 | #define CONFIG_DM 1 391 | #define CONFIG_CMD_GPT 1 392 | #define CONFIG_DM_KEYBOARD 1 393 | #define CONFIG_HAS_THUMB2 1 394 | #define CONFIG_BOOTM_RTEMS 1 395 | #define CONFIG_SYSRESET_WATCHDOG 1 396 | #define CONFIG_SYS_MALLOC_F 1 397 | #define CONFIG_ERR_PTR_OFFSET 0x0 398 | #define CONFIG_SPL_PRINTF 1 399 | #define CONFIG_SUPPORT_RAW_INITRD 1 400 | #define CONFIG_SPL_USE_ARCH_MEMCPY 1 401 | #define CONFIG_SPL_PAYLOAD "u-boot.bin" 402 | #define CONFIG_CMD_IMPORTENV 1 403 | #define CONFIG_SYS_FDT_PAD 0x3000 404 | #define CONFIG_DRAM_ZQ 14779 405 | #define CONFIG_STRTO 1 406 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 407 | #define CONFIG_PINCTRL_GENERIC 1 408 | #define CONFIG_SYS_MALLOC_F_LEN 0x2000 409 | #define CONFIG_SUNXI_GEN_SUN6I 1 410 | #define CONFIG_CMD_ELF 1 411 | #define CONFIG_MACH_SUN8I 1 412 | #define CONFIG_SUNXI_DRAM_MAX_SIZE 0x80000000 413 | #define CONFIG_SYS_PBSIZE 1024 414 | #define CONFIG_USB3_VBUS_PIN "" 415 | #define CONFIG_SPL_LIBGENERIC_SUPPORT 1 416 | #define CONFIG_TOOLS_SHA512 1 417 | #define CONFIG_RANDOM_UUID 1 418 | #define CONFIG_BOOTMETH_VBE_REQUEST 1 419 | #define CONFIG_OF_TAG_MIGRATE 1 420 | #define CONFIG_SAVEENV 1 421 | #define CONFIG_ENV_IS_IN_FAT 1 422 | #define CONFIG_SYS_ARM_ARCH 7 423 | #define CONFIG_CMD_SOURCE 1 424 | #define CONFIG_EFI_VARIABLE_FILE_STORE 1 425 | #define CONFIG_CMD_SYSBOOT 1 426 | #define CONFIG_INPUT 1 427 | #define CONFIG_EFI_ECPT 1 428 | #define CONFIG_SPL_STACK_R 1 429 | 430 | #undef CONFIG_SPL_BANNER_PRINT 431 | #undef CONFIG_DM_SERIAL /* don't use driver model */ 432 | #include 433 | #include -------------------------------------------------------------------------------- /src/main_app.c: -------------------------------------------------------------------------------- 1 | #include "sunxi_dram_app.h" 2 | 3 | struct gd _gd = { .baudrate = CFG_SYS_BAUDRATE }; 4 | 5 | void main(void) 6 | { 7 | /* store uart bauddrate */ 8 | gd = &_gd; 9 | 10 | /* reinit cpu clock in hz */ 11 | /* clock_set_pll1(408000000); */ 12 | 13 | /* enable uart clock */ 14 | clock_init_uart(); 15 | 16 | /* 17 | * set uart gpio 18 | * init uart 19 | */ 20 | board_init_f(0); 21 | 22 | printf("Hello from DRAM\n"); 23 | 24 | while(1); 25 | } 26 | -------------------------------------------------------------------------------- /src/main_init.c: -------------------------------------------------------------------------------- 1 | #include "sunxi_jtag.h" 2 | 3 | struct gd _gd = { .baudrate = CFG_SYS_BAUDRATE }; 4 | 5 | #pragma location = "DRAM_INIT_RESULTS" 6 | struct { 7 | unsigned int sys_clk; 8 | unsigned int dram_clk; 9 | unsigned int dram_size; 10 | unsigned short magic; 11 | } init_results; 12 | 13 | #pragma location = "DRAM_INIT_DONE" 14 | void dram_init_done(void) 15 | { 16 | while(1); 17 | } 18 | 19 | void main(void) 20 | { 21 | gd = &_gd; 22 | 23 | board_init_f(0); 24 | 25 | printf("Init done\n"); 26 | 27 | init_results.sys_clk = CONFIG_SYS_CLK_FREQ / 1000000; 28 | init_results.dram_clk = CONFIG_DRAM_CLK; 29 | init_results.dram_size = gd->ram_size >> 20; 30 | init_results.magic = 0xBABE; 31 | 32 | dram_init_done(); 33 | } 34 | -------------------------------------------------------------------------------- /src/mock.h: -------------------------------------------------------------------------------- 1 | #ifndef _MOCK_H_ 2 | #define _MOCK_H_ 3 | 4 | /* mock unused and redirect/redefine some other u-boot entities 5 | * define some macroses that can't be imported from u-boot headers due to 6 | * GCC and ICCARM incompatibility 7 | */ 8 | 9 | 10 | #define __printf(a,b) 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | #define CONFIG_SPL_BUILD 19 | 20 | #define CFG_SYS_BAUDRATE_TABLE {CFG_SYS_BAUDRATE} 21 | 22 | #define timer_get_us() (get_ticks() * 1000) 23 | 24 | #define BIT(nr) (1UL << (nr)) 25 | #define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1) 26 | #define ALIGN_DOWN(x, a) ALIGN((x) - ((a) - 1), (a)) 27 | #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) 28 | #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) 29 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) 30 | #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) 31 | 32 | #define unlikely(x) (x) 33 | #define likely(x) (x) 34 | 35 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 36 | 37 | /* disable unsupported and redefine other attributes */ 38 | #define __asm__ asm 39 | #define __always_inline inline 40 | #define __packed 41 | #define __maybe_unused 42 | #define __section(a) 43 | #define __attribute_const__ 44 | #define __must_check 45 | #define __aligned(...) 46 | #define __attribute__(...) 47 | 48 | /* types */ 49 | #define IO volatile 50 | 51 | #define __le32 unsigned int 52 | #define size_t unsigned int 53 | #define __kernel_size_t unsigned int 54 | #define ssize_t u32 55 | #define uintptr_t unsigned int * 56 | 57 | #if CONFIG_ARM64 58 | #define phys_addr_t unsigned long long 59 | #define phys_size_t unsigned long long 60 | #define dma_addr_t unsigned long long 61 | #else 62 | #define phys_addr_t unsigned int 63 | #define phys_size_t unsigned int 64 | #define dma_addr_t unsigned int 65 | #endif 66 | 67 | #define u8 unsigned char 68 | #define u16 unsigned short int 69 | #define u32 unsigned int 70 | #define u64 unsigned long long 71 | 72 | #define s8 signed char 73 | #define s16 signed short int 74 | #define s32 signed int 75 | #define s64 signed long long 76 | 77 | #define uint8_t u8 78 | #define uint16_t u16 79 | #define uint32_t u32 80 | #define uint64_t u64 81 | 82 | #define uchar u8 83 | #define ulong u32 84 | #define uint u32 85 | 86 | #define __u8 u8 87 | #define __u16 u16 88 | #define __u32 u32 89 | #define __u64 u64 90 | 91 | #define __be32 unsigned int 92 | 93 | #if !defined bool 94 | #define bool unsigned char 95 | #endif 96 | #define false 0 97 | #define true 1 98 | 99 | /* used marco */ 100 | 101 | #define BITS_PER_LONG 32 102 | 103 | #define GENMASK(h, l) \ 104 | (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h)))) 105 | 106 | #define BITS_PER_BYTE 8 107 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 108 | 109 | #define cpu_to_le32(x) ((u32)(x)) 110 | #define le32_to_cpu(x) ((u32)(x)) 111 | 112 | #define uswap_32(x) \ 113 | ((((x) & 0xff000000) >> 24) | \ 114 | (((x) & 0x00ff0000) >> 8) | \ 115 | (((x) & 0x0000ff00) << 8) | \ 116 | (((x) & 0x000000ff) << 24)) 117 | #define be32_to_cpu(x) uswap_32(x) 118 | 119 | #define mb() dsb() 120 | #define __iormb() dmb() 121 | #define __iowmb() dmb() 122 | 123 | #define __arch_getb(a) (*(volatile unsigned char *)(a)) 124 | #define __arch_getw(a) (*(volatile unsigned short *)(a)) 125 | #define __arch_getl(a) (*(volatile unsigned int *)(a)) 126 | 127 | #define __arch_putb(v,a) (*(volatile unsigned char *)(a) = (v)) 128 | #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) 129 | #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) 130 | 131 | /* CFG_SYS_DEBUG_IO is preincluded for certain file */ 132 | #if CFG_SYS_INIT_DEBUG && CFG_SYS_DEBUG_IO 133 | 134 | #define __raw_writeb(v,a) ({ u8 __v = v; printf ("W08: %x=%x\n", a, __v); __arch_putb(__v,a); __v; }) 135 | #define __raw_writew(v,a) ({ u16 __v = v; printf ("W16: %x=%x\n", a, __v); __arch_putw(__v,a); __v; }) 136 | #define __raw_writel(v,a) ({ u32 __v = v; printf ("W32: %x=%x\n", a, __v); __arch_putl(__v,a); __v;}) 137 | 138 | #define __raw_readb(a) ({ u8 __v = __arch_getb(a); printf ("R08: %x=%x\n", a, __v); __v; }) 139 | #define __raw_readw(a) ({ u16 __v = __arch_getw(a); printf ("R16: %x=%x\n", a, __v); __v; }) 140 | #define __raw_readl(a) ({ u32 __v = __arch_getl(a); printf ("R32: %x=%x\n", a, __v); __v; }) 141 | 142 | #define writeb(v,c) ({ printf ("W08: %x=%x\n", c, v); u8 __v = v; __iowmb(); __arch_putb(__v,c); __v; }) 143 | #define writew(v,c) ({ printf ("W16: %x=%x\n", c, v);u16 __v = v; __iowmb(); __arch_putw(__v,c); __v; }) 144 | 145 | #ifdef SOC_ID_T113_S3 /* don't print memory test R/W */ 146 | #define writel(v,c) ({ if (!((u32)c & (1 << 30))) printf ("W32: %x=%x\n", c, v);u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; }) 147 | #else 148 | 149 | #define writel(v,c) ({ printf ("W32: %x=%x\n", c, v);u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; }) 150 | #endif 151 | 152 | #define readb(c) ({ u8 __v = __arch_getb(c); __iormb(); printf ("R08: %x=%x\n", c, __v); __v; }) 153 | #define readw(c) ({ u16 __v = __arch_getw(c); __iormb(); printf ("R16: %x=%x\n", c, __v); __v; }) 154 | 155 | #ifdef SOC_ID_T113_S3 /* don't print memory test R/W */ 156 | #define readl(c) ({ u32 __v = __arch_getl(c); __iormb(); if (!((u32)c & (1 << 30))) printf ("R32: %x=%x\n", c, __v); __v; }) 157 | 158 | #else 159 | #define readl(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; }) 160 | #endif 161 | 162 | #define readlw(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; }) 163 | 164 | #define readl_relaxed(c) ({ u32 __v = __arch_getl(c); printf ("R32: %x=%x\n", c, __v); __v; }) 165 | #define writel_relaxed(v,c) ({ printf ("W32: %x=%x\n", c, v); u32 __v = v; __arch_putl(__v,c); __v; }) 166 | #else 167 | #define __raw_writeb(v,a) __arch_putb(v,a) 168 | #define __raw_writew(v,a) __arch_putw(v,a) 169 | #define __raw_writel(v,a) __arch_putl(v,a) 170 | 171 | #define __raw_readb(a) __arch_getb(a) 172 | #define __raw_readw(a) __arch_getw(a) 173 | #define __raw_readl(a) __arch_getl(a) 174 | 175 | #define writeb(v,c) ({ u8 __v = v; __iowmb(); __arch_putb(__v,c); __v; }) 176 | #define writew(v,c) ({ u16 __v = v; __iowmb(); __arch_putw(__v,c); __v; }) 177 | #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; }) 178 | 179 | #define readb(c) ({ u8 __v = __arch_getb(c); __iormb(); __v; }) 180 | #define readw(c) ({ u16 __v = __arch_getw(c); __iormb(); __v; }) 181 | #define readl(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; }) 182 | 183 | #ifdef SOC_ID_R40 184 | /* sdelay(200) in clock_sun6i.c not enough if we do warm binary reinit 185 | * R40 core crashes. Added necessary additional delay until u-boot not fixed 186 | */ 187 | #undef writel 188 | #define writel(v,c) ({ sdelay(1000); \ 189 | u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; }) 190 | #endif 191 | 192 | #define readl_relaxed(c) ({ u32 __v = __arch_getl(c); __v; }) 193 | #define writel_relaxed(v,c) ({ u32 __v = v; __arch_putl(__v,c); __v; }) 194 | 195 | #endif /* CFG_SYS_INIT_DEBUG && CFG_SYS_DEBUG_IO */ 196 | 197 | #define out_arch(type,endian,a,v) __raw_write##type(cpu_to_##endian(v),a) 198 | #define in_arch(type,endian,a) endian##_to_cpu(__raw_read##type(a)) 199 | 200 | #define out_le32(a,v) out_arch(l,le32,a,v) 201 | #define out_le16(a,v) out_arch(w,le16,a,v) 202 | 203 | #define in_le32(a) in_arch(l,le32,a) 204 | #define in_le16(a) in_arch(w,le16,a) 205 | 206 | #define out_8(a,v) __raw_writeb(v,a) 207 | #define in_8(a) __raw_readb(a) 208 | 209 | #define clrbits(type, addr, clear) \ 210 | out_##type((addr), in_##type(addr) & ~(clear)) 211 | 212 | #define setbits(type, addr, set) \ 213 | out_##type((addr), in_##type(addr) | (set)) 214 | 215 | #define clrsetbits(type, addr, clear, set) \ 216 | out_##type((addr), (in_##type(addr) & ~(clear)) | (set)) 217 | 218 | #define clrbits_le32(addr, clear) clrbits(le32, addr, clear) 219 | #define setbits_le32(addr, set) setbits(le32, addr, set) 220 | #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) 221 | 222 | #define clrbits_le16(addr, clear) clrbits(le16, addr, clear) 223 | #define setbits_le16(addr, set) setbits(le16, addr, set) 224 | #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) 225 | 226 | #define clrbits_8(addr, clear) clrbits(8, addr, clear) 227 | #define setbits_8(addr, set) setbits(8, addr, set) 228 | #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) 229 | 230 | 231 | #define min(x, y) ({ \ 232 | typeof(x) _min1 = (x); \ 233 | typeof(y) _min2 = (y); \ 234 | (void) (&_min1 == &_min2); \ 235 | _min1 < _min2 ? _min1 : _min2; }) 236 | 237 | #define max(x, y) ({ \ 238 | typeof(x) _max1 = (x); \ 239 | typeof(y) _max2 = (y); \ 240 | (void) (&_max1 == &_max2); \ 241 | _max1 > _max2 ? _max1 : _max2; }) 242 | 243 | #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) 244 | 245 | #define check_member(...) 246 | 247 | #define DIV_ROUND_CLOSEST(x, divisor)( \ 248 | { \ 249 | typeof(x) __x = x; \ 250 | typeof(divisor) __d = divisor; \ 251 | (((typeof(x))-1) > 0 || \ 252 | ((typeof(divisor))-1) > 0 || (__x) > 0) ? \ 253 | (((__x) + ((__d) / 2)) / (__d)) : \ 254 | (((__x) - ((__d) / 2)) / (__d)); \ 255 | } \ 256 | ) 257 | 258 | /* mock for unused macro */ 259 | #define EXT_CSD_EXTRACT_BOOT_PART(...) (0) 260 | #define EXT_CSD_EXTRACT_BOOT_ACK(...) (0) 261 | #define IS_SD(...) (0) 262 | #define U_BOOT_ENV_CALLBACK(...) 263 | #define SPL_LOAD_IMAGE_METHOD(...) 264 | 265 | /* mock for unused constants */ 266 | #define EXT_CSD_BOOT_BUS_WIDTH (0) 267 | #define MMCSD_MODE_RAW (0) 268 | #define MMCSD_MODE_EMMCBOOT (0) 269 | #define H_NOCLEAR (0) 270 | #define ETH_ALEN (1) 271 | #define H_FORCE (0) 272 | #define H_INTERACTIVE (0) 273 | #define GD_FLG_RELOC (0) 274 | #define GD_FLG_SERIAL_READY (0x100) 275 | #define GD_FLG_RECORD_OVF (0x2000) 276 | 277 | /* mock for unused structs */ 278 | struct spl_image_info; 279 | struct spl_boot_device; 280 | struct phy { u8 dummy; }; 281 | struct mmc {u8 ext_csd[2]; }; 282 | struct cmd_tbl; 283 | enum env_operation { env_operation_DUMMY = 0 }; 284 | enum env_op { env_op_create, env_op_overwrite, env_op_delete }; 285 | enum boot_dev { BOOT_DEVICE_BOARD,BOOT_DEVICE_MMC1, BOOT_DEVICE_NAND, 286 | BOOT_DEVICE_MMC2, BOOT_DEVICE_SPI }; 287 | enum env_location { ENVL_UNKNOWN, ENVL_NOWHERE, ENVL_FAT, ENVL_MMC, ENVL_UBI, 288 | ENVL_NAND, ENVL_SPI_FLASH}; 289 | 290 | /* mock for unused functions */ 291 | #define return_to_fel(...) __no_operation() 292 | #define eth_init_board() __no_operation() 293 | #define spl_init(...) __no_operation() 294 | #define dcache_enable(...) __no_operation() 295 | #define himport_r(...) __no_operation() 296 | #define env_set_hex(...) __no_operation() 297 | #define sprintf(...) __no_operation() 298 | #define snprintf(...) __no_operation() 299 | #define eth_env_set_enetaddr(...) __no_operation() 300 | #define env_set(...) __no_operation() 301 | #define do_fixup_by_compat(...) __no_operation() 302 | #define fdt_fixup_ethernet(...) __no_operation() 303 | #define schedule(...) __no_operation() 304 | #define debug(...) __no_operation() 305 | #define pr_debug(...) __no_operation() 306 | #define pr_err(...) __no_operation() 307 | #define mmc_switch_part(...) (0) 308 | #define gd_of_root(...) (0) 309 | #define sunxi_mmc_init(...) (0) 310 | #define sun4i_usb_phy_vbus_detect(...) (-1) 311 | #define blk_dread(...) (0) 312 | #define generic_phy_get_by_name(...) (1) 313 | #define generic_phy_init(...) (1) 314 | #define crc32(...) (0) 315 | #define env_get(...) (0) 316 | #define eth_env_get_enetaddr(...) (0) 317 | #define dectoul(...) (0) 318 | #define spl_in_proper() (0) 319 | #define mmc_get_blk_desc(...) ((struct blk_desc *)0) 320 | #if SOC_ID_V3S || SOC_ID_H3 || SOC_ID_H5 321 | #define clock_set_pll11(...) __no_operation() 322 | #endif 323 | 324 | /* redefines/redirects */ 325 | #if CFG_SYS_INIT_DEBUG || DRAM_APP 326 | #define preloader_console_init(...) serial_init() 327 | #else 328 | #define preloader_console_init(...) __no_operation() 329 | #define printf(...) __no_operation() 330 | #endif 331 | 332 | #define panic(...) printf(__VA_ARGS__) 333 | #define hang(...) while(1) 334 | #define udelay(usec) __udelay(usec) 335 | 336 | /* mock for main global u-boot structure with somme additional fields */ 337 | __weak struct gd { 338 | u64 ram_top; 339 | u32 flags; 340 | u32 baudrate; 341 | u8 have_console; 342 | u8 cb[0x1000]; 343 | u32 cb_size; 344 | u64 ram_size; 345 | void const * fdt_blob; 346 | struct { 347 | u32 bi_boot_params; 348 | }*bd; 349 | struct { 350 | u32 lastinc; 351 | u32 tbl; 352 | } arch; 353 | } *gd; 354 | #define DECLARE_GLOBAL_DATA_PTR 355 | 356 | /* prototypes */ 357 | void sdelay(unsigned long loops); 358 | void __udelay(unsigned long usec); 359 | unsigned long long get_ticks(void); 360 | uint sunxi_get_sram_id(void); 361 | int timer_init(void); 362 | 363 | #endif 364 | -------------------------------------------------------------------------------- /src/mock/asm-generic/int-ll64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/asm-generic/int-ll64.h -------------------------------------------------------------------------------- /src/mock/asm/arch/clock.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/clock_sun50i_h6.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/clock_sun6i.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/cpu.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/cpu_sun4i.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/cpu_sun50i_h6.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/cpu_sunxi_ncat2.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/display.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/asm/arch/display.h -------------------------------------------------------------------------------- /src/mock/asm/arch/dram.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/dram_sun4i.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/dram_sun50i_h6.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/dram_sun50i_h616.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/dram_sunxi_dw.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/gpio.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/gtbus.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/mmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/asm/arch/mmc.h -------------------------------------------------------------------------------- /src/mock/asm/arch/pmic_bus.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/prcm.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/prcm_sun50i.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/asm/arch/prcm_sun6i.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/spl.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/sys_proto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/asm/arch/sys_proto.h -------------------------------------------------------------------------------- /src/mock/asm/arch/timer.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/tzpc.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/arch/watchdog.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /src/mock/asm/cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/asm/cache.h -------------------------------------------------------------------------------- /src/mock/asm/global_data.h: -------------------------------------------------------------------------------- 1 | /* mock for u-boot global_data structure for not used 2 | * sunxi static ulong get_timer_masked(void) 3 | */ 4 | 5 | // #ifndef _MOCK_GLOBAL_DATA_H_ 6 | // #define _MOCK_GLOBAL_DATA_H_ 7 | 8 | // struct _gd { 9 | // u32 ram_size; 10 | // void const * fdt_blob; 11 | // struct { 12 | // u32 bi_boot_params; 13 | // }*bd; 14 | // struct { 15 | // u32 lastinc; 16 | // u32 tbl; 17 | // } arch; 18 | // }; 19 | 20 | // #define DECLARE_GLOBAL_DATA_PTR struct _gd *gd; 21 | 22 | // #endif -------------------------------------------------------------------------------- /src/mock/asm/gpio.h: -------------------------------------------------------------------------------- 1 | #ifdef CONFIG_GPIO_EXTRA_HEADER 2 | #if CFG_SYS_DEBUG || DRAM_APP 3 | #include 4 | #else 5 | /* Preserve original content of but mock gpio functions 6 | * to affect UART pins only in debug mode 7 | */ 8 | 9 | #define sunxi_gpio_set_cfgbank(...) 10 | #define sunxi_gpio_set_cfgpin(...) 11 | #define sunxi_gpio_get_cfgbank(...) (0) 12 | #define sunxi_gpio_get_cfgpin(...) (0) 13 | #define sunxi_gpio_set_drv(...) 14 | #define sunxi_gpio_set_drv_bank(...) 15 | #define sunxi_gpio_set_pull(...) 16 | #define sunxi_gpio_set_pull_bank(...) 17 | #define sunxi_name_to_gpio(...) (0) 18 | 19 | /* SPDX-License-Identifier: GPL-2.0+ */ 20 | /* 21 | * (C) Copyright 2007-2012 22 | * Allwinner Technology Co., Ltd. 23 | * Tom Cubie 24 | */ 25 | 26 | #ifndef _SUNXI_GPIO_H 27 | #define _SUNXI_GPIO_H 28 | 29 | #include 30 | #include 31 | 32 | /* 33 | * sunxi has 9 banks of gpio, they are: 34 | * PA0 - PA17 | PB0 - PB23 | PC0 - PC24 35 | * PD0 - PD27 | PE0 - PE31 | PF0 - PF5 36 | * PG0 - PG9 | PH0 - PH27 | PI0 - PI12 37 | */ 38 | 39 | #define SUNXI_GPIO_A 0 40 | #define SUNXI_GPIO_B 1 41 | #define SUNXI_GPIO_C 2 42 | #define SUNXI_GPIO_D 3 43 | #define SUNXI_GPIO_E 4 44 | #define SUNXI_GPIO_F 5 45 | #define SUNXI_GPIO_G 6 46 | #define SUNXI_GPIO_H 7 47 | #define SUNXI_GPIO_I 8 48 | 49 | /* 50 | * This defines the number of GPIO banks for the _main_ GPIO controller. 51 | * You should fix up the padding in struct sunxi_gpio_reg below if you 52 | * change this. 53 | */ 54 | #define SUNXI_GPIO_BANKS 9 55 | 56 | /* 57 | * sun6i/sun8i and later SoCs have an additional GPIO controller (R_PIO) 58 | * at a different register offset. 59 | * 60 | * sun6i has 2 banks: 61 | * PL0 - PL8 | PM0 - PM7 62 | * 63 | * sun8i has 1 bank: 64 | * PL0 - PL11 65 | * 66 | * sun9i has 3 banks: 67 | * PL0 - PL9 | PM0 - PM15 | PN0 - PN1 68 | */ 69 | #define SUNXI_GPIO_L 11 70 | #define SUNXI_GPIO_M 12 71 | #define SUNXI_GPIO_N 13 72 | 73 | struct sunxi_gpio { 74 | u32 cfg[4]; 75 | u32 dat; 76 | u32 drv[2]; 77 | u32 pull[2]; 78 | }; 79 | 80 | /* gpio interrupt control */ 81 | struct sunxi_gpio_int { 82 | u32 cfg[3]; 83 | u32 ctl; 84 | u32 sta; 85 | u32 deb; /* interrupt debounce */ 86 | }; 87 | 88 | struct sunxi_gpio_reg { 89 | struct sunxi_gpio gpio_bank[SUNXI_GPIO_BANKS]; 90 | u8 res[0xbc]; 91 | struct sunxi_gpio_int gpio_int; 92 | }; 93 | 94 | #define SUN50I_H6_GPIO_POW_MOD_SEL 0x340 95 | #define SUN50I_H6_GPIO_POW_MOD_VAL 0x348 96 | 97 | #define BANK_TO_GPIO(bank) (((bank) < SUNXI_GPIO_L) ? \ 98 | &((struct sunxi_gpio_reg *)SUNXI_PIO_BASE)->gpio_bank[bank] : \ 99 | &((struct sunxi_gpio_reg *)SUNXI_R_PIO_BASE)->gpio_bank[(bank) - SUNXI_GPIO_L]) 100 | 101 | #define GPIO_BANK(pin) ((pin) >> 5) 102 | #define GPIO_NUM(pin) ((pin) & 0x1f) 103 | 104 | #define GPIO_CFG_INDEX(pin) (((pin) & 0x1f) >> 3) 105 | #define GPIO_CFG_OFFSET(pin) ((((pin) & 0x1f) & 0x7) << 2) 106 | 107 | #define GPIO_DRV_INDEX(pin) (((pin) & 0x1f) >> 4) 108 | #define GPIO_DRV_OFFSET(pin) ((((pin) & 0x1f) & 0xf) << 1) 109 | 110 | #define GPIO_PULL_INDEX(pin) (((pin) & 0x1f) >> 4) 111 | #define GPIO_PULL_OFFSET(pin) ((((pin) & 0x1f) & 0xf) << 1) 112 | 113 | /* GPIO bank sizes */ 114 | #define SUNXI_GPIOS_PER_BANK 32 115 | 116 | #define SUNXI_GPIO_NEXT(__gpio) \ 117 | ((__gpio##_START) + SUNXI_GPIOS_PER_BANK) 118 | 119 | enum sunxi_gpio_number { 120 | SUNXI_GPIO_A_START = 0, 121 | SUNXI_GPIO_B_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_A), 122 | SUNXI_GPIO_C_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_B), 123 | SUNXI_GPIO_D_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_C), 124 | SUNXI_GPIO_E_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_D), 125 | SUNXI_GPIO_F_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_E), 126 | SUNXI_GPIO_G_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_F), 127 | SUNXI_GPIO_H_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_G), 128 | SUNXI_GPIO_I_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_H), 129 | SUNXI_GPIO_L_START = 352, 130 | SUNXI_GPIO_M_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_L), 131 | SUNXI_GPIO_N_START = SUNXI_GPIO_NEXT(SUNXI_GPIO_M), 132 | SUNXI_GPIO_AXP0_START = 1024, 133 | }; 134 | 135 | /* SUNXI GPIO number definitions */ 136 | #define SUNXI_GPA(_nr) (SUNXI_GPIO_A_START + (_nr)) 137 | #define SUNXI_GPB(_nr) (SUNXI_GPIO_B_START + (_nr)) 138 | #define SUNXI_GPC(_nr) (SUNXI_GPIO_C_START + (_nr)) 139 | #define SUNXI_GPD(_nr) (SUNXI_GPIO_D_START + (_nr)) 140 | #define SUNXI_GPE(_nr) (SUNXI_GPIO_E_START + (_nr)) 141 | #define SUNXI_GPF(_nr) (SUNXI_GPIO_F_START + (_nr)) 142 | #define SUNXI_GPG(_nr) (SUNXI_GPIO_G_START + (_nr)) 143 | #define SUNXI_GPH(_nr) (SUNXI_GPIO_H_START + (_nr)) 144 | #define SUNXI_GPI(_nr) (SUNXI_GPIO_I_START + (_nr)) 145 | #define SUNXI_GPL(_nr) (SUNXI_GPIO_L_START + (_nr)) 146 | #define SUNXI_GPM(_nr) (SUNXI_GPIO_M_START + (_nr)) 147 | #define SUNXI_GPN(_nr) (SUNXI_GPIO_N_START + (_nr)) 148 | 149 | #define SUNXI_GPAXP0(_nr) (SUNXI_GPIO_AXP0_START + (_nr)) 150 | 151 | /* GPIO pin function config */ 152 | #define SUNXI_GPIO_INPUT 0 153 | #define SUNXI_GPIO_OUTPUT 1 154 | #define SUNXI_GPIO_DISABLE 7 155 | 156 | #define SUN8I_H3_GPA_UART0 2 157 | #define SUN8I_H3_GPA_UART2 2 158 | 159 | #define SUN4I_GPB_PWM 2 160 | #define SUN4I_GPB_TWI0 2 161 | #define SUN4I_GPB_TWI1 2 162 | #define SUN5I_GPB_TWI1 2 163 | #define SUN8I_V3S_GPB_TWI0 2 164 | #define SUN4I_GPB_UART0 2 165 | #define SUN5I_GPB_UART0 2 166 | #define SUN8I_GPB_UART2 2 167 | #define SUN8I_A33_GPB_UART0 3 168 | #define SUN8I_A83T_GPB_UART0 2 169 | #define SUN8I_V3S_GPB_UART0 3 170 | #define SUN50I_GPB_UART0 4 171 | 172 | #define SUNXI_GPC_NAND 2 173 | #define SUNXI_GPC_SPI0 3 174 | #define SUNXI_GPC_SDC2 3 175 | #define SUN6I_GPC_SDC3 4 176 | #define SUN50I_GPC_SPI0 4 177 | #define SUNIV_GPC_SPI0 2 178 | 179 | #define SUNXI_GPD_LCD0 2 180 | #define SUNXI_GPD_LVDS0 3 181 | 182 | #define SUNIV_GPE_UART0 5 183 | 184 | #define SUNXI_GPF_SDC0 2 185 | #define SUNXI_GPF_UART0 4 186 | #define SUN8I_GPF_UART0 3 187 | 188 | #define SUN4I_GPG_SDC1 4 189 | #define SUN5I_GPG_SDC1 2 190 | #define SUN6I_GPG_SDC1 2 191 | #define SUN8I_GPG_SDC1 2 192 | #define SUN8I_GPG_UART1 2 193 | #define SUN5I_GPG_UART1 4 194 | 195 | #define SUN6I_GPH_PWM 2 196 | #define SUN8I_GPH_PWM 2 197 | #define SUN4I_GPH_SDC1 5 198 | #define SUN6I_GPH_TWI0 2 199 | #define SUN8I_GPH_TWI0 2 200 | #define SUN50I_GPH_TWI0 2 201 | #define SUN6I_GPH_TWI1 2 202 | #define SUN8I_GPH_TWI1 2 203 | #define SUN50I_GPH_TWI1 2 204 | #define SUN6I_GPH_UART0 2 205 | #define SUN9I_GPH_UART0 2 206 | #define SUN50I_H6_GPH_UART0 2 207 | #define SUN50I_H616_GPH_UART0 2 208 | 209 | #define SUNXI_GPI_SDC3 2 210 | 211 | #define SUN6I_GPL0_R_P2WI_SCK 3 212 | #define SUN6I_GPL1_R_P2WI_SDA 3 213 | 214 | #define SUN8I_GPL_R_RSB 2 215 | #define SUN8I_H3_GPL_R_TWI 2 216 | #define SUN8I_A23_GPL_R_TWI 3 217 | #define SUN8I_GPL_R_UART 2 218 | #define SUN50I_GPL_R_TWI 2 219 | #define SUN50I_H616_GPL_R_TWI 3 220 | 221 | #define SUN9I_GPN_R_RSB 3 222 | 223 | /* GPIO pin pull-up/down config */ 224 | #define SUNXI_GPIO_PULL_DISABLE 0 225 | #define SUNXI_GPIO_PULL_UP 1 226 | #define SUNXI_GPIO_PULL_DOWN 2 227 | 228 | /* Virtual AXP0 GPIOs */ 229 | #define SUNXI_GPIO_AXP0_PREFIX "AXP0-" 230 | #define SUNXI_GPIO_AXP0_VBUS_ENABLE 5 231 | #define SUNXI_GPIO_AXP0_GPIO_COUNT 6 232 | 233 | struct sunxi_gpio_plat { 234 | struct sunxi_gpio *regs; 235 | char bank_name[3]; 236 | }; 237 | 238 | #if !defined CONFIG_SPL_BUILD && defined CONFIG_AXP_GPIO 239 | int axp_gpio_init(void); 240 | #else 241 | static inline int axp_gpio_init(void) { return 0; } 242 | #endif 243 | 244 | #endif /* _SUNXI_GPIO_H */ 245 | 246 | #endif 247 | #endif 248 | 249 | #include -------------------------------------------------------------------------------- /src/mock/asm/io.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/mock/common.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /src/mock/compiler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/compiler.h -------------------------------------------------------------------------------- /src/mock/config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/config.h -------------------------------------------------------------------------------- /src/mock/cpu_func.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/cpu_func.h -------------------------------------------------------------------------------- /src/mock/env.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/env.h -------------------------------------------------------------------------------- /src/mock/env_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/env_internal.h -------------------------------------------------------------------------------- /src/mock/fdt_support.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/fdt_support.h -------------------------------------------------------------------------------- /src/mock/generated/autoconf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/generated/autoconf.h -------------------------------------------------------------------------------- /src/mock/generic-phy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/generic-phy.h -------------------------------------------------------------------------------- /src/mock/hang.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/hang.h -------------------------------------------------------------------------------- /src/mock/image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/image.h -------------------------------------------------------------------------------- /src/mock/linux/bitops.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | -------------------------------------------------------------------------------- /src/mock/linux/byteorder/little_endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/byteorder/little_endian.h -------------------------------------------------------------------------------- /src/mock/linux/compat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/compat.h -------------------------------------------------------------------------------- /src/mock/linux/compiler.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/mock/linux/compiler_attributes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/compiler_attributes.h -------------------------------------------------------------------------------- /src/mock/linux/kernel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/kernel.h -------------------------------------------------------------------------------- /src/mock/linux/libfdt_env.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/mock/linux/printk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/printk.h -------------------------------------------------------------------------------- /src/mock/linux/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/linux/types.h -------------------------------------------------------------------------------- /src/mock/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/log.h -------------------------------------------------------------------------------- /src/mock/malloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/malloc.h -------------------------------------------------------------------------------- /src/mock/mmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/mmc.h -------------------------------------------------------------------------------- /src/mock/nand.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/nand.h -------------------------------------------------------------------------------- /src/mock/net.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/net.h -------------------------------------------------------------------------------- /src/mock/phy-sun4i-usb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/phy-sun4i-usb.h -------------------------------------------------------------------------------- /src/mock/spl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/spl.h -------------------------------------------------------------------------------- /src/mock/sunxi_gpio.h: -------------------------------------------------------------------------------- 1 | #include "../u-boot/include/sunxi_gpio.h" 2 | #if !_SUNXI_GPIO_C_ && !CFG_SYS_INIT_DEBUG && !DRAM_APP 3 | /* disable GPIO for INIT */ 4 | #define sunxi_gpio_set_cfgbank(...) 5 | #define sunxi_gpio_set_cfgpin(...) 6 | #define sunxi_gpio_get_cfgbank(...) (0) 7 | #define sunxi_gpio_get_cfgpin(...) (0) 8 | #define sunxi_gpio_set_drv(...) 9 | #define sunxi_gpio_set_drv_bank(...) 10 | #define sunxi_gpio_set_pull(...) 11 | #define sunxi_gpio_set_pull_bank(...) 12 | #define sunxi_name_to_gpio(...) (0) 13 | #endif 14 | -------------------------------------------------------------------------------- /src/mock/time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/time.h -------------------------------------------------------------------------------- /src/mock/u-boot/crc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grinux/sunxi-jtag/179309562896bb8ad64209efcaa138411052764a/src/mock/u-boot/crc.h -------------------------------------------------------------------------------- /src/sunxi_dram_app.h: -------------------------------------------------------------------------------- 1 | #ifndef _SUNXI_DRAM_APP_H_ 2 | #define _SUNXI_DRAM_APP_H_ 3 | 4 | #include "sunxi_jtag.h" 5 | 6 | void clock_init_uart(void); 7 | 8 | /* mock for unused functions in board_init_f() */ 9 | __weak int clock_init(void) { return 0; } /* clock and */ 10 | __weak int timer_init(void) { return 0; } /* timer already initialized by dram-init */ 11 | __weak void sunxi_board_init(void) {} 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /src/sunxi_gpio.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ 2 | /* 3 | * (C) Copyright 2012 Henrik Nordstrom 4 | * 5 | * Based on earlier arch/arm/cpu/armv7/sunxi/gpio.c: 6 | * 7 | * (C) Copyright 2007-2011 8 | * Allwinner Technology Co., Ltd. 9 | * Tom Cubie 10 | */ 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | /* 23 | * ======================================================================= 24 | * Low level GPIO/pin controller access functions, to be shared by non-DM 25 | * SPL code and the DM pinctrl/GPIO drivers. 26 | * The functions ending in "bank" take a base pointer to a GPIO bank, and 27 | * the pin offset is relative to that bank. 28 | * The functions without "bank" in their name take a linear GPIO number, 29 | * covering all ports, and starting at 0 for PortA. 30 | * ======================================================================= 31 | */ 32 | 33 | #define GPIO_BANK(pin) ((pin) >> 5) 34 | #define GPIO_NUM(pin) ((pin) & 0x1f) 35 | 36 | #define GPIO_CFG_REG_OFFSET 0x00 37 | #define GPIO_CFG_INDEX(pin) (((pin) & 0x1f) >> 3) 38 | #define GPIO_CFG_OFFSET(pin) ((((pin) & 0x1f) & 0x7) << 2) 39 | 40 | #define GPIO_DAT_REG_OFFSET 0x10 41 | 42 | #define GPIO_DRV_REG_OFFSET 0x14 43 | 44 | /* Newer SoCs use a slightly different register layout */ 45 | #ifdef CONFIG_SUNXI_NEW_PINCTRL 46 | /* pin drive strength: 4 bits per pin */ 47 | #define GPIO_DRV_INDEX(pin) ((pin) / 8) 48 | #define GPIO_DRV_OFFSET(pin) (((pin) % 8) * 4) 49 | 50 | #define GPIO_PULL_REG_OFFSET 0x24 51 | 52 | #else /* older generation pin controllers */ 53 | /* pin drive strength: 2 bits per pin */ 54 | #define GPIO_DRV_INDEX(pin) ((pin) / 16) 55 | #define GPIO_DRV_OFFSET(pin) (((pin) % 16) * 2) 56 | 57 | #define GPIO_PULL_REG_OFFSET 0x1c 58 | #endif 59 | 60 | #define GPIO_PULL_INDEX(pin) (((pin) & 0x1f) >> 4) 61 | #define GPIO_PULL_OFFSET(pin) ((((pin) & 0x1f) & 0xf) << 1) 62 | 63 | static void* BANK_TO_GPIO(int bank) 64 | { 65 | void *pio_base; 66 | 67 | if (bank < SUNXI_GPIO_L) { 68 | pio_base = (void *)(uintptr_t)SUNXI_PIO_BASE; 69 | } else { 70 | pio_base = (void *)(uintptr_t)SUNXI_R_PIO_BASE; 71 | bank -= SUNXI_GPIO_L; 72 | } 73 | 74 | return (u8 *)pio_base + bank * SUNXI_PINCTRL_BANK_SIZE; 75 | } 76 | 77 | void sunxi_gpio_set_cfgbank(void *bank_base, int pin_offset, u32 val) 78 | { 79 | u32 index = GPIO_CFG_INDEX(pin_offset); 80 | u32 offset = GPIO_CFG_OFFSET(pin_offset); 81 | 82 | clrsetbits_le32((u8 *)bank_base + GPIO_CFG_REG_OFFSET + index * 4, 83 | 0xfU << offset, val << offset); 84 | } 85 | 86 | void sunxi_gpio_set_cfgpin(u32 pin, u32 val) 87 | { 88 | u32 bank = GPIO_BANK(pin); 89 | void *pio = BANK_TO_GPIO(bank); 90 | 91 | sunxi_gpio_set_cfgbank(pio, GPIO_NUM(pin), val); 92 | } 93 | 94 | int sunxi_gpio_get_cfgbank(void *bank_base, int pin_offset) 95 | { 96 | u32 index = GPIO_CFG_INDEX(pin_offset); 97 | u32 offset = GPIO_CFG_OFFSET(pin_offset); 98 | u32 cfg; 99 | 100 | cfg = readl((u8 *)bank_base + GPIO_CFG_REG_OFFSET + index * 4); 101 | cfg >>= offset; 102 | 103 | return cfg & 0xf; 104 | } 105 | 106 | int sunxi_gpio_get_cfgpin(u32 pin) 107 | { 108 | u32 bank = GPIO_BANK(pin); 109 | void *bank_base = BANK_TO_GPIO(bank); 110 | 111 | return sunxi_gpio_get_cfgbank(bank_base, GPIO_NUM(pin)); 112 | } 113 | 114 | static void sunxi_gpio_set_value_bank(void *bank_base, int pin, bool set) 115 | { 116 | u32 mask = 1U << pin; 117 | 118 | clrsetbits_le32((u8 *)bank_base + GPIO_DAT_REG_OFFSET, 119 | set ? 0 : mask, set ? mask : 0); 120 | } 121 | 122 | static int sunxi_gpio_get_value_bank(void *bank_base, int pin) 123 | { 124 | return !!(readl((u8 *)bank_base + GPIO_DAT_REG_OFFSET) & (1U << pin)); 125 | } 126 | 127 | void sunxi_gpio_set_drv(u32 pin, u32 val) 128 | { 129 | u32 bank = GPIO_BANK(pin); 130 | void *bank_base = BANK_TO_GPIO(bank); 131 | 132 | sunxi_gpio_set_drv_bank(bank_base, GPIO_NUM(pin), val); 133 | } 134 | 135 | void sunxi_gpio_set_drv_bank(void *bank_base, u32 pin_offset, u32 val) 136 | { 137 | u32 index = GPIO_DRV_INDEX(pin_offset); 138 | u32 offset = GPIO_DRV_OFFSET(pin_offset); 139 | 140 | clrsetbits_le32((u8 *)bank_base + GPIO_DRV_REG_OFFSET + index * 4, 141 | 0x3U << offset, val << offset); 142 | } 143 | 144 | void sunxi_gpio_set_pull(u32 pin, u32 val) 145 | { 146 | u32 bank = GPIO_BANK(pin); 147 | void *bank_base = BANK_TO_GPIO(bank); 148 | 149 | sunxi_gpio_set_pull_bank(bank_base, GPIO_NUM(pin), val); 150 | } 151 | 152 | void sunxi_gpio_set_pull_bank(void *bank_base, int pin_offset, u32 val) 153 | { 154 | u32 index = GPIO_PULL_INDEX(pin_offset); 155 | u32 offset = GPIO_PULL_OFFSET(pin_offset); 156 | 157 | clrsetbits_le32((u8 *)bank_base + GPIO_PULL_REG_OFFSET + index * 4, 158 | 0x3U << offset, val << offset); 159 | } 160 | 161 | 162 | /* =========== Non-DM code, used by the SPL. ============ */ 163 | 164 | #if !CONFIG_IS_ENABLED(DM_GPIO) 165 | static void sunxi_gpio_set_value(u32 pin, bool set) 166 | { 167 | u32 bank = GPIO_BANK(pin); 168 | void *pio = BANK_TO_GPIO(bank); 169 | 170 | sunxi_gpio_set_value_bank(pio, GPIO_NUM(pin), set); 171 | } 172 | 173 | static int sunxi_gpio_get_value(u32 pin) 174 | { 175 | u32 bank = GPIO_BANK(pin); 176 | void *pio = BANK_TO_GPIO(bank); 177 | 178 | return sunxi_gpio_get_value_bank(pio, GPIO_NUM(pin)); 179 | } 180 | 181 | int gpio_request(unsigned gpio, const char *label) 182 | { 183 | return 0; 184 | } 185 | 186 | int gpio_free(unsigned gpio) 187 | { 188 | return 0; 189 | } 190 | 191 | int gpio_direction_input(unsigned gpio) 192 | { 193 | sunxi_gpio_set_cfgpin(gpio, SUNXI_GPIO_INPUT); 194 | 195 | return 0; 196 | } 197 | 198 | int gpio_direction_output(unsigned gpio, int value) 199 | { 200 | sunxi_gpio_set_cfgpin(gpio, SUNXI_GPIO_OUTPUT); 201 | sunxi_gpio_set_value(gpio, value); 202 | 203 | return 0; 204 | } 205 | 206 | int gpio_get_value(unsigned gpio) 207 | { 208 | return sunxi_gpio_get_value(gpio); 209 | } 210 | 211 | int gpio_set_value(unsigned gpio, int value) 212 | { 213 | sunxi_gpio_set_value(gpio, value); 214 | 215 | return 0; 216 | } 217 | 218 | int sunxi_name_to_gpio(const char *name) 219 | { 220 | int group = 0; 221 | int groupsize = 9 * 32; 222 | long pin; 223 | char *eptr; 224 | 225 | if (*name == 'P' || *name == 'p') 226 | name++; 227 | if (*name >= 'A') { 228 | group = *name - (*name > 'a' ? 'a' : 'A'); 229 | groupsize = 32; 230 | name++; 231 | } 232 | 233 | pin = simple_strtol(name, &eptr, 10); 234 | if (!*name || *eptr) 235 | return -1; 236 | if (pin < 0 || pin > groupsize || group >= 9) 237 | return -1; 238 | return group * 32 + pin; 239 | } 240 | #endif /* !DM_GPIO */ 241 | 242 | /* =========== DM code, used by U-Boot proper. ============ */ 243 | 244 | #if CONFIG_IS_ENABLED(DM_GPIO) 245 | /* TODO(sjg@chromium.org): Remove this function and use device tree */ 246 | int sunxi_name_to_gpio(const char *name) 247 | { 248 | unsigned int gpio; 249 | int ret; 250 | #if !defined CONFIG_SPL_BUILD && defined CONFIG_AXP_GPIO 251 | char lookup[8]; 252 | 253 | if (strcasecmp(name, "AXP0-VBUS-ENABLE") == 0) { 254 | sprintf(lookup, SUNXI_GPIO_AXP0_PREFIX "%d", 255 | SUNXI_GPIO_AXP0_VBUS_ENABLE); 256 | name = lookup; 257 | } 258 | #endif 259 | ret = gpio_lookup_name(name, NULL, NULL, &gpio); 260 | 261 | return ret ? ret : gpio; 262 | } 263 | 264 | static int sunxi_gpio_get_value(struct udevice *dev, unsigned offset) 265 | { 266 | struct sunxi_gpio_plat *plat = dev_get_plat(dev); 267 | 268 | return sunxi_gpio_get_value_bank(plat->regs, offset); 269 | } 270 | 271 | static int sunxi_gpio_get_function(struct udevice *dev, unsigned offset) 272 | { 273 | struct sunxi_gpio_plat *plat = dev_get_plat(dev); 274 | int func; 275 | 276 | func = sunxi_gpio_get_cfgbank(plat->regs, offset); 277 | if (func == SUNXI_GPIO_OUTPUT) 278 | return GPIOF_OUTPUT; 279 | else if (func == SUNXI_GPIO_INPUT) 280 | return GPIOF_INPUT; 281 | else 282 | return GPIOF_FUNC; 283 | } 284 | 285 | static int sunxi_gpio_xlate(struct udevice *dev, struct gpio_desc *desc, 286 | struct ofnode_phandle_args *args) 287 | { 288 | int ret; 289 | 290 | ret = device_get_child(dev, args->args[0], &desc->dev); 291 | if (ret) 292 | return ret; 293 | desc->offset = args->args[1]; 294 | desc->flags = gpio_flags_xlate(args->args[2]); 295 | 296 | return 0; 297 | } 298 | 299 | static int sunxi_gpio_set_flags(struct udevice *dev, unsigned int offset, 300 | ulong flags) 301 | { 302 | struct sunxi_gpio_plat *plat = dev_get_plat(dev); 303 | 304 | if (flags & GPIOD_IS_OUT) { 305 | u32 value = !!(flags & GPIOD_IS_OUT_ACTIVE); 306 | 307 | sunxi_gpio_set_value_bank(plat->regs, offset, value); 308 | sunxi_gpio_set_cfgbank(plat->regs, offset, SUNXI_GPIO_OUTPUT); 309 | } else if (flags & GPIOD_IS_IN) { 310 | u32 pull = 0; 311 | 312 | if (flags & GPIOD_PULL_UP) 313 | pull = 1; 314 | else if (flags & GPIOD_PULL_DOWN) 315 | pull = 2; 316 | sunxi_gpio_set_pull_bank(plat->regs, offset, pull); 317 | sunxi_gpio_set_cfgbank(plat->regs, offset, SUNXI_GPIO_INPUT); 318 | } 319 | 320 | return 0; 321 | } 322 | 323 | static const struct dm_gpio_ops gpio_sunxi_ops = { 324 | .get_value = sunxi_gpio_get_value, 325 | .get_function = sunxi_gpio_get_function, 326 | .xlate = sunxi_gpio_xlate, 327 | .set_flags = sunxi_gpio_set_flags, 328 | }; 329 | 330 | static int gpio_sunxi_probe(struct udevice *dev) 331 | { 332 | struct sunxi_gpio_plat *plat = dev_get_plat(dev); 333 | struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); 334 | 335 | /* Tell the uclass how many GPIOs we have */ 336 | if (plat) { 337 | uc_priv->gpio_count = SUNXI_GPIOS_PER_BANK; 338 | uc_priv->bank_name = plat->bank_name; 339 | } 340 | 341 | return 0; 342 | } 343 | 344 | U_BOOT_DRIVER(gpio_sunxi) = { 345 | .name = "gpio_sunxi", 346 | .id = UCLASS_GPIO, 347 | .probe = gpio_sunxi_probe, 348 | .ops = &gpio_sunxi_ops, 349 | }; 350 | #endif /* DM_GPIO */ 351 | -------------------------------------------------------------------------------- /src/sunxi_jtag.h: -------------------------------------------------------------------------------- 1 | #ifndef _SUNXI_JTAG_H_ 2 | #define _SUNXI_JTAG_H_ 3 | 4 | #define CFG_SYS_BAUDRATE 115200 /* br */ 5 | #define CFG_SYS_CPU_CLK_CUSTOM 0 /* place desired CPU clk here. 0 - default clk */ 6 | #define CFG_SYS_UART 0 /* uart to use */ 7 | #define CFG_SYS_INIT_DEBUG 0 /* 1 to enable uart console in dram-init */ 8 | 9 | #if SOC_ID_V3S 10 | #include 11 | 12 | #elif SOC_ID_H3 13 | #include 14 | 15 | #elif SOC_ID_H5 16 | #include 17 | 18 | #elif SOC_ID_H6 19 | #include 20 | 21 | #elif SOC_ID_H616 22 | #include 23 | 24 | #elif SOC_ID_R40 25 | #include 26 | 27 | #elif SOC_ID_T113_S3 28 | #include 29 | 30 | #endif 31 | 32 | /* mods configs/xxx.h */ 33 | #undef CONFIG_CONS_INDEX 34 | #define CONFIG_CONS_INDEX (CFG_SYS_UART + 1) /* redefine UART */ 35 | #undef CONFIG_BAUDRATE 36 | #define CONFIG_BAUDRATE CFG_SYS_BAUDRATE /* redefine UART baud */ 37 | 38 | #if CFG_SYS_CPU_CLK_CUSTOM > 0 39 | #undef CONFIG_SYS_CLK_FREQ 40 | #define CONFIG_SYS_CLK_FREQ CFG_SYS_CPU_CLK_CUSTOM 41 | #endif 42 | 43 | /* prototypes */ 44 | void board_init_f(ulong dummy); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /src/write.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* redefine iar __write() used by printf to serial console output */ 5 | 6 | unsigned int __write(int handle, 7 | const unsigned char * buffer, 8 | unsigned int size) 9 | { 10 | unsigned int chars = size; 11 | 12 | if (buffer == 0) { 13 | /* 14 | * This means that we should flush internal buffers. Since we 15 | * don't we just return. (Remember, "handle" == -1 means that all 16 | * handles should be flushed.) 17 | */ 18 | return 0; 19 | } 20 | 21 | /* This template only writes to "standard out" and "standard err", 22 | * for all other file handles it returns failure. */ 23 | if (handle != _LLIO_STDOUT && handle != _LLIO_STDERR) { 24 | return _LLIO_ERROR; 25 | } 26 | #if !DRAM_APP 27 | if (gd->flags & GD_FLG_SERIAL_READY) { 28 | if (gd->flags & GD_FLG_RECORD_OVF) { 29 | serial_puts("\n\nPreinit buffer overflow\n\n"); 30 | gd->flags &= ~GD_FLG_RECORD_OVF; 31 | gd->cb_size = 0; 32 | } else if (gd->cb_size > 0) { 33 | serial_puts("\n--\n"); /* mark buffered output */ 34 | for (int i = 0; gd->cb_size != 0; --gd->cb_size) 35 | serial_putc(gd->cb[i++]); 36 | serial_puts("--\n"); 37 | } 38 | #endif 39 | for (; size != 0; --size) 40 | serial_putc(*buffer++); 41 | #if !DRAM_APP 42 | } else { /* collect output in console buffer gd->cb until serial 43 | * will be ready 44 | */ 45 | for (; size != 0 && gd->cb_size < sizeof(gd->cb) ; --size) 46 | gd->cb[gd->cb_size++] = *buffer++; 47 | if (gd->cb_size == sizeof(gd->cb)) 48 | gd->flags |= GD_FLG_RECORD_OVF; 49 | 50 | } 51 | #endif 52 | return chars; 53 | } 54 | --------------------------------------------------------------------------------