bcm28155_ap.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2013 Broadcom Corporation.
  4. */
  5. #ifndef __BCM28155_AP_H
  6. #define __BCM28155_AP_H
  7. #include <linux/sizes.h>
  8. #include <asm/arch/sysmap.h>
  9. /* CPU, chip, mach, etc */
  10. #define CONFIG_KONA
  11. #define CONFIG_SKIP_LOWLEVEL_INIT
  12. /*
  13. * Memory configuration
  14. */
  15. #define CONFIG_SYS_SDRAM_BASE 0x80000000
  16. #define CONFIG_SYS_SDRAM_SIZE 0x80000000
  17. #define CONFIG_SYS_MALLOC_LEN SZ_4M /* see armv7/start.S. */
  18. /* GPIO Driver */
  19. #define CONFIG_KONA_GPIO
  20. /* MMC/SD Driver */
  21. #define CONFIG_SYS_SDIO_BASE0 SDIO1_BASE_ADDR
  22. #define CONFIG_SYS_SDIO_BASE1 SDIO2_BASE_ADDR
  23. #define CONFIG_SYS_SDIO_BASE2 SDIO3_BASE_ADDR
  24. #define CONFIG_SYS_SDIO_BASE3 SDIO4_BASE_ADDR
  25. #define CONFIG_SYS_SDIO0_MAX_CLK 48000000
  26. #define CONFIG_SYS_SDIO1_MAX_CLK 48000000
  27. #define CONFIG_SYS_SDIO2_MAX_CLK 48000000
  28. #define CONFIG_SYS_SDIO3_MAX_CLK 48000000
  29. #define CONFIG_SYS_SDIO0 "sdio1"
  30. #define CONFIG_SYS_SDIO1 "sdio2"
  31. #define CONFIG_SYS_SDIO2 "sdio3"
  32. #define CONFIG_SYS_SDIO3 "sdio4"
  33. /* I2C Driver */
  34. #define CONFIG_SYS_I2C
  35. #define CONFIG_SYS_I2C_KONA
  36. #define CONFIG_SYS_SPD_BUS_NUM 3 /* Start with PMU bus */
  37. #define CONFIG_SYS_MAX_I2C_BUS 4
  38. #define CONFIG_SYS_I2C_BASE0 BSC1_BASE_ADDR
  39. #define CONFIG_SYS_I2C_BASE1 BSC2_BASE_ADDR
  40. #define CONFIG_SYS_I2C_BASE2 BSC3_BASE_ADDR
  41. #define CONFIG_SYS_I2C_BASE3 PMU_BSC_BASE_ADDR
  42. /* Timer Driver */
  43. #define CONFIG_SYS_TIMER_RATE 32000
  44. #define CONFIG_SYS_TIMER_COUNTER (TIMER_BASE_ADDR + 4) /* STCLO offset */
  45. /* Init functions */
  46. /* Some commands use this as the default load address */
  47. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
  48. /* No mtest functions as recommended */
  49. /*
  50. * This is the initial SP which is used only briefly for relocating the u-boot
  51. * image to the top of SDRAM. After relocation u-boot moves the stack to the
  52. * proper place.
  53. */
  54. #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
  55. /* Serial Info */
  56. #define CONFIG_SYS_NS16550_SERIAL
  57. /* Post pad 3 bytes after each reg addr */
  58. #define CONFIG_SYS_NS16550_REG_SIZE (-4)
  59. #define CONFIG_SYS_NS16550_CLK 13000000
  60. #define CONFIG_SYS_NS16550_COM1 0x3e000000
  61. /* must fit into GPT:u-boot-env partition */
  62. #define CONFIG_SYS_MMC_ENV_DEV 0
  63. /* console configuration */
  64. #define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */
  65. #define CONFIG_SYS_MAXARGS 64
  66. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  67. /*
  68. * One partition type must be defined for part.c
  69. * This is necessary for the fatls command to work on an SD card
  70. * for example.
  71. */
  72. /* version string, parser, etc */
  73. /* Initial upstream - boot to cmd prompt only */
  74. #define CONFIG_BOOTCOMMAND ""
  75. #define CONFIG_USBID_ADDR 0x34052c46
  76. #endif /* __BCM28155_AP_H */