evb_rk3036.c 491 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2015 Rockchip Electronics Co., Ltd
  4. */
  5. #include <common.h>
  6. #include <dm.h>
  7. #include <asm/io.h>
  8. #include <asm/arch-rockchip/uart.h>
  9. #include <asm/arch-rockchip/sdram_rk3036.h>
  10. void get_ddr_config(struct rk3036_ddr_config *config)
  11. {
  12. /* K4B4G1646Q config */
  13. config->ddr_type = 3;
  14. config->rank = 2;
  15. config->cs0_row = 15;
  16. config->cs1_row = 15;
  17. /* 8bank */
  18. config->bank = 3;
  19. config->col = 10;
  20. /* 16bit bw */
  21. config->bw = 1;
  22. }