Add support for the 5P49V6975 which is an updated revision of the the
5P49V5935.

Signed-off-by: Sean Anderson <[email protected]>
---

 drivers/clk/clk_versaclock.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c
index 19a787eaf0c..f210ffa4931 100644
--- a/drivers/clk/clk_versaclock.c
+++ b/drivers/clk/clk_versaclock.c
@@ -141,6 +141,7 @@ enum vc5_model {
        IDT_VC5_5P49V5935,
        IDT_VC6_5P49V6901,
        IDT_VC6_5P49V6965,
+       IDT_VC6_5P49V6975,
 };
 
 /* Structure to describe features of a particular VC5 model */
@@ -226,6 +227,13 @@ static const struct vc5_chip_info idt_5p49v6965_info = {
        .flags = 0,
 };
 
+static const struct vc5_chip_info idt_5p49v6975_info = {
+       .model = IDT_VC6_5P49V6975,
+       .clk_fod_cnt = 4,
+       .clk_out_cnt = 5,
+       .flags = VC5_HAS_INTERNAL_XTAL,
+};
+
 static int vc5_update_bits(struct udevice *dev, unsigned int reg, unsigned int 
mask,
                           unsigned int src)
 {
@@ -667,6 +675,7 @@ static int vc5_map_index_to_output(const enum vc5_model 
model,
        case IDT_VC5_5P49V5935:
        case IDT_VC6_5P49V6901:
        case IDT_VC6_5P49V6965:
+       case IDT_VC6_5P49V6975:
        default:
                return n;
        }
@@ -1023,6 +1032,7 @@ static const struct udevice_id versaclock_ids[] = {
        { .compatible = "idt,5p49v5935", .data = (ulong)&idt_5p49v5935_info },
        { .compatible = "idt,5p49v6901", .data = (ulong)&idt_5p49v6901_info },
        { .compatible = "idt,5p49v6965", .data = (ulong)&idt_5p49v6965_info },
+       { .compatible = "idt,5p49v6975", .data = (ulong)&idt_5p49v6975_info },
        {},
 };
 
-- 
2.35.1.1320.gc452695387.dirty

base-commit: 6cdd7597a2fbfc1572c1b0af23d3daf1cefa2de7
branch: versaclk_5p49v6975

Reply via email to