boot_mode.h 457 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (C) 2012 Boundary Devices Inc.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _ASM_BOOT_MODE_H
  7. #define _ASM_BOOT_MODE_H
  8. #define MAKE_CFGVAL(cfg1, cfg2, cfg3, cfg4) \
  9. ((cfg4) << 24) | ((cfg3) << 16) | ((cfg2) << 8) | (cfg1)
  10. struct boot_mode {
  11. const char *name;
  12. unsigned cfg_val;
  13. };
  14. void add_board_boot_modes(const struct boot_mode *p);
  15. void boot_mode_apply(unsigned cfg_val);
  16. extern const struct boot_mode soc_boot_modes[];
  17. #endif