spr_defs.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2009
  4. * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
  5. */
  6. #ifndef __SPR_DEFS_H__
  7. #define __SPR_DEFS_H__
  8. extern int spear_board_init(ulong);
  9. extern void setfreq(unsigned int, unsigned int);
  10. extern unsigned int setfreq_sz;
  11. void plat_ddr_init(void);
  12. void spear_late_init(void);
  13. int snor_boot_selected(void);
  14. int nand_boot_selected(void);
  15. int pnor_boot_selected(void);
  16. int usb_boot_selected(void);
  17. int uart_boot_selected(void);
  18. int tftp_boot_selected(void);
  19. int i2c_boot_selected(void);
  20. int spi_boot_selected(void);
  21. int mmc_boot_selected(void);
  22. extern u32 mpmc_conf_vals[];
  23. struct chip_data {
  24. int cpufreq;
  25. int dramfreq;
  26. int dramtype;
  27. uchar version[32];
  28. };
  29. /* HW mac id in i2c memory definitions */
  30. #define MAGIC_OFF 0x0
  31. #define MAGIC_LEN 0x2
  32. #define MAGIC_BYTE0 0x55
  33. #define MAGIC_BYTE1 0xAA
  34. #define MAC_OFF 0x2
  35. #define MAC_LEN 0x6
  36. #define PNOR_WIDTH_8 0
  37. #define PNOR_WIDTH_16 1
  38. #define PNOR_WIDTH_32 2
  39. #define PNOR_WIDTH_NUM 3
  40. #define PNOR_WIDTH_SEARCH 0xff
  41. #endif