blob: 5f11f73378571e691ebdc4f958fc6ab095823b25 [file] [log] [blame]
Patrick Georgi02363b52020-05-05 20:48:50 +02001/* This file is part of the coreboot project. */
Nitheesh Sekar20e75872018-09-14 11:24:10 +05302/*
Nitheesh Sekar20e75872018-09-14 11:24:10 +05303 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Nitheesh Sekar717050d2018-09-16 16:16:42 +053014#include <symbols.h>
Nitheesh Sekar20e75872018-09-14 11:24:10 +053015#include <device/device.h>
Nitheesh Sekar717050d2018-09-16 16:16:42 +053016#include <soc/mmu.h>
17#include <soc/symbols.h>
Nitheesh Sekar20e75872018-09-14 11:24:10 +053018
19static void soc_read_resources(struct device *dev)
20{
Nitheesh Sekar717050d2018-09-16 16:16:42 +053021 ram_resource(dev, 0, (uintptr_t)_dram / KiB, (1 * GiB) / KiB);
22 reserved_ram_resource(dev, 1, (uintptr_t)_dram_reserved / KiB,
23 REGION_SIZE(dram_reserved) / KiB);
Nitheesh Sekar20e75872018-09-14 11:24:10 +053024}
25
26static void soc_init(struct device *dev)
27{
28
29}
30
31static struct device_operations soc_ops = {
32 .read_resources = soc_read_resources,
33 .init = soc_init,
34};
35
36static void enable_soc_dev(struct device *dev)
37{
38 dev->ops = &soc_ops;
39}
40
41struct chip_operations soc_qualcomm_qcs405_ops = {
42 CHIP_NAME("SOC Qualcomm QCS405")
43 .enable_dev = enable_soc_dev,
44};