law.c 668 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright 2008 Extreme Engineering Solutions, Inc.
  3. * Copyright 2008 Freescale Semiconductor, Inc.
  4. *
  5. * (C) Copyright 2000
  6. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. #include <common.h>
  11. #include <asm/fsl_law.h>
  12. #include <asm/mmu.h>
  13. /*
  14. * Notes:
  15. * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window.
  16. * If flash is 8M at default position (last 8M), no LAW needed.
  17. */
  18. struct law_entry law_table[] = {
  19. SET_LAW(CONFIG_SYS_FLASH_BASE2, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
  20. SET_LAW(CONFIG_SYS_NAND_BASE, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
  21. };
  22. int num_law_entries = ARRAY_SIZE(law_table);