Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
763 B

  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (c) 2016 Google, Inc
  4. # Script to convert coreboot code to something similar to what U-Boot uses
  5. # sed -f coreboot.sed <coreboot_file.c>
  6. # Remember to add attribution to coreboot for new files added to U-Boot.
  7. s/REG_RES_WRITE32(\(.*\), \(.*\), \(.*\)),/writel(\3, base + \2);/
  8. s/REG_RES_POLL32(\(.*\), \(.*\), \(.*\), \(.*\), \(.*\)),/ret = poll32(base + \2, \3, \4, \5);/
  9. s/REG_RES_OR32(\(.*\), \(.*\), \(.*\)),/setbits_le32(base + \2, \3);/
  10. s/REG_RES_RMW32(\(.*\), \(.*\), \(.*\), \(.*\)),/clrsetbits_le32(base + \2, ~\3, \4);/
  11. /REG_SCRIPT_END/d
  12. s/read32/readl/
  13. s/write32(\(.*\), \(.*\))/writel(\2, \1)/
  14. s/conf->/plat->/
  15. s/static const struct reg_script \(.*\)_script\[\] = {/static int \1(struct udevice *dev)/