| 1 |
|
| 2 |
|
| 3 |
#include <symbols.h> |
| 4 |
#include <device/device.h> |
| 5 |
#include <soc/mmu.h> |
| 6 |
#include <soc/symbols.h> |
| 7 |
|
| 8 |
static void soc_read_resources(struct device *dev) |
| 9 |
{ |
| 10 |
ram_range(dev, 0, (uintptr_t)_dram, 1 * GiB); |
| 11 |
reserved_ram_range(dev, 1, (uintptr_t)_dram_reserved, REGION_SIZE(dram_reserved)); |
| 12 |
} |
| 13 |
|
| 14 |
static void soc_init(struct device *dev) |
| 15 |
{ |
| 16 |
} |
| 17 |
|
| 18 |
static struct device_operations soc_ops = { |
| 19 |
.read_resources = soc_read_resources, |
| 20 |
.init = soc_init, |
| 21 |
}; |
| 22 |
|
| 23 |
static void enable_soc_dev(struct device *dev) |
| 24 |
{ |
| 25 |
dev->ops = &soc_ops; |
| 26 |
} |
| 27 |
|
| 28 |
struct chip_operations soc_qualcomm_qcs405_ops = { |
| 29 |
.name = "SOC Qualcomm QCS405", |
| 30 |
.enable_dev = enable_soc_dev, |
| 31 |
}; |