smp-sram.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Allwinner SRAM for smp bringup:
  2. ------------------------------------------------
  3. Allwinner's A80 SoC uses part of the secure sram for hotplugging of the
  4. primary core (cpu0). Once the core gets powered up it checks if a magic
  5. value is set at a specific location. If it is then the BROM will jump
  6. to the software entry address, instead of executing a standard boot.
  7. Therefore a reserved section sub-node has to be added to the mmio-sram
  8. declaration.
  9. Note that this is separate from the Allwinner SRAM controller found in
  10. ../../sram/sunxi-sram.txt. This SRAM is secure only and not mappable to
  11. any device.
  12. Also there are no "secure-only" properties. The implementation should
  13. check if this SRAM is usable first.
  14. Required sub-node properties:
  15. - compatible : depending on the SoC this should be one of:
  16. "allwinner,sun9i-a80-smp-sram"
  17. The rest of the properties should follow the generic mmio-sram discription
  18. found in ../../misc/sram.txt
  19. Example:
  20. sram_b: sram@20000 {
  21. /* 256 KiB secure SRAM at 0x20000 */
  22. compatible = "mmio-sram";
  23. reg = <0x00020000 0x40000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. ranges = <0 0x00020000 0x40000>;
  27. smp-sram@1000 {
  28. /*
  29. * This is checked by BROM to determine if
  30. * cpu0 should jump to SMP entry vector
  31. */
  32. compatible = "allwinner,sun9i-a80-smp-sram";
  33. reg = <0x1000 0x8>;
  34. };
  35. };