Path: blob/master/arch/arm/mach-davinci/devices-da8xx.c
29266 views
// SPDX-License-Identifier: GPL-2.0-or-later1/*2* DA8XX/OMAP L1XX platform device data3*4* Copyright (c) 2007-2009, MontaVista Software, Inc. <[email protected]>5* Derived from code that was:6* Copyright (C) 2006 Komal Shah <[email protected]>7*/8#include <linux/ahci_platform.h>9#include <linux/clk-provider.h>10#include <linux/clk.h>11#include <linux/clkdev.h>12#include <linux/dma-map-ops.h>13#include <linux/dmaengine.h>14#include <linux/init.h>15#include <linux/io.h>16#include <linux/platform_device.h>17#include <linux/reboot.h>18#include <linux/serial_8250.h>1920#include "common.h"21#include "cputype.h"22#include "da8xx.h"23#include "irqs.h"24#include "sram.h"2526#define DA8XX_TPCC_BASE 0x01c0000027#define DA8XX_TPTC0_BASE 0x01c0800028#define DA8XX_TPTC1_BASE 0x01c0840029#define DA8XX_WDOG_BASE 0x01c21000 /* DA8XX_TIMER64P1_BASE */30#define DA8XX_I2C0_BASE 0x01c2200031#define DA8XX_RTC_BASE 0x01c2300032#define DA8XX_PRUSS_MEM_BASE 0x01c3000033#define DA8XX_MMCSD0_BASE 0x01c4000034#define DA8XX_SPI0_BASE 0x01c4100035#define DA8XX_LCD_CNTRL_BASE 0x01e1300036#define DA850_SATA_BASE 0x01e1800037#define DA850_MMCSD1_BASE 0x01e1b00038#define DA8XX_EMAC_CPPI_PORT_BASE 0x01e2000039#define DA8XX_EMAC_CPGMACSS_BASE 0x01e2200040#define DA8XX_EMAC_CPGMAC_BASE 0x01e2300041#define DA8XX_EMAC_MDIO_BASE 0x01e2400042#define DA8XX_I2C1_BASE 0x01e2800043#define DA850_TPCC1_BASE 0x01e3000044#define DA850_TPTC2_BASE 0x01e3800045#define DA850_SPI1_BASE 0x01f0e00046#define DA8XX_DDR2_CTL_BASE 0xb00000004748#define DA8XX_EMAC_CTRL_REG_OFFSET 0x300049#define DA8XX_EMAC_MOD_REG_OFFSET 0x200050#define DA8XX_EMAC_RAM_OFFSET 0x000051#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K5253void __iomem *da8xx_syscfg0_base;54void __iomem *da8xx_syscfg1_base;5556static void __iomem *da8xx_ddr2_ctlr_base;57void __iomem * __init da8xx_get_mem_ctlr(void)58{59if (da8xx_ddr2_ctlr_base)60return da8xx_ddr2_ctlr_base;6162da8xx_ddr2_ctlr_base = ioremap(DA8XX_DDR2_CTL_BASE, SZ_32K);63if (!da8xx_ddr2_ctlr_base)64pr_warn("%s: Unable to map DDR2 controller", __func__);6566return da8xx_ddr2_ctlr_base;67}686970