mtd: spi-nor-core: Add Cypress manufacturer ID in set_4byte
[platform/kernel/u-boot.git] / drivers / mtd / mtd-uclass.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
4  */
5
6 #include <common.h>
7 #include <dm.h>
8 #include <dm/device-internal.h>
9 #include <errno.h>
10 #include <mtd.h>
11
12 /*
13  * Implement a MTD uclass which should include most flash drivers.
14  * The uclass private is pointed to mtd_info.
15  */
16
17 UCLASS_DRIVER(mtd) = {
18         .id             = UCLASS_MTD,
19         .name           = "mtd",
20         .per_device_auto        = sizeof(struct mtd_info),
21 };