kmcoge5ne.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2012
  4. * Holger Brunck, Keymile GmbH Hannover, <holger.brunck@keymile.com>
  5. * Christian Herzig, Keymile AG Switzerland, <christian.herzig@keymile.com>
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. #define CONFIG_HOSTNAME "kmcoge5ne"
  10. #define CONFIG_KM_BOARD_NAME "kmcoge5ne"
  11. #define CONFIG_KM_DEF_NETDEV "netdev=eth1\0"
  12. #define CONFIG_NAND_ECC_BCH
  13. #define CONFIG_NAND_KMETER1
  14. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  15. #define NAND_MAX_CHIPS 1
  16. #define CONFIG_SYS_NAND_BASE CONFIG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
  17. #define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
  18. #define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
  19. /* include common defines/options for all Keymile boards */
  20. #include "km/keymile-common.h"
  21. #include "km/km-powerpc.h"
  22. #include "km/km-mpc83xx.h"
  23. #include "km/km-mpc8360.h"
  24. /*
  25. * System Clock Setup
  26. */
  27. #define CONFIG_83XX_CLKIN 66000000
  28. #define CONFIG_SYS_CLK_FREQ 66000000
  29. #define CONFIG_83XX_PCICLK 66000000
  30. /**
  31. * KMCOGE5NE has 512 MB RAM
  32. */
  33. #define CONFIG_SYS_DDR_CS0_CONFIG (\
  34. CSCONFIG_EN | \
  35. CSCONFIG_AP | \
  36. CSCONFIG_ODT_WR_ONLY_CURRENT | \
  37. CSCONFIG_BANK_BIT_3 | \
  38. CSCONFIG_ROW_BIT_13 | \
  39. CSCONFIG_COL_BIT_10)
  40. /*
  41. * BFTIC3 on the local bus CS4
  42. */
  43. #define CONFIG_SYS_BFTIC3_BASE 0xB0000000
  44. #define CONFIG_SYS_BFTIC3_SIZE 256
  45. /* enable POST tests */
  46. #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS)
  47. #define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
  48. #define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END
  49. #define CONFIG_TESTPIN_REG gprt3 /* for kmcoge5ne */
  50. #define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */
  51. #endif /* CONFIG */